:root {
    --quran-primary: #154c36;
    --quran-primary-light: #1f6b4d;
    --quran-dark: #0d281e;
    --quran-gold: #d4af37;
    --quran-gold-light: #f5e6ab;
    --quran-accent: #c29b27;
    --lahn-color: #dc3545;
    --khata-color: #fd7e14;
    --tajweed-color: #0dcaf0;
}

body {
    font-family: 'Cairo', sans-serif;
    color: #2b2b2b;
    background-color: #f8fafc;
}

.font-amiri {
    font-family: 'Amiri', serif;
}

.bg-dark-quran {
    background: linear-gradient(135deg, #0f3828 0%, #081d15 100%);
}

.text-gold {
    color: #d4af37 !important;
}

.border-gold {
    border-color: #d4af37 !important;
}

/* Tablet & Mobile / Sheikh Judge Strip Buttons */
.btn-counter-strip {
    width: 46px;
    height: 46px;
    font-size: 1.25rem;
    font-weight: 800;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s ease-in-out;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.btn-counter-strip:active {
    transform: scale(0.86);
}

.badge-counter-strip {
    font-size: 1.35rem;
    min-width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: 800;
    user-select: none;
}

.btn-counter {
    width: 56px;
    height: 56px;
    font-size: 1.4rem;
    font-weight: 800;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.12s ease-in-out;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.btn-counter:active {
    transform: scale(0.88);
    opacity: 0.85;
}

.badge-counter {
    font-size: 1.35rem;
    min-width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: 700;
    user-select: none;
}

/* Quran Verse Box */
.ayah-box {
    background-color: #fffdf5;
    border: 1px solid #e8dcbe;
    border-right: 5px solid #d4af37;
    border-radius: 14px;
    padding: 1.1rem 1.35rem;
    font-family: 'Amiri', serif;
    font-size: 1.35rem;
    line-height: 2.3;
    color: #1a2e22;
    word-break: break-word;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.02);
}

@media (max-width: 768px) {
    .btn-counter-strip {
        width: 42px;
        height: 42px;
        font-size: 1.15rem;
        border-radius: 10px;
    }
    .badge-counter-strip {
        font-size: 1.25rem;
        min-width: 38px;
        height: 38px;
        border-radius: 10px;
    }
    .ayah-box {
        font-size: 1.22rem;
        line-height: 2.1;
        padding: 0.85rem 1rem;
    }
}

/* Judge Sticky Header */
.judge-sticky-header {
    position: sticky;
    top: 56px;
    z-index: 1010;
    background: linear-gradient(135deg, #154c36 0%, #082117 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-radius: 1rem;
}

@media (max-width: 991px) {
    .judge-sticky-header {
        top: 54px;
        border-radius: 0.85rem !important;
        margin-bottom: 0.75rem;
        padding: 0.25rem !important;
    }
    .judge-sticky-header .card-body {
        padding: 0.5rem 0.65rem !important;
    }
}

/* Mobile Sticky Bottom Evaluation Submission Bar */
.judge-mobile-bottom-bar {
    display: none;
}

@media (max-width: 991px) {
    .judge-mobile-bottom-bar {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1030;
        background: rgba(15, 56, 40, 0.96);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 2px solid #d4af37;
        padding: 0.65rem 1rem;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    }
    body.has-judge-bottom-bar {
        padding-bottom: 90px !important;
    }
}

/* Question Cards */
.question-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.deduction-card-mini {
    background: white;
    border-radius: 14px;
    padding: 0.65rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.06);
}

@media (max-width: 576px) {
    .deduction-card-mini {
        padding: 0.5rem 0.25rem;
        border-radius: 10px;
    }
}

/* Model Card Touch Optimization */
.model-card-touch {
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.model-card-touch:active {
    transform: scale(0.96);
}

.active-model-pulse {
    animation: activeModelPulse 2s infinite;
}

@keyframes activeModelPulse {
    0% { box-shadow: 0 0 0 0 rgba(21, 76, 54, 0.6); }
    70% { box-shadow: 0 0 0 12px rgba(21, 76, 54, 0); }
    100% { box-shadow: 0 0 0 0 rgba(21, 76, 54, 0); }
}

/* Committee Card in Floor View */
.committee-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.committee-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.status-badge-available {
    background-color: #fef08a;
    color: #854d0e;
    border: 1px solid #fde047;
}

.status-badge-progress {
    background-color: #bbf7d0;
    color: #166534;
    border: 1px solid #86efac;
}

.status-badge-paused {
    background-color: #fecaca;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Waiting Hall TV Screen Pulse Animation */
@keyframes callPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); }
    70% { transform: scale(1.02); box-shadow: 0 0 0 20px rgba(212, 175, 55, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

.pulse-call {
    animation: callPulse 2s infinite;
    border: 3px solid #d4af37 !important;
}

/* PIN Lock Modal & NumPad Styles */
.pin-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #154c36;
    background-color: transparent;
    transition: all 0.2s ease;
    display: inline-block;
}

.pin-dot.filled {
    background-color: #154c36;
    transform: scale(1.15);
    box-shadow: 0 0 8px rgba(21, 76, 54, 0.4);
}

.btn-numpad {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    font-size: 1.8rem;
    font-weight: 700;
    color: #154c36;
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    box-shadow: 0 3px 5px rgba(0,0,0,0.05);
}

.btn-numpad:active {
    background-color: #154c36;
    color: white;
    transform: scale(0.92);
}

.btn-numpad-action {
    background-color: #e2e8f0;
    font-size: 1.3rem;
}

@media (max-width: 480px) {
    .btn-numpad {
        width: 62px;
        height: 62px;
        font-size: 1.5rem;
    }
    .btn-numpad-action {
        font-size: 1.1rem;
    }
    .pin-dot {
        width: 18px;
        height: 18px;
    }
}

/* Badge Print Card */
.pin-badge-card {
    border: 2px dashed #154c36;
    border-radius: 16px;
    page-break-inside: avoid;
}