/* =============================================
   Mikołajki App - Custom Styles
   Christmas color scheme: red #c41e3a, green #165b33
   ============================================= */

:root {
    --christmas-red: #c41e3a;
    --christmas-green: #165b33;
    --christmas-gold: #d4a017;
    --christmas-light: #fff5f5;
}

/* ---- Override Bootstrap primary with Christmas red ---- */
.btn-primary, .bg-primary {
    background-color: var(--christmas-red) !important;
    border-color: var(--christmas-red) !important;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #a01830 !important;
    border-color: #a01830 !important;
}

.btn-outline-primary {
    color: var(--christmas-red) !important;
    border-color: var(--christmas-red) !important;
}

.btn-outline-primary:hover {
    background-color: var(--christmas-red) !important;
    color: #fff !important;
}

.text-primary {
    color: var(--christmas-red) !important;
}

.border-primary {
    border-color: var(--christmas-red) !important;
}

.bg-primary-subtle {
    background-color: #fdecea !important;
}

/* ---- Navbar ---- */
.navbar.bg-primary {
    background: linear-gradient(135deg, var(--christmas-red) 0%, #9b1528 100%) !important;
    box-shadow: 0 2px 8px rgba(196, 30, 58, 0.3);
}

/* ---- Login page ---- */
.login-body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
}

.login-card {
    border-radius: 1rem;
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, var(--christmas-red) 0%, #9b1528 100%);
}

.santa-icon {
    font-size: 3.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ---- Cards ---- */
.card {
    border-radius: 0.75rem;
    transition: box-shadow 0.2s ease;
}

.draw-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-2px);
    transition: all 0.2s ease;
}

.stat-card {
    border-radius: 0.75rem;
    transition: box-shadow 0.2s ease;
}

.stat-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1) !important;
}

.stat-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ---- Result card (user draw result) ---- */
.result-card {
    background: linear-gradient(135deg, #fff5f5 0%, #fdecea 100%);
    border: 2px solid #f5c6cb;
}

/* ---- Wish list text ---- */
.wishlist-text {
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.95rem;
    line-height: 1.6;
    max-height: 60vh;
    overflow-y: auto;
}

.wishlist-input {
    resize: vertical;
    min-height: 10rem;
}

/* ---- Avatar circle ---- */
.avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* ---- Participant item ---- */
.participant-item {
    cursor: pointer;
    transition: all 0.15s ease;
}

.participant-item:hover {
    background-color: #fdecea;
    border-color: var(--christmas-red) !important;
}

.cursor-pointer {
    cursor: pointer;
}

/* ---- Badge overrides ---- */
.badge.bg-secondary {
    background-color: #6c757d !important;
}

/* ---- Table ---- */
.table thead th {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c757d;
    border-bottom: 2px solid #dee2e6;
}

/* ---- Form ---- */
.form-control:focus, .form-select:focus {
    border-color: var(--christmas-red);
    box-shadow: 0 0 0 0.2rem rgba(196, 30, 58, 0.15);
}

.form-check-input:checked {
    background-color: var(--christmas-red);
    border-color: var(--christmas-red);
}

/* ---- Navbar active link ---- */
.navbar-dark .nav-link:hover {
    color: rgba(255, 255, 255, 1) !important;
}

/* ---- Alert success override to green ---- */
.alert-success {
    background-color: #d1e7dd;
    border-color: #a3cfbb;
    color: #0a3622;
}

/* ---- Scrollbar (modern browsers) ---- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--christmas-red);
}

/* ---- Progress, switches, SMS ---- */
.progress-thin {
    height: 6px;
}

.draw-toggle .form-check-input {
    width: 2.5em;
    height: 1.3em;
    cursor: pointer;
}

.form-check-input:checked[role="switch"] {
    background-color: var(--christmas-green);
    border-color: var(--christmas-green);
}

.sms-preview {
    max-width: 420px;
    word-break: break-word;
}

.just-drawn {
    animation: reveal 0.8s ease-out;
}

@keyframes reveal {
    0% { transform: scale(0.85); opacity: 0; }
    60% { transform: scale(1.04); opacity: 1; }
    100% { transform: scale(1); }
}

/* ---- Responsive ---- */
@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    h2.fw-bold {
        font-size: 1.4rem;
    }
}
