@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

.admin-layout {
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #020503;
    color: white;
}

.admin-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.admin-layout main {
    min-height: calc(100vh - 60px);
}

.admin-sidebar {
    width: 280px;
    background: rgba(5, 10, 6, 0.95);
    border-right: 1px solid rgba(146, 183, 117, 0.2);
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 50px;
    padding-left: 10px;
}

.sidebar-header img {
    width: 45px;
}

.sidebar-header span {
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    border-radius: 15px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.nav-item:hover, .nav-item.active {
    background: rgba(146, 183, 117, 0.15);
    color: white;
}

.nav-item i {
    width: 20px;
    font-size: 1.1rem;
    color: #92B775; 
}

.nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 15px 0;
}

.logout {
    margin-top: auto;
    color: #e74c3c;
}

.logout i {
    color: #e74c3c;
}

.logout:hover {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.admin-main {
    flex: 1;
    margin-left: 280px;
    padding: 50px 60px;
    max-width: calc(100% - 280px);
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.admin-header {
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.date-now {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    font-weight: 500;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.stat-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 45px 35px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 25px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-8px);
    border-color: rgba(146, 183, 117, 0.4);
}

.stat-icon {
    background: rgba(146, 183, 117, 0.15);
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: #92B775;
}

.stat-card h3 {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 3.5rem;
    font-weight: 800;
    color: #92B775;
    line-height: 1.1;
}

.chart-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    padding: 40px;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.section-header p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

.visual-placeholder {
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 2px dashed rgba(146, 183, 117, 0.2);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.2);
    margin-top: 30px;
    background: rgba(0, 0, 0, 0.2);
}

.visual-placeholder i {
    font-size: 4.5rem;
    margin-bottom: 15px;
    color: rgba(146, 183, 117, 0.4);
}

.table-section {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 30px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    width: 100%;
}

.table-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.btn-export {
    background: #92B775 !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px !important;
    border-radius: 12px !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(146, 183, 117, 0.3);
    width: auto !important;
}

.btn-export:hover {
    background: #133215 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(146, 183, 117, 0.5);
    filter: brightness(1.2);
}

.table-wrapper {
    overflow-x: auto;
}

.table-container {
    flex: 1;
    width: 100%;
    overflow-y: auto;
    min-height: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 18px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #92B775;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

td {
    padding: 18px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

.font-bold {
    font-weight: 600;
    color: white !important;
}

.badge-committee {
    background: rgba(146, 183, 117, 0.2);
    color: #92B775;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.settings-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    padding: 40px;
}

.card-header {
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 20px;
}

.card-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.card-header h2 i {
    color: #92B775;
}

.card-header p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    margin-top: 5px;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.settings-form .input-group label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    display: block;
}

.settings-form .input-group input {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 20px;
    border-radius: 12px;
    color: white;
    font-family: 'Poppins', sans-serif;
    transition: 0.3s;
}

.settings-form .input-group input:focus {
    border-color: #92B775;
    outline: none;
    background: rgba(146, 183, 117, 0.05);
}

.settings-btn {
    margin-top: 10px;
    border-radius: 12px !important;
}

.system-status {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.status-info {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 15px;
}

.status-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #555;
}

.status-dot.active {
    background: #2ecc71;
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.5);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 14px;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: 0.3s;
}

.btn-outline:hover {
    border-color: #e74c3c;
    color: #e74c3c;
}

.alert-box {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.alert-success {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #2ecc71;
}

.alert-danger {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}

.event-checkin-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 14px 18px;
    border: 1px solid rgba(255, 193, 7, 0.28);
    border-radius: 12px;
    background: rgba(255, 193, 7, 0.08);
    color: rgba(255, 255, 255, 0.86);
    font-weight: 600;
    line-height: 1.5;
}

.event-checkin-notice i {
    color: #ffc107;
}

.toggle-btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none !important;
}

@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .admin-layout {
        flex-direction: column !important;
        display: flex;
    }
    .admin-sidebar {
        width: 100% !important;
        height: auto !important;
        position: sticky !important;
        top: 0;
        z-index: 1000;
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 15px !important;
        display: flex;
        flex-direction: row !important;
        align-items: center;
        justify-content: space-between;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        background: #050a06 !important; 
    }
    .admin-sidebar ul, .sidebar-nav {
        display: flex;
        flex-direction: row;
        gap: 10px;
        margin: 0;
        padding: 0;
        width: max-content; 
    }
    .admin-sidebar li {
        margin: 0 !important;
    }
    .admin-sidebar a {
        padding: 8px 15px !important;
        font-size: 0.85rem !important;
        white-space: nowrap;
        border-radius: 8px !important;
    }
    .sidebar-footer {
        display: none; 
    }
    .admin-main {
        margin-left: 0 !important;
        padding: 20px 15px !important;
        width: 100% !important;
    }
    .admin-header h1 {
        font-size: 1.8rem !important;
    }
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    .stat-card {
        padding: 20px !important;
        display: flex;
        align-items: center;
    }
    .table-container {
		display: block;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		box-sizing: border-box;
		border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.05);
		flex: 1;
		overflow-y: auto;
		min-height: 0;
	}

	.admin-table {
		width: 100%;
		min-width: 1000px;
		border-collapse: collapse;
		table-layout: auto;
	}

	.admin-table th, 
	.admin-table td {
		white-space: nowrap;
	}
    .chart-container {
        height: 250px !important;
    }
}

@media (max-width: 992px) {
    .admin-main {
        margin-left: 0 !important;
        padding: 30px 20px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .stats-grid {
        grid-template-columns: 1fr !important; 
        gap: 20px !important;
    }
    .stat-card {
        padding: 25px 20px !important;
    }
    .stat-value {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 768px) {
    .admin-layout {
        flex-direction: column !important;
    }
    .admin-main {
        margin-left: 0 !important;
        padding: 80px 20px 20px 20px !important;
        width: 100% !important;
    }
    .admin-sidebar {
        position: fixed !important;
        left: -280px; 
        top: 0;
        width: 280px !important;
        height: 100vh !important;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        z-index: 1100 !important;
        box-shadow: 10px 0 30px rgba(0,0,0,0.5);
    }
    .admin-sidebar.active {
        left: 0 !important;
    }
    .admin-mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 15px;
        left: 15px;
        width: 45px;
        height: 45px;
        background: #92B775;
        color: white;
        border-radius: 10px;
        cursor: pointer;
        z-index: 1200;
        font-size: 1.2rem;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
        transition: 0.3s;
    }
    .admin-mobile-toggle:active {
        transform: scale(0.9);
    }
    .admin-sidebar-overlay {
        display: none; 
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        z-index: 1050;
        transition: 0.3s;
    }
    .admin-sidebar-overlay.active {
        display: block;
    }
    .admin-header h1 {
        font-size: 1.6rem !important;
        text-align: center;
    }
    
    .table-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .btn-export {
        width: 100% !important;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .admin-main {
        padding: 20px 10px !important;
    }
    
    .admin-header h1 {
        font-size: 1.4rem !important;
    }
}

.filter-label {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

.filter-select {
    padding: 8px 15px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    outline: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-select:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.4);
}

.filter-select:focus {
    border-color: #92B775;
    background: rgba(146, 183, 117, 0.05);
}

.filter-select option {
    background: #0a120b;
    color: white;
    padding: 10px;
    border: none;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.filter-select option:hover,
.filter-select option:focus {
    background: #0a120b;
    color: white;
}

.filter-select option:checked {
    background: #0a120b;
    color: #92B775;
    font-weight: 600;
}

.search-box-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 200px;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    pointer-events: none;
    transition: color 0.3s ease;
}

.search-box {
    width: 100%;
    padding: 8px 15px 8px 35px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    outline: none;
}

.search-box::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-box:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.4);
}

.search-box:focus {
    border-color: #92B775;
    background: rgba(146, 183, 117, 0.05);
}

.search-box:focus ~ .search-icon {
    color: #92B775;
}

.admin-footer {
    position: relative;
    z-index: 200;
    margin-left: 280px;
    padding: 20px 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
}

.admin-footer .footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
}

.admin-footer .developer-link {
    color: #92B775;
    text-decoration: none;
}

.admin-footer .developer-link:hover {
    text-decoration: underline;
}

@media (max-width: 992px) {
    .admin-footer {
        margin-left: 0 !important;
        padding: 20px 20px !important;
    }
}

/* Admin dashboard embedded styles */
.pref-btn {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.15);
        color: rgba(255, 255, 255, 0.5);
        padding: 6px 14px;
        border-radius: 8px;
        cursor: pointer;
        font-size: 0.85rem;
        font-weight: 500;
        transition: all 0.2s ease;
        font-family: 'Poppins', sans-serif;
    }
    .pref-btn:hover {
        background: rgba(146, 183, 117, 0.15);
        border-color: rgba(146, 183, 117, 0.4);
        color: rgba(255, 255, 255, 0.8);
    }
    .pref-btn.active {
        background: rgba(146, 183, 117, 0.25);
        border-color: #92B775;
        color: #92B775;
        font-weight: 600;
    }

/* Admin settings embedded styles */
.btn-red {
            background-color: #e74c3c !important;
            border-color: #c0392b !important;
        }

        .btn-green {
            background-color: #27ae60 !important;
            border-color: #2ecc71 !important;
        }

        .settings-select {
            width: 100%;
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 14px;
            border-radius: 12px;
            color: white;
            font-family: 'Poppins', sans-serif;
            appearance: none;
            cursor: pointer;
        }

        .developer-only {
            border: 1px dashed rgba(39, 174, 96, 0.4) !important;
            background: rgba(39, 174, 96, 0.02) !important;
        }

        .settings-btn i {
            margin-right: 8px;
        }

        .bulk-email-actions {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .bulk-email-actions .btn-primary {
            width: 100%;
            text-align: center;
        }

        /* Confirmation Modal */
        .confirm-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(10px);
            z-index: 1000;
            display: none;
            align-items: center;
            justify-content: center;
        }

        .confirm-modal-content {
            background: #0a120b;
            border: 1px solid rgba(255, 255, 255, 0.1);
            width: 90%;
            max-width: 480px;
            border-radius: 20px;
            padding: 30px;
            position: relative;
        }

        .confirm-modal-content h3 {
            color: white;
            font-size: 1.2rem;
            margin: 0 0 15px 0;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .confirm-modal-content p {
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.9rem;
            line-height: 1.6;
            margin: 0 0 20px 0;
        }

        .confirm-modal-content .warning {
            background: rgba(231, 76, 60, 0.1);
            border: 1px solid rgba(231, 76, 60, 0.3);
            border-radius: 10px;
            padding: 12px 15px;
            color: #e74c3c;
            font-size: 0.85rem;
            margin-bottom: 20px;
        }

        .confirm-btns {
            display: flex;
            gap: 10px;
            justify-content: flex-end;
        }

        .confirm-btns button {
            padding: 10px 24px;
            border-radius: 10px;
            font-size: 0.9rem;
            font-weight: 600;
            cursor: pointer;
            border: none;
            font-family: 'Poppins', sans-serif;
            transition: 0.2s;
        }

        .btn-confirm-cancel {
            background: rgba(255, 255, 255, 0.1);
            color: white;
        }

        .btn-confirm-cancel:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .btn-confirm-ok {
            background: #e74c3c;
            color: white;
        }

        .btn-confirm-ok:hover {
            background: #c0392b;
        }

/* Admin applicants embedded styles */
.sortable {
            cursor: pointer;
            user-select: none;
            transition: color 0.2s;
        }

        .sortable:hover {
            color: white;
        }

        .page-btn {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: white;
            padding: 6px 12px;
            border-radius: 6px;
            cursor: pointer;
            transition: 0.2s;
        }

        .page-btn.active {
            background: var(--bordo);
            border-color: var(--bordo);
            font-weight: bold;
        }

        .page-btn:hover:not(.active) {
            background: rgba(255, 255, 255, 0.1);
        }

        .status-btns {
            display: flex;
            flex-direction: column;
            gap: 6px;
            justify-content: center;
            align-items: stretch;
            min-width: 130px;
        }

        .btn-action {
            padding: 8px 12px;
            border-radius: 8px;
            font-size: 0.85rem;
            cursor: pointer;
            border: none;
            font-weight: 600;
            transition: all 0.2s ease;
            color: white;
            display: flex;
            align-items: center;
            gap: 8px;
            justify-content: flex-start;
            width: 100%;
        }

        .btn-action:hover {
            transform: translateY(-1px);
        }

        .btn-approve {
            background: rgba(46, 204, 113, 0.2);
            border: 1px solid rgba(46, 204, 113, 0.4);
            color: #2ecc71;
        }

        .btn-approve:hover,
        .btn-approve.active {
            background: #2ecc71;
            color: white;
        }

        .btn-reject {
            background: rgba(231, 76, 60, 0.2);
            border: 1px solid rgba(231, 76, 60, 0.4);
            color: #e74c3c;
        }

        .btn-reject:hover,
        .btn-reject.active {
            background: #e74c3c;
            color: white;
        }

        .btn-pending {
            background: rgba(241, 196, 15, 0.2);
            border: 1px solid rgba(241, 196, 15, 0.4);
            color: #f1c40f;
        }

        .btn-pending:hover,
        .btn-pending.active {
            background: #f1c40f;
            color: white;
        }

        .user-info {
            display: flex;
            flex-direction: column;
        }

        .user-info .name {
            font-weight: 600;
            color: white;
        }

        .user-info .sub-text {
            font-size: 0.75rem;
            color: rgba(255, 255, 255, 0.4);
        }

        .committee-stack {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .tag {
            padding: 3px 8px;
            border-radius: 4px;
            font-size: 0.7rem;
            width: fit-content;
        }

        .tag-1 {
            background: rgba(146, 183, 117, 0.3);
            color: #92B775;
            border: 1px solid rgba(146, 183, 117, 0.5);
            font-weight: bold;
        }

        .tag-small {
            background: rgba(255, 255, 255, 0.05);
            color: #ccc;
        }

        .committee-cell {
            transition: opacity 0.2s ease, transform 0.2s ease;
        }

        .committee-cell.updating {
            opacity: 0.3;
            transform: scale(0.95);
        }

        .committee-cell.updated {
            animation: cellFlash 0.5s ease;
        }

        @keyframes cellFlash {
            0% { background: rgba(46, 204, 113, 0.3); }
            100% { background: transparent; }
        }

        .btn-detail {
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: white;
            padding: 6px 12px;
            border-radius: 6px;
            cursor: pointer;
            transition: 0.2s;
            font-size: 0.8rem;
        }

        .btn-detail:hover {
            background: var(--bordo);
            border-color: var(--bordo);
        }

        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(10px);
            z-index: 1000;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .modal-content {
            background: #0a120b;
            border: 1px solid rgba(255, 255, 255, 0.1);
            width: 90%;
            max-width: 700px;
            max-height: 85vh;
            border-radius: 20px;
            overflow-y: auto;
            padding: 30px;
            position: relative;
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            padding-bottom: 15px;
        }

        .close-btn {
            background: none;
            border: none;
            color: white;
            font-size: 2rem;
            cursor: pointer;
        }

        .detail-section {
            margin-bottom: 25px;
        }

        .detail-section h3 {
            font-size: 1rem;
            color: var(--bordo);
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .detail-section p {
            font-size: 0.9rem;
            color: rgba(255, 255, 255, 0.8);
            line-height: 1.6;
            white-space: pre-wrap;
        }

        .kvkk-badge {
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 0.8rem;
            border: 1px solid rgba(255, 255, 255, 0.1);
            margin-right: 10px;
            display: inline-block;
        }

        .kvkk-on {
            background: rgba(46, 204, 113, 0.2);
            color: #2ecc71;
            border-color: rgba(46, 204, 113, 0.4);
        }

        .mail-status-stack {
            display: flex;
            flex-direction: column;
            gap: 6px;
            align-items: center;
        }

        .mail-status-row {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            flex-wrap: wrap;
        }

        .mail-delete-btn {
            width: 26px;
            height: 26px;
            border-radius: 6px;
            border: 1px solid rgba(231, 76, 60, 0.4);
            background: rgba(231, 76, 60, 0.14);
            color: #e74c3c;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: 0.2s;
        }

    .mail-delete-btn:hover {
            background: #e74c3c;
            color: white;
        }

/* Shared admin utility classes moved from inline styles */
.admin-filter-controls {
    margin-bottom: 20px;
    padding: 15px 20px;
    background: rgba(255,255,255,0.02);
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.admin-search-wide {
    flex: 1;
    min-width: 250px;
}

.admin-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 20px 0;
}

.server-data {
    display: none;
}

.th-center {
    text-align: center;
}

.th-danger {
    color: #e74c3c;
}

.settings-success-dot {
    background: #27ae60;
}

.bulk-email-status {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
}

.bulk-email-status-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bulk-email-spinner {
    color: #3498db;
}

.bulk-email-progress-track {
    margin-top: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    height: 6px;
}

.bulk-email-progress {
    height: 100%;
    background: #3498db;
    border-radius: 6px;
    width: 0%;
    transition: width 0.3s;
}

.bulk-email-details {
    margin-top: 8px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

.settings-password-form {
    margin-top: 15px;
}

.settings-full-width {
    width: 100%;
}

.confirm-warning-icon {
    color: #e74c3c;
}

/* Form toggle menu styles */
.form-toggle-menu {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.05);
    gap: 20px;
    transition: background 0.2s;
}

.toggle-row:first-child {
    border-radius: 12px 12px 0 0;
    border-bottom: none;
}

.toggle-row:last-child {
    border-radius: 0 0 12px 12px;
    border-top: none;
}

.toggle-row:hover {
    background: rgba(0, 0, 0, 0.25);
}

.toggle-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.toggle-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    font-size: 0.95rem;
}

.toggle-status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.toggle-status-indicator .status-dot {
    width: 10px;
    height: 10px;
}

.toggle-form-inline {
    margin: 0;
    flex-shrink: 0;
}

.btn-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 10px;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    color: white;
    transition: all 0.2s;
}

.btn-toggle:hover {
    transform: translateY(-1px);
}

.btn-toggle-success {
    background: rgba(46, 204, 113, 0.2);
    border: 1px solid rgba(46, 204, 113, 0.4);
    color: #2ecc71;
}

.btn-toggle-success:hover {
    background: #2ecc71;
    color: white;
}

.btn-toggle-danger {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid rgba(231, 76, 60, 0.4);
    color: #e74c3c;
}

.btn-toggle-danger:hover {
    background: #e74c3c;
    color: white;
}

@media (max-width: 768px) {
    .toggle-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .btn-toggle {
        width: 100%;
        justify-content: center;
    }
}

.dashboard-stat-large {
    font-size: 1.8rem;
}

.dashboard-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px;
}

.pref-toggle {
    display: flex;
    gap: 6px;
}

.chart-container {
    position: relative;
    height: 350px;
    width: 100%;
    margin-top: 20px;
}

.chart-empty-state {
    color: rgba(255,255,255,0.5);
    text-align: center;
    padding-top: 150px;
    font-family: Poppins, sans-serif;
}

.empty-table-cell {
    text-align: center;
    padding: 100px;
    color: rgba(255,255,255,0.2);
}

.empty-table-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
}

.modal-overlay.is-hidden {
    display: none;
}

.application-type-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.application-type-badge.regular {
    color: rgba(255,255,255,0.55);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
}

.application-type-badge.late {
    color: #f1c40f;
    background: rgba(241,196,15,0.14);
    border: 1px solid rgba(241,196,15,0.35);
}

/* Event check-in embedded styles */
.sortable {
            cursor: pointer;
            user-select: none;
            transition: color 0.2s;
        }
        .sortable:hover { color: white; }

        .page-btn {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: white;
            padding: 6px 12px;
            border-radius: 6px;
            cursor: pointer;
            transition: 0.2s;
        }
        .page-btn.active {
            background: var(--bordo);
            border-color: var(--bordo);
            font-weight: bold;
        }
        .page-btn:hover:not(.active) { background: rgba(255, 255, 255, 0.1); }

        .user-info { display: flex; flex-direction: column; }
        .user-info .name { font-weight: 600; color: white; }
        .user-info .sub-text { font-size: 0.75rem; color: rgba(255, 255, 255, 0.4); }

        .toggle-btn {
            padding: 4px 10px;
            border-radius: 6px;
            font-size: 0.75rem;
            cursor: pointer;
            border: 1px solid;
            font-weight: 600;
            transition: all 0.2s ease;
            color: white;
            display: flex;
            align-items: center;
            gap: 4px;
            justify-content: center;
            min-width: 90px;
        }
        .toggle-btn:hover { transform: translateY(-1px); }

        .toggle-attended {
            background: rgba(255,255,255,0.03);
            border-color: rgba(255,255,255,0.15);
            color: rgba(255,255,255,0.4);
        }
        .toggle-attended.active {
            background: rgba(46, 204, 113, 0.2);
            border-color: rgba(46, 204, 113, 0.5);
            color: #2ecc71;
        }

        .toggle-badge {
            background: rgba(255,255,255,0.03);
            border-color: rgba(255,255,255,0.15);
            color: rgba(255,255,255,0.4);
        }
        .toggle-badge.active {
            background: rgba(52, 152, 219, 0.2);
            border-color: rgba(52, 152, 219, 0.5);
            color: #3498db;
        }

        .email-text, .phone-text { font-size: 0.85rem; }

        .timestamp {
            font-size: 0.65rem;
            color: rgba(255,255,255,0.35);
            margin-top: 3px;
            text-align: center;
        }

/* Mail inbox styles */
.mail-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mail-item {
    display: block;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    text-decoration: none !important;
    color: inherit;
    transition: all 0.2s ease;
}

.mail-item:hover {
    background: rgba(146, 183, 117, 0.08);
    border-color: rgba(146, 183, 117, 0.2);
    transform: translateX(5px);
}

.mail-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.mail-from {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.95rem;
}

.mail-from i {
    color: var(--bordo);
}

.mail-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}

.mail-date i {
    font-size: 0.75rem;
}

.mail-subject {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.mail-subject i {
    color: var(--bordo);
    font-size: 0.8rem;
}

.mail-preview {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    line-height: 1.5;
}

.mail-empty-state {
    text-align: center;
    padding: 80px 20px;
    color: rgba(255, 255, 255, 0.3);
}

.mail-empty-state i {
    margin-bottom: 20px;
    opacity: 0.5;
}

.mail-empty-state h3 {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
}

/* Mail detail styles */
.mail-detail-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    margin-top: 20px;
}

.mail-detail-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mail-detail-subject {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.mail-detail-meta {
    display: flex;
    gap: 30px;
}

.mail-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.mail-meta-item i {
    color: var(--bordo);
}

.mail-detail-body {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.mail-html-content {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.mail-text-content {
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Inter', monospace;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
    font-size: 0.9rem;
}

/* Reply form styles */
.reply-form {
    margin-top: 30px;
}

.reply-header {
    margin-bottom: 15px;
}

.reply-header h3 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.reply-header h3 i {
    color: var(--bordo);
}

.reply-body textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    resize: vertical;
    outline: none;
    transition: all 0.2s ease;
}

.reply-body textarea:focus {
    border-color: var(--bordo);
    background: rgba(146, 183, 117, 0.05);
    box-shadow: 0 0 0 3px rgba(146, 183, 117, 0.1);
}

.reply-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.btn-reply {
    background: var(--bordo);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-reply:hover {
    background: #7a9c61;
    transform: translateY(-2px);
}

.btn-danger {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-danger:hover {
    background: #e74c3c;
    color: white;
    transform: translateY(-2px);
}
