:root {
    --primary: #2c3e50;
    --secondary: #34495e;
    --accent: #3498db;
    --bg: #ecf0f1;
    --card-bg: #ffffff;
    --text: #333;
    --danger: #e74c3c;
    --success: #2ecc71;
    --purple: #8e44ad;
    --warning: #f39c12;
    --search-focus: #3498db;
    --orange: #e67e22;
    --black: #2d3436;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 15px;
    user-select: none;
    -webkit-user-select: none;
    padding-bottom: 80px;
}

.login-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.login-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 400px;
}

.login-card h2 {
    color: var(--primary);
    margin-top: 0;
    text-align: center;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.login-form input {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
}

.dashboard-cta-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.header {
    position: relative;
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #1e293b 0%, #2980b9 100%);
    color: white;
    padding: 20px 15px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(41, 128, 185, 0.25);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.header h1 {
    margin: 0 0 12px 0;
    font-size: 24px;
    color: #ffffff;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.header p {
    margin: 0;
    font-size: 13px;
    color: #ecf0f1;
    line-height: 1.6;
}

.header .meta-info {
    font-weight: bold;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    margin: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.header .meta-info:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.designer-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: bold;
}

.header-menu-zone {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-direction: row-reverse;
}

.header-menu-zone .menu-btn {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #fff;
    cursor: pointer;
    padding: 2px 4px;
    margin: 0;
}

.header-menu-zone .menu-btn:hover {
    opacity: 0.85;
}

.shield-active-badge {
    display: none;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(46, 204, 113, 0.25);
    border: 1.5px solid #2ecc71;
    color: #2ecc71;
    box-shadow: 0 0 8px rgba(46, 204, 113, 0.35);
    flex-shrink: 0;
    pointer-events: none;
}

.shield-active-badge i {
    font-size: 14px;
    line-height: 1;
}

@media (max-width: 600px) {
    .header {
        padding: 15px 10px;
        margin-bottom: 15px;
    }

    .header h1 {
        font-size: 20px;
    }

    .header .meta-info {
        font-size: 12px;
        padding: 6px 12px;
    }

    .header-menu-zone {
        top: 10px;
        right: 8px;
        gap: 4px;
    }

    .shield-active-badge {
        width: 22px;
        height: 22px;
    }

    .shield-active-badge i {
        font-size: 12px;
    }

    .header-menu-zone .menu-btn {
        font-size: 22px;
    }

    .designer-badge {
        position: static;
        display: block;
        margin-bottom: 8px;
        font-size: 9px;
    }
}

.dashboard-view {
    text-align: center;
    margin-top: 40px;
}

.dashboard-card {
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 0 auto;
}

.central-upload-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}

.card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 25px 15px 15px 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card.is-exempt .eval-section,
.card.is-exempt .prac-section,
.card.is-exempt .test-section,
.card.is-exempt .exam-section,
.card.is-exempt .stats-container {
    opacity: 0.3;
    pointer-events: none;
    filter: grayscale(100%);
}

.card.is-exempt {
    border-color: #95a5a6;
    background: #fdfdfd;
}

.exempt-toggle-wrapper {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 30;
    background: #f1f2f6;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 11px;
    font-weight: bold;
    color: var(--secondary);
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.exempt-toggle-wrapper:hover {
    background: #e74c3c;
    color: white;
    border-color: #c0392b;
}

.exempt-toggle-wrapper.active {
    background: #e74c3c;
    color: white;
    border-color: #c0392b;
    box-shadow: 0 2px 5px rgba(231, 76, 60, 0.4);
}

.exempt-toggle-wrapper input {
    display: none;
}

.card.card-gradient-red {
    background: linear-gradient(to top, rgba(231, 76, 60, 0.15) 0%, var(--card-bg) 35%);
    border-bottom: 5px solid var(--danger);
}

.card.card-gradient-green {
    background: linear-gradient(to top, rgba(46, 204, 113, 0.15) 0%, var(--card-bg) 35%);
    border-bottom: 5px solid var(--success);
}

.card.card-gradient-purple {
    background: linear-gradient(to top, rgba(142, 68, 173, 0.15) 0%, var(--card-bg) 35%);
    border-bottom: 5px solid var(--purple);
}

.card.card-gradient-orange {
    background: linear-gradient(to top, rgba(230, 126, 34, 0.15) 0%, var(--card-bg) 35%);
    border-bottom: 5px solid var(--orange);
}

.card.card-gradient-black {
    background: linear-gradient(to top, rgba(45, 52, 54, 0.15) 0%, var(--card-bg) 35%);
    border-bottom: 5px solid var(--black);
}

.card.card-gradient-gray {
    border-bottom: 5px solid #95a5a6;
}

.card.decreased {
    border-color: var(--danger);
    transform: scale(0.98);
}

.card.increased {
    border-color: var(--success);
    transform: scale(1.02);
}

.card.voice-highlight {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--success);
}

.card.search-highlight {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.3);
    border-color: var(--search-focus);
    background-color: rgba(52, 152, 219, 0.08);
}

.card.ordered-highlight {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 10px 25px rgba(142, 68, 173, 0.4);
    border-color: #8e44ad;
    background-color: rgba(142, 68, 173, 0.08);
}

.click-zone {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    z-index: 10;
    cursor: pointer;
    touch-action: pan-y;
    transition: background 0.2s;
}

.right-zone {
    right: 0;
}

.left-zone {
    left: 0;
}

.right-zone:hover {
    background: linear-gradient(to left, rgba(46, 204, 113, 0.08), transparent);
}

.left-zone:hover {
    background: linear-gradient(to right, rgba(231, 76, 60, 0.08), transparent);
}

.hint {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 35px;
    font-weight: bold;
    opacity: 0.1;
    transition: all 0.2s;
}

.hint-right {
    right: 15px;
    color: var(--success);
}

.hint-left {
    left: 15px;
    color: var(--danger);
}

.card .hint {
    opacity: 0.9 !important;
    visibility: visible !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 26px !important;
    font-weight: 900 !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
}

.card .hint-right {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%) !important;
    box-shadow: 0 4px 10px rgba(46, 204, 113, 0.4) !important;
    right: 15px !important;
}

.card .hint-left {
    background: linear-gradient(135deg, #e74c3c 0%, #ff4757 100%) !important;
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.4) !important;
    left: 15px !important;
    line-height: 0.8 !important;
}

.card .click-zone:hover .hint {
    opacity: 1 !important;
    transform: translateY(-50%) scale(1.15) !important;
}

.card .click-zone:active .hint {
    transform: translateY(-50%) scale(0.9) !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
}

.card .click-zone {
    z-index: 5 !important;
}

.student-name {
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary);
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

.grade {
    font-size: 44px;
    font-weight: bold;
    color: var(--accent);
    margin: 5px 0;
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.grade-label {
    font-size: 12px;
    color: #95a5a6;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.grade-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
}

.grade-box label {
    font-size: 15px;
    font-weight: bold;
    color: var(--secondary);
}

.grade-box input[type="number"] {
    width: 90px;
    height: 50px;
    padding: 5px;
    text-align: center;
    border: 2px solid #bdc3c7;
    border-radius: 8px;
    font-weight: bold;
    font-size: 26px;
    color: var(--accent);
    font-family: inherit;
    transition: 0.3s;
    z-index: 20;
    position: relative;
}

.switch-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 12px;
    background: #ffffff;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid #dcdde1;
    color: var(--secondary);
    font-weight: bold;
    margin-top: 5px;
    width: 100%;
    box-sizing: border-box;
    z-index: 20;
    position: relative;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.toggle-switch input:checked+.toggle-slider {
    background-color: var(--success);
}

.toggle-switch input:checked+.toggle-slider:before {
    transform: translateX(16px);
}

.final-grade-badge {
    font-size: 13px;
    font-weight: bold;
    color: white;
    background: var(--success);
    padding: 4px 10px;
    border-radius: 6px;
    margin-top: 5px;
    display: inline-block;
    width: 85%;
    z-index: 20;
    position: relative;
}

.stats-container {
    background: #ffffff;
    border-radius: 8px;
    padding: 8px;
    font-size: 12px;
    border: 1px solid #eee;
    position: relative;
    z-index: 20;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: auto;
}

.stats-container:hover {
    background: #eef2f5;
    border-color: #bdc3c7;
}

.stats-row {
    display: flex;
    justify-content: space-around;
    font-weight: bold;
}

.stat-added {
    color: var(--success);
}

.stat-deducted {
    color: var(--danger);
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 12px;
    width: 95%;
    max-width: 600px;
    direction: rtl;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.close-modal {
    color: #e74c3c;
    float: left;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    align-self: flex-end;
    line-height: 1;
    margin-bottom: -10px;
}

.modal-header {
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.modal-header h3 {
    margin: 0;
    color: var(--primary);
}

.history-list {
    overflow-y: auto;
    flex-grow: 1;
}

.history-item {
    padding: 10px;
    border-bottom: 1px solid #f1f2f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.remarks-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 13px;
}

.remarks-table th {
    background: #f1f2f6;
    padding: 10px;
    border: 1px solid #ccc;
    color: var(--secondary);
}

.remarks-table td {
    padding: 5px;
    border: 1px solid #ccc;
}

.remarks-table input {
    width: 90%;
    padding: 6px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-family: inherit;
    font-size: 13px;
    text-align: center;
}

.remarks-table input.input-limit {
    font-weight: bold;
    color: var(--danger);
    width: 60%;
    background: #fdf5f6;
}

#toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 12px 20px;
    position: fixed;
    z-index: 1000;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    font-size: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    font-weight: bold;
    transition: opacity 0.3s, bottom 0.3s;
    opacity: 0;
    pointer-events: none;
}

#toast.show {
    visibility: visible;
    opacity: 1;
    bottom: 30px;
}

#toast.success {
    background-color: var(--success);
}

#toast.error {
    background-color: var(--danger);
}

#toast.warning {
    background-color: var(--warning);
    color: #000;
}

#toast.info {
    background-color: var(--accent);
}

.years-bar {
    justify-content: center;
    margin-bottom: 15px;
}

.years-bar-inner {
    background: white;
    padding: 8px 15px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 15px;
    width: auto;
    border: 1px solid #eee;
}

.custom-select {
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #bdc3c7;
    font-size: 13px;
    font-weight: bold;
    background-color: #f9f9f9;
}

.trimester-container {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 15px;
    border-right: 1px solid #eee;
}

.trimester-toggle {
    display: flex;
    background: #f1f2f6;
    border-radius: 6px;
    padding: 2px;
}

.tri-btn {
    border: none;
    padding: 4px 12px;
    cursor: pointer;
    font-weight: bold;
    background: transparent;
    font-size: 13px;
    transition: 0.2s;
}

.tri-btn.active {
    background: var(--danger);
    color: white;
    border-radius: 4px;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
    padding: 10px 15px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.primary-toolbar {
    background: #f8f9fa;
    border-bottom: 2px solid var(--primary);
}

.secondary-toolbar {
    background: #f1f2f6;
}

.tool-group {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #ccc;
}

select,
#gradeMode,
#sheetSelector,
#remarkLang {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    padding: 10px 15px 10px 40px !important;
    border: 2px solid #e0e6ed !important;
    border-radius: 20px !important;
    font-family: inherit !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    color: #2c3e50 !important;
    background-color: #ffffff !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233498db' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: left 12px center !important;
    background-size: 16px !important;
    outline: none !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    cursor: pointer !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03) !important;
    min-width: 160px !important;
}

select:hover:not(:disabled) {
    border-color: #bdc3c7 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-1px) !important;
}

select:focus {
    border-color: #3498db !important;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2) !important;
}

select:disabled {
    background-color: #f8f9fa !important;
    border-color: #e9ecef !important;
    color: #a6b0b3 !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bdc3c7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    cursor: not-allowed !important;
}

.btn {
    padding: 10px 22px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.btn i {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn:hover i {
    transform: scale(1.2);
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn:active:not(:disabled) {
    transform: translateY(1px);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    filter: grayscale(80%);
}

.btn-export {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%) !important;
    color: #ffffff !important;
    border: 1px solid #219a52 !important;
}

.btn-export:hover:not(:disabled) {
    box-shadow: 0 6px 15px rgba(46, 204, 113, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

#bulkAddBtn {
    background: linear-gradient(135deg, #05c46b 0%, #2ed573 100%) !important;
    color: white !important;
    border: 1px solid #05c46b !important;
}

#bulkSubBtn {
    background: linear-gradient(135deg, #ff3f34 0%, #ff5e57 100%) !important;
    color: white !important;
    border: 1px solid #ff3f34 !important;
}

select option {
    background-color: #ffffff;
    color: #2c3e50;
    font-weight: 700;
    font-size: 15px;
    padding: 12px;
}

select option:checked,
select option:focus,
select option:hover {
    background-color: #e3f2fd !important;
    color: #2980b9 !important;
    font-weight: 900 !important;
}

.header-selectors {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.header-selectors-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 20px;
    border-radius: 20px;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.1);
    align-items: center;
}

.selector-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.selector-group .label {
    font-weight: bold;
    color: #ffffff;
    font-size: 14.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.transparent-year-select {
    background: transparent !important;
    color: #ffffff !important;
    border: none !important;
    font-size: inherit !important;
    font-family: inherit !important;
    font-weight: bold !important;
    cursor: pointer !important;
    padding: 0 5px 0 20px !important;
    outline: none !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: left center !important;
    background-size: 14px !important;
}

.transparent-year-select option {
    background-color: #2c3e50 !important;
    color: #ffffff !important;
    font-weight: bold;
}

/* القائمة الجانبية */
.sidebar {
    width: 290px;
    background: rgba(248, 249, 250, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    height: 100vh;
    position: fixed;
    right: 0;
    transform: translateX(100%);
    top: 0;
    z-index: 99999;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform;
    border-top-left-radius: 24px;
    border-bottom-left-radius: 24px;
    border-left: 1px solid rgba(255, 255, 255, 0.4);
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar-header {
    padding: 25px 20px;
    background: linear-gradient(135deg, #1e293b 0%, #2980b9 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4px solid #3498db;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-top-left-radius: 24px;
}

.sidebar-close-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 24px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(5px);
}

.sidebar-close-btn:hover {
    background: #e74c3c;
    border-color: #c0392b;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

.sidebar-content {
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
}

.sidebar-content div {
    flex-direction: column !important;
    width: 100%;
    align-items: stretch !important;
    gap: 12px !important;
    margin: 0 !important;
}

.sidebar-content button,
.sidebar-item,
.logout-btn-styled,
#exportBtn,
#exportHistoryBtn,
#adminDashboardBtn {
    width: 100% !important;
    margin: 0 !important;
    text-align: right;
    justify-content: flex-start;
    border-radius: 14px;
    padding: 14px 16px !important;
    font-size: 15.5px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    color: var(--primary) !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative !important;
    top: auto !important;
    right: auto !important;
}

.sidebar-content button:hover,
.sidebar-item:hover,
.logout-btn-styled:hover,
#exportBtn:hover,
#exportHistoryBtn:hover,
#adminDashboardBtn:hover {
    background: linear-gradient(135deg, rgba(248, 250, 255, 0.95) 0%, rgba(227, 242, 253, 0.95) 100%) !important;
    color: #2980b9 !important;
    border-color: rgba(52, 152, 219, 0.5) !important;
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.15) !important;
    transform: translateY(-2px) translateX(-4px);
}

.sidebar-content button svg {
    margin-right: auto;
}

.sidebar-content button i,
.sidebar-item i,
.logout-btn-styled i,
#exportBtn i,
#exportHistoryBtn i,
#adminDashboardBtn i {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #3498db !important;
}

.sidebar-content button:hover i,
.sidebar-item:hover i,
.logout-btn-styled:hover i,
#exportBtn:hover i,
#exportHistoryBtn:hover i,
#adminDashboardBtn:hover i {
    transform: scale(1.15) rotate(5deg);
    color: #2980b9 !important;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99998;
}

/* أزرار الفلترة العائمة و البحث */
.fab-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    pointer-events: none;
}

.fab-main {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s;
    will-change: transform;
    pointer-events: auto;
}

.fab-main:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.6);
}

.fab-main.active {
    transform: rotate(45deg);
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.fab-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transform-origin: bottom center;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform, opacity;
    pointer-events: auto;
}

.fab-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.fab-item {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
    position: relative;
}

.fab-item:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.fab-item::before {
    content: attr(title);
    position: absolute;
    left: 60px;
    background: rgba(44, 62, 80, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    pointer-events: none;
    font-weight: bold;
}

.fab-item:hover::before {
    opacity: 1;
    visibility: visible;
}

.floating-search-box {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    width: 90%;
    max-width: 500px;
    border: 2px solid #3498db;
    animation: dropDownSearch 0.3s ease-out;
}

@keyframes dropDownSearch {
    from {
        top: 60px;
        opacity: 0;
    }

    to {
        top: 100px;
        opacity: 1;
    }
}

#globalSearchInput {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #ecf0f1;
    background: #ffffff;
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    font-weight: bold;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

#globalSearchInput:focus {
    border-color: #3498db;
    background: #f8faff;
}

.floating-search-box #searchResults {
    position: static;
    margin-top: 10px;
    border: 1px solid #e0e6ed;
    max-height: 250px;
}

.btn-tools {
    background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%) !important;
    color: white !important;
    border: 1px solid #8e44ad !important;
}

.btn-tools:hover:not(:disabled) {
    box-shadow: 0 6px 15px rgba(142, 68, 173, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.btn-tools.active {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%) !important;
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.3) !important;
    border-color: #2c3e50 !important;
}

#reportsBar {
    transform-origin: top center;
}

@keyframes slideDownToolbar {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.overflow-section {
    text-align: center;
}

.overflow-section .switch-label {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    color: #8e44ad !important;
    margin: 0 !important;
    padding: 2px 10px !important;
    background: rgba(142, 68, 173, 0.08) !important;
    border-radius: 15px !important;
    border: 1px solid rgba(142, 68, 173, 0.2) !important;
}

/* فقاعة الميكروفون */
.voice-status-panel {
    position: fixed;
    bottom: 35px;
    left: 110px;
    background: rgba(44, 62, 80, 0.98);
    backdrop-filter: blur(10px);
    color: white;
    padding: 15px 25px;
    border-radius: 20px;
    border-bottom-left-radius: 4px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: max-content;
    max-width: 450px;
    transform-origin: left bottom;
    transform: translateX(0) !important;
    animation: popOutBubble 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popOutBubble {
    0% {
        transform: translateX(0) scale(0);
        opacity: 0;
    }

    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

.mic-pulse {
    width: 14px;
    height: 14px;
    background: #ff4757;
    border-radius: 50%;
    animation: pulse-red 1.2s infinite;
    flex-shrink: 0;
}

.voice-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 260px;
}

.voice-state {
    font-weight: bold;
    font-size: 14px;
    color: #bdc3c7;
    margin-bottom: 4px;
    text-align: right;
}

.voice-hint {
    height: 28px;
    position: relative;
    overflow: hidden;
    text-align: right;
}

.hint-animate {
    display: block;
    font-size: 19px !important;
    font-weight: 900;
    color: #f1c40f;
    white-space: nowrap;
    animation: slideUpFade 3.5s infinite;
}

@keyframes slideUpFade {
    0% {
        transform: translateY(25px);
        opacity: 0;
    }

    10% {
        transform: translateY(0);
        opacity: 1;
    }

    85% {
        transform: translateY(0);
        opacity: 1;
    }

    95% {
        transform: translateY(-25px);
        opacity: 0;
    }

    100% {
        transform: translateY(-25px);
        opacity: 0;
    }
}

/* إصلاح النوافذ المنبثقة */
@media (min-width: 768px) {
    .modal-content {
        margin: 5vh auto !important;
        max-height: 90vh !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }

    .modal-body,
    .modal-content>div:not(.modal-header) {
        overflow-y: auto !important;
        flex-grow: 1 !important;
        padding-bottom: 20px !important;
    }

    .modal-actions,
    .export-btn,
    #confirmExportBtn,
    #customConfirmModal .btn {
        flex-shrink: 0 !important;
        margin-top: 15px !important;
        position: sticky;
        bottom: 0;
    }

    #customConfirmModal .modal-content {
        max-height: 50vh !important;
    }
}

.modal[style*="display: block"] {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* 📱 تجاوب الهاتف (تنسيق القوائم والفقاعة) */
@media (max-width: 600px) {
    .fab-container {
        bottom: 20px;
        left: 20px;
    }

    .fab-main {
        width: 55px;
        height: 55px;
    }

    .fab-item {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    /* 🌟 إظهار العناوين تلقائياً في الهاتف عند فتح القائمة بحركة تطفو من الأسفل واليسار */
    .fab-menu.open .fab-item::before {
        visibility: visible;
        left: 55px;
        /* تعديل المسافة لتناسب حجم الزر الصغير في الهاتف */
        opacity: 0;
        transform: translate(-20px, 15px) scale(0.5);
        /* البداية من الأسفل واليسار مع تصغير الحجم */
        animation: floatLabelMobile 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    }

    /* 🌟 تأخير الحركة لكل زر لتظهر بتتابع جميل (Staggered Animation) */
    .fab-menu.open .fab-item:nth-child(1)::before {
        animation-delay: 0.05s;
    }

    .fab-menu.open .fab-item:nth-child(2)::before {
        animation-delay: 0.10s;
    }

    .fab-menu.open .fab-item:nth-child(3)::before {
        animation-delay: 0.15s;
    }

    .fab-menu.open .fab-item:nth-child(4)::before {
        animation-delay: 0.20s;
    }

    /* 🌟 إطارات الحركة (Keyframes) للتأثير المطلوب */
    @keyframes floatLabelMobile {
        0% {
            opacity: 0;
            transform: translate(-20px, 15px) scale(0.5);
        }

        100% {
            opacity: 1;
            transform: translate(0, 0) scale(1);
        }
    }

    select,
    #gradeMode,
    #sheetSelector,
    #remarkLang {
        padding: 8px 10px 8px 32px !important;
        font-size: 13.5px !important;
        min-width: 120px !important;
        border-radius: 12px !important;
    }

    .btn {
        padding: 8px 14px;
        font-size: 13.5px;
        border-radius: 10px;
        gap: 5px;
    }

    .toolbar {
        flex-wrap: wrap !important;
        justify-content: center !important;
        padding: 10px !important;
        gap: 8px !important;
    }

    .tool-group {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        margin-bottom: 5px;
    }

    #globalSearchInput {
        width: 100% !important;
        font-size: 14px;
    }

    /* تنسيق قوائم الاختيار العريضة للهاتف */
    .primary-toolbar {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 10px 15px !important;
        gap: 15px !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    .primary-toolbar .tool-group {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        background: transparent !important;
    }

    .primary-toolbar .tool-group label {
        font-size: 14px !important;
        margin-bottom: 6px !important;
        color: var(--secondary) !important;
        padding-right: 5px !important;
    }

    #sheetSelector,
    #gradeMode {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        height: 55px !important;
        margin: 0 !important;
        border-radius: 12px !important;
        font-size: 16px !important;
        background-position: left 15px center !important;
    }

    /* 🌟 إظهار زر أدوات القسم وتنسيقه ليملأ الشاشة تحت القوائم */
    #toggleToolsBtn {
        display: flex !important;
        width: 100% !important;
        height: 50px !important;
        margin-top: 5px !important;
        border-radius: 12px !important;
        font-size: 16px !important;
        justify-content: center !important;
        background: linear-gradient(135deg, #8e44ad, #9b59b6) !important;
    }

    /* إخفاء الأزرار الأخرى غير الضرورية إن وجدت فقط */
    .primary-toolbar button:not(#toggleToolsBtn) {
        display: none !important;
    }
}

/* تحسين فقاعة الميكروفون للهاتف (صغيرة وبخط كبير) */
.voice-status-panel {
    top: 115px;
    bottom: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: auto !important;
    min-width: 220px;
    max-width: 85%;
    padding: 8px 15px;
    border-radius: 12px;
    gap: 10px;
    transform-origin: top center;
    animation: slideFromTop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes slideFromTop {
    0% {
        transform: translate(-50%, -20px) scale(0.9);
        opacity: 0;
    }

    100% {
        transform: translate(-50%, 0) scale(1);
        opacity: 1;
    }
}

.voice-info {
    min-width: 180px;
    width: auto;
}

.voice-state {
    font-size: 10px;
    margin-bottom: 2px;
    text-align: center;
}

.voice-hint {
    height: 24px;
}

.hint-animate {
    font-size: 16px !important;
    font-weight: 800;
    text-align: center;
}

.mic-pulse {
    width: 10px;
    height: 10px;
}


/* ==========================================
   🌟 تصميم الشرائح الذكية للنسخ المتعدد (Smart Chips)
   ========================================== */
.chip-checkbox {
    display: block;
    position: relative;
    cursor: pointer;
    user-select: none;
}

.chip-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.chip-label {
    display: block;
    background-color: #f1f2f6;
    color: #7f8c8d;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.chip-checkbox input:checked~.chip-label {
    background-color: #e8f8f5;
    color: #27ae60;
    border: 2px solid #2ecc71;
    box-shadow: 0 4px 10px rgba(46, 204, 113, 0.2);
    transform: scale(1.02);
}

.chip-checkbox input:checked~.chip-label::before {
    content: '✅';
    margin-left: 8px;
}

/* ==========================================
   🎤 إصلاح شكل ونبض زر الميكروفون العائم (النسخة المفتوحة)
   ========================================== */
.mic-btn-fab {
    background: linear-gradient(135deg, #27ae60, #2ecc71) !important;
    margin-bottom: 12px !important;
    font-size: 28px !important;
    /* 🌟 أزلنا !important من هنا ليتمكن الأنيميشن من التحكم فيه */
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
    transition: all 0.3s ease;
}

/* 🔴 حالة الاستماع (اللون الأحمر) */
.mic-btn-fab.listening {
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
    transform: scale(1.05) !important;
    /* 🌟 تشغيل النبض هنا */
    animation: pulse-red-fab 1.5s infinite;
}

/* ⭕ حركة النبض (تتوسع وتختفي) */
@keyframes pulse-red-fab {
    0% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.8);
    }

    70% {
        box-shadow: 0 0 0 25px rgba(231, 76, 60, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
    }
}

/* ==========================================
   👑 تصميم بطاقات لوحة الإدارة (Admin Cards)
   ========================================== */
#adminAppTab {
    width: 100%;
    max-width: 100%;
    padding: 10px 0;
    box-sizing: border-box;
}

.admin-menu-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    z-index: 10;
}

.admin-menu-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 600px) {
    .admin-menu-btn {
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
}

.admin-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 35px;
    justify-content: center;
    flex-wrap: wrap;
}

.admin-filters .btn {
    padding: 12px 24px !important;
    border-radius: 14px !important;
    font-size: 15.5px !important;
    font-weight: bold !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ألوان أزرار الفلترة */
.btn-filter-all {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.85), rgba(41, 128, 185, 0.85)) !important;
    color: white !important;
    border: 1px solid rgba(52, 152, 219, 0.5) !important;
}

.btn-filter-pending {
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.85), rgba(230, 126, 34, 0.85)) !important;
    color: white !important;
    border: 1px solid rgba(243, 156, 18, 0.5) !important;
}

.btn-filter-active {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.85), rgba(39, 174, 96, 0.85)) !important;
    color: white !important;
    border: 1px solid rgba(46, 204, 113, 0.5) !important;
}

.btn-filter-blocked {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.85), rgba(192, 57, 43, 0.85)) !important;
    color: white !important;
    border: 1px solid rgba(231, 76, 60, 0.5) !important;
}

.btn-filter-all:hover {
    transform: translateY(-4px) scale(1.05) !important;
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.35) !important;
    background: linear-gradient(135deg, #3498db, #2980b9) !important;
}

.btn-filter-pending:hover {
    transform: translateY(-4px) scale(1.05) !important;
    box-shadow: 0 8px 20px rgba(243, 156, 18, 0.35) !important;
    background: linear-gradient(135deg, #f39c12, #e67e22) !important;
}

.btn-filter-active:hover {
    transform: translateY(-4px) scale(1.05) !important;
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.35) !important;
    background: linear-gradient(135deg, #2ecc71, #27ae60) !important;
}

.btn-filter-blocked:hover {
    transform: translateY(-4px) scale(1.05) !important;
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.35) !important;
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
}

.admin-filters .btn i {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: white !important;
}

.admin-filters .btn:hover i {
    transform: scale(1.25) rotate(10deg);
}

.admin-section-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    border-radius: 20px;
    color: white;
    font-size: 17px;
    font-weight: bold;
    margin: 25px 0 10px 0;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pending-title {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    box-shadow: 0 6px 15px rgba(243, 156, 18, 0.3);
}

.active-title {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    box-shadow: 0 6px 15px rgba(46, 204, 113, 0.3);
}

.blocked-title {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 6px 15px rgba(231, 76, 60, 0.3);
}

.admin-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 25px;
    margin-top: 20px;
    margin-bottom: 30px;
    width: 100%;
}

.admin-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(31, 38, 135, 0.05);
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.admin-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 15px 35px rgba(31, 38, 135, 0.1);
    border-color: rgba(255, 255, 255, 0.9);
}

.admin-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
}

.admin-card.type-pending::before {
    background: linear-gradient(90deg, #f39c12, #e67e22);
}

.admin-card.type-active::before {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}

.admin-card.type-blocked::before {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

.admin-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
}

.admin-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.5), 0 4px 10px rgba(0, 0, 0, 0.05);
}

.type-pending .admin-card-icon {
    background: linear-gradient(135deg, #fef3c7, #ffedd5);
    color: #e67e22;
}

.type-active .admin-card-icon {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #27ae60;
}

.type-blocked .admin-card-icon {
    background: linear-gradient(135deg, #fee2e2, #fecdd3);
    color: #c0392b;
}

.admin-card-info h4 {
    margin: 0 0 5px 0;
    color: var(--primary);
    font-size: 19px;
    font-weight: 900;
}

.admin-card-info p {
    margin: 0;
    font-size: 14px;
    color: #7f8c8d;
    font-weight: bold;
}

.admin-card-meta {
    background: rgba(248, 249, 250, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 14px;
    font-size: 14.5px;
    margin-bottom: 15px;
    flex-grow: 1;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.02);
}

.admin-card-meta div {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #34495e;
    font-weight: bold;
}

.admin-card-meta div i {
    font-size: 18px;
    color: var(--accent);
}

.admin-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-card-actions button {
    flex: 1;
    min-width: 80px;
    justify-content: center;
    font-size: 14px !important;
    padding: 10px 12px !important;
    border-radius: 10px !important;
    font-weight: bold !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.btn-approve {
    background: linear-gradient(135deg, #2ecc71, #27ae60) !important;
    color: white !important;
}

.btn-reject {
    background: linear-gradient(135deg, #f39c12, #e67e22) !important;
    color: white !important;
}

.btn-block {
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
    color: white !important;
}

.btn-unblock {
    background: linear-gradient(135deg, #8e44ad, #9b59b6) !important;
    color: white !important;
}

.btn-delete {
    background: linear-gradient(135deg, #34495e, #2c3e50) !important;
    color: white !important;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ==========================================
   📖 تنسيقات دليل الاستخدام (Help Modal)
   ========================================== */
.help-tab {
    padding: 10px 16px;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    color: var(--secondary);
    font-family: inherit;
    transition: all 0.3s ease;
}

.help-tab.active {
    background: rgba(52, 152, 219, 0.1);
    border-color: var(--accent);
    color: var(--accent);
}

.help-content-box {
    background: #fdfdfd;
    padding: 18px;
    border-radius: 15px;
    margin-bottom: 12px;
    border-right: 4px solid var(--accent);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    border-top: 1px solid #eee;
    border-left: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.help-content-box h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.help-content-box p {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}