/* Event Admin System - Consolidated CSS Styles */
/* Import common styles */
@import url('common-styles.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Old Header Style - For all admin pages except dashboard */
.header {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
}

.header .subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
    position: relative;
    z-index: 2;
}

/* Old Header Controls - For all admin pages except dashboard */
.header .header-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 25px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.header .session-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    margin: 0;
}

.header .session-info .session-label {
    font-weight: 500;
}

.header .session-info .countdown {
    font-weight: 600;
}

/* Banner Section - Admin Dashboard Only */
.banner-section {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%) !important;
    color: white !important;
    padding: 20px 30px !important;
    border-radius: 15px !important;
    margin-bottom: 30px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
    position: relative !important;
    overflow: hidden !important;
}

.banner-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.default-banner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0.03;
    z-index: 0;
    pointer-events: none;
}

.default-banner i {
    font-size: 5rem;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.default-banner div {
    font-size: 1.8rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

.award-title {
    font-size: 2.5rem !important;
    font-weight: 300 !important;
    margin-bottom: 10px !important;
    text-align: center !important;
    position: relative !important;
    z-index: 2 !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
}

.page-header {
    font-size: 1.6rem !important;
    font-weight: 500 !important;
    margin-bottom: 15px !important;
    text-align: center !important;
    position: relative !important;
    z-index: 2 !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
}

.page-subtitle {
    font-size: 1rem;
    font-weight: 400;
    margin-top: 5px;
    opacity: 0.9;
    text-align: center;
}

/* Banner Section Header Controls */
.banner-section .header-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 25px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    margin: 0;
}

.session-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    margin: 0;
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(220, 53, 69, 0.85);
    border-radius: 20px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: rgba(220, 53, 69, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* ===== Admin Dashboard Layout ===== */
.admin-header {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    padding: 20px 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    flex-direction: column;
    max-width: 1400px;
    margin: 0 auto;
    gap: 15px;
}

/* Award Title Section */
.award-title-section {
    text-align: center;
    margin-bottom: 10px;
}

.award-title {
    font-size: 1.8rem;
    font-weight: 300;
    margin: 0;
    opacity: 0.9;
}

/* Main Header Section */
.main-header-section {
    text-align: center;
    margin-bottom: 10px;
}

.main-header-section h1 {
    font-size: 1.6rem;
    font-weight: 600;
    margin: 0;
}

/* Admin Controls Section */
.admin-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.header-content h1 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
}

.admin-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    opacity: 0.9;
    margin-right: auto;
}

.session-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.session-timer i {
    font-size: 0.8rem;
}

#countdown {
    font-weight: 500;
}

.admin-info span {
    font-weight: 500;
    font-size: 1rem;
}

.admin-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - 80px);
    background: #f8f9fa;
}

.admin-nav {
    width: 280px;
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    padding: 20px 0;
    position: sticky;
    top: 80px;
    height: fit-content;
}

.admin-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.admin-nav li {
    margin: 0;
}

.admin-nav a {
    display: block;
    padding: 15px 25px;
    color: #555;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.admin-nav a:hover {
    background: #f8f9fa;
    color: #6a11cb;
    border-left-color: #6a11cb;
}

.admin-nav a.active {
    background: #e8f2ff;
    color: #6a11cb;
    border-left-color: #6a11cb;
    font-weight: 600;
}

.admin-main {
    flex: 1;
    padding: 15px;
    background: white;
    margin: 8px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Dashboard Sections */
.dashboard-section {
    margin-bottom: 40px;
}

.dashboard-section h2 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.stat-card h3 {
    color: #555;
    font-size: 1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #6a11cb;
    margin-bottom: 15px;
}

.stat-link {
    color: #6a11cb;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.stat-link:hover {
    text-decoration: underline;
}

/* Rounds Grid */
.rounds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.round-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.round-card h3 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.round-stats {
    margin-bottom: 20px;
}

.round-stats p {
    margin-bottom: 8px;
    color: #666;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(106, 17, 203, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid transparent;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

/* Regional Statistics */
.regional-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.region-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.region-name {
    font-weight: 600;
    color: #333;
}

.region-count {
    color: #6a11cb;
    font-weight: 500;
}

/* Activity Log */
.activity-log {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.activity-item {
    display: grid;
    grid-template-columns: auto auto 1fr 2fr;
    gap: 15px;
    padding: 12px 20px;
    border-bottom: 1px solid #f1f3f4;
    align-items: center;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-time {
    color: #666;
    font-size: 0.85rem;
    font-weight: 500;
}

.activity-level {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.activity-info {
    background: #d1ecf1;
    color: #0c5460;
}

.activity-warning {
    background: #fff3cd;
    color: #856404;
}

.activity-error {
    background: #f8d7da;
    color: #721c24;
}

.activity-debug {
    background: #e2e3e5;
    color: #383d41;
}

.activity-source {
    font-weight: 500;
    color: #555;
    font-size: 0.9rem;
}

.activity-message {
    color: #333;
    font-size: 0.9rem;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

/* Config Info */
.config-info {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e9ecef;
}

.config-info p {
    margin-bottom: 10px;
    color: #333;
}

.config-info p:last-child {
    margin-bottom: 0;
}

.config-info strong {
    color: #6a11cb;
    font-weight: 600;
}

/* Debug Mode Indicators */
.debug-indicator {
    position: fixed;
    top: 10px;
    right: 10px;
    background: #ff6b6b;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.debug-control-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    max-width: 300px;
}

.debug-control-panel h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1rem;
}

.debug-control-panel a {
    display: block;
    padding: 5px 10px;
    margin: 2px 0;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.8rem;
    transition: background 0.2s;
}

.debug-control-panel a:hover {
    background: #e9ecef;
}

.debug-info {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    font-family: monospace;
    font-size: 0.85rem;
}

.debug-info h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1rem;
}

.debug-info p {
    margin: 5px 0;
    color: #666;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .admin-container {
        flex-direction: column;
    }
    
    .admin-nav {
        width: 100%;
        position: static;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        margin-bottom: 20px;
    }
    
    .admin-nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        padding: 15px;
    }
    
    .admin-nav a {
        padding: 10px 15px;
        border-left: none;
        border-bottom: 2px solid transparent;
        border-radius: 6px;
    }
    
    .admin-nav a:hover,
    .admin-nav a.active {
        border-left-color: transparent;
        border-bottom-color: #6a11cb;
    }
    
    .admin-main {
        margin: 0 20px 20px 20px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .header-content h1 {
        font-size: 1.5rem;
    }
    
    .admin-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .rounds-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-main {
        padding: 20px;
        margin: 0 10px 20px 10px;
    }
}

.banner-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(106, 17, 203, 0.8) 0%, rgba(37, 117, 252, 0.8) 100%);
    z-index: -1;
}

.banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.default-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    opacity: 0.1;
    z-index: -2;
}

.default-banner i {
    font-size: 4rem;
    margin-bottom: 10px;
}

.default-banner div {
    font-size: 1.5rem;
    font-weight: 300;
}

.award-title {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
}

.banner-section:not(:has(.banner-image)) .award-title {
    display: block;
}

.banner-section .award-title {
    display: none;
}

.banner-section .banner-image + .award-title {
    display: block;
}

.page-header {
    font-size: 1.8rem;
    font-weight: 400;
    margin-top: 20px;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
    color: #333;
}

/* Page Header Inside Banner Section */
.banner-section .page-header {
    color: #fff;
    text-align: center;
    margin: 15px 0 60px 0;
    font-size: 1.6rem;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Banner Section Header Controls - Dashboard Only */
.banner-section .header-controls {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.banner-section .header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.banner-section .header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.banner-section .admin-info {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.banner-section .admin-info i {
    font-size: 16px;
}

.banner-section .session-timer {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.banner-section .session-timer i {
    font-size: 16px;
}

/* Session Timer for Header Structure */
.header .session-timer {
    background: rgba(255,255,255,0.2) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    border-radius: 25px !important;
    padding: 10px 20px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    backdrop-filter: blur(10px) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.header .session-timer i {
    font-size: 16px !important;
}

.header-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 0;
}

.header-back-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    color: white;
}

.btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(220, 53, 69, 0.8);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(220, 53, 69, 0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 0;
}

.btn-logout:hover {
    background: rgba(220, 53, 69, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    color: white;
}

.banner-section .btn-logout i {
    font-size: 16px;
}

.btn {
    display: inline-block;
    padding: 15px 20px;
    text-decoration: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    text-align: left;
    font-size: 1rem;
    margin: 5px;
    cursor: pointer;
}

.btn:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.4);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268 0%, #343a40 100%);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.btn-success:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
}

.btn-back {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-back:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 10px;
    font-weight: 500;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.table-container {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #495057;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #6a11cb;
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Quick Stats Section */
.quick-stats {
    margin-top: 30px;
    margin-bottom: 30px;
}

.quick-stats h3 {
    font-size: 1.3rem;
    color: #2575fc;
    margin-bottom: 20px;
    font-weight: 700;
}

.stat-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Search Section Styles */
.search-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.search-row {
    display: flex;
    gap: 10px;
    align-items: baseline;
    flex-wrap: wrap;
}

.search-row .form-group {
    margin: 0;
    flex: 1;
    min-width: 150px;
}

.search-row input,
.search-row select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    height: 38px;
    line-height: 1.2;
}

.search-row .btn-search,
.search-row .btn-clear,
.search-row .btn-primary,
.search-row .btn-secondary,
.search-row .btn-success {
    padding: 8px 16px;
    white-space: nowrap;
    height: 38px;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    box-sizing: border-box;
}

.btn-search {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-search:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.btn-clear {
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-clear:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Edit Block Styles */
.edit-block {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 20px;
    margin-bottom: 20px;
}

.edit-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.edit-block-header h3 {
    margin: 0;
    color: #333;
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
}

.btn-close:hover {
    color: #000;
    transform: scale(1.1);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.form-actions .btn,
.form-actions .btn-primary,
.form-actions .btn-secondary {
    margin: 0;
    min-width: 100px;
    text-align: center;
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    background: #ffc107;
    color: #212529;
    transition: all 0.3s ease;
}

.form-actions .btn:hover,
.form-actions .btn-primary:hover,
.form-actions .btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.form-actions .btn-primary {
    background: #28a745;
    color: white;
}

.form-actions .btn-primary:hover {
    background: #218838;
}

.form-actions .btn-secondary {
    background: #6c757d;
    color: white;
}

.form-actions .btn-secondary:hover {
    background: #5a6268;
}

.required {
    color: #dc3545;
    font-weight: bold;
}

/* Form Layout Styles */
.form-grid {
    display: block;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    height: 38px;
    line-height: 1.2;
}

.form-group textarea {
    height: auto;
    min-height: 80px;
}

.form-group select option {
    background-color: white;
    color: #333;
}

.form-group textarea {
    resize: vertical;
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

/* Specific table styles */
.participants-table,
.categories-table,
.submission-types-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.participants-table th, .participants-table td,
.categories-table th, .categories-table td,
.submission-types-table th, .submission-types-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.participants-table th,
.categories-table th,
.submission-types-table th {
    background: #f8f9fa;
    font-weight: 600;
}

/* Status and mode indicators */
.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 60px;
    text-align: center;
}

.status-active {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-inactive {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.mode-single {
    color: #007bff;
    font-weight: 600;
}

.mode-multiple {
    color: #ffc107;
    font-weight: 600;
}

/* Max files column styling */
.submission-types-table td:nth-child(6) {
    text-align: center;
    font-weight: 600;
    color: #495057;
}

/* Help text styling */
.help-text {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 4px;
    font-style: italic;
}

/* Standard action buttons - Consistent styling across all admin pages */
.action-buttons {
    display: flex;
    gap: 4px;
    flex-wrap: nowrap;
    justify-content: flex-start;
}

.btn-edit, .btn-delete, .btn-reset, .btn-view {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
}

.btn-edit:hover, .btn-delete:hover, .btn-reset:hover, .btn-view:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.btn-edit {
    background: #ffc107;
    color: #212529;
}

.btn-edit:hover {
    background: #e0a800;
    color: #212529;
}

.btn-delete {
    background: #dc3545;
    color: white;
}

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

.btn-reset {
    background: #17a2b8;
    color: white;
}

.btn-reset:hover {
    background: #138496;
    color: white;
}

.btn-view {
    background: #28a745;
    color: white;
}

.btn-view:hover {
    background: #218838;
    color: white;
}

/* Tooltip for action buttons */
.btn-edit[title]:hover::after,
.btn-delete[title]:hover::after,
.btn-reset[title]:hover::after,
.btn-view[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 40px;
    color: #666;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.empty-state i {
    font-size: 3em;
    margin-bottom: 20px;
    color: #ddd;
}

/* Project and file info */
.project-info {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-types {
    font-size: 12px;
    color: #666;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

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

.close {
    font-size: 24px;
    cursor: pointer;
    color: #aaa;
}

.close:hover {
    color: #000;
}

/* Modal button styling */
.modal-content button {
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    margin-left: 5px;
    transition: all 0.3s ease;
}

.modal-content .btn-secondary {
    background: #6c757d;
    color: white;
}

.modal-content .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.modal-content .btn-primary {
    background: #28a745;
    color: white;
}

.modal-content .btn-primary:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.modal-content .btn-delete {
    background: #dc3545;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 140px;
    text-align: center;
    white-space: nowrap;
}

.modal-content .btn-delete:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.modal-content .btn-reset {
    background: #17a2b8;
    color: white;
}

.modal-content .btn-reset:hover {
    background: #138496;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.modal-actions {
    text-align: right;
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Login Page Specific Styles */
.login-container {
    max-width: 740px;
    width: 100%;
    padding: 20px;
    margin: 40px auto 0 auto;
}

@media (min-width: 769px) {
    .login-container {
        margin: 30px auto 0 auto;
    }
}

@media (max-width: 768px) {
    .login-container {
        max-width: 500px;
        margin: 20px auto 0 auto;
        padding: 15px;
    }
}

.form-group {
    margin-bottom: 18px;
}

.login-header {
    margin-bottom: 30px;
}

.login-header h1 {
    color: #495057;
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 10px;
}

.login-header .subtitle {
    color: #6c757d;
    font-size: 1rem;
}

.login-icon {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 20px;
}

/* Login Page Specific Header Styles */
.login-container .header {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    padding: 20px 40px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    text-align: center;
}

.login-container .header h1 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 8px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.login-container .header .subtitle {
    font-size: 0.95rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Responsive adjustments for login header */
@media (max-width: 768px) {
    .login-container .header {
        padding: 18px 20px;
        margin-bottom: 20px;
    }
    
    .login-container .header h1 {
        font-size: 1.6rem;
    }
    
    .login-container .header .subtitle {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .login-container {
        max-width: 420px;
        padding: 12px;
    }
    
    .login-container .header {
        padding: 15px 18px;
        margin-bottom: 18px;
    }
    
    .login-container .header h1 {
        font-size: 1.4rem;
    }
    
    .login-container .header .subtitle {
        font-size: 0.85rem;
    }
}

/* Dashboard Styles */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

.dashboard-card h3 {
    color: #6a11cb;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.dashboard-card .card-content {
    color: #666;
    margin-bottom: 20px;
}

.dashboard-card .card-actions {
    text-align: right;
}

/* Form Styles */
.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
    align-items: center;
}

.form-row label {
    flex: 0 0 150px;
    font-weight: 600;
    color: #333;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="password"],
.form-row input[type="number"],
.form-row input[type="date"],
.form-row input[type="datetime-local"],
.form-row input[type="url"],
.form-row input[type="file"],
.form-row select,
.form-row textarea {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    min-width: 200px;
}

.form-row input[type="text"]:focus,
.form-row input[type="email"]:focus,
.form-row input[type="password"]:focus,
.form-row input[type="number"]:focus,
.form-row input[type="date"]:focus,
.form-row input[type="datetime-local"]:focus,
.form-row input[type="url"]:focus,
.form-row input[type="file"]:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: #6a11cb;
    box-shadow: 0 0 0 2px #e0e7ff;
}

.form-row textarea {
    resize: vertical;
    min-height: 80px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        margin-bottom: 30px;
    }
    
    .current-event {
        margin-bottom: 25px;
        padding: 20px 24px;
    }
    
    .form-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-row label {
        flex: none;
        margin-bottom: 5px;
    }
    
    .form-row input,
    .form-row select,
    .form-row textarea {
        flex: none;
        min-width: auto;
    }
    
    .search-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-row .form-group {
        min-width: auto;
    }
}

@media (max-width: 600px) {
    /* Old Header Responsive - For all admin pages except dashboard */
    .header .header-controls {
        flex-direction: row;
        gap: 10px;
        margin-top: 15px;
        justify-content: flex-end;
        align-items: center;
        flex-wrap: wrap;
    }

    .header .session-info {
        font-size: 0.8rem;
        padding: 6px 10px;
    }

    /* Banner Section Responsive - Dashboard Only */
    .banner-section .header-controls {
        flex-direction: column;
        gap: 10px;
        bottom: 15px;
        left: 15px;
        right: 15px;
    }

    .banner-section .header-left,
    .banner-section .header-right {
        justify-content: center;
    }

    .banner-section .session-timer {
        font-size: 0.8rem;
        padding: 6px 10px;
    }

    .header .session-timer {
        font-size: 0.8rem !important;
        padding: 6px 10px !important;
    }

    .banner-section .admin-info {
        font-size: 0.8rem;
    }

    .banner-section .btn-logout {
        font-size: 14px;
        padding: 8px 18px;
    }

    .banner-section .award-title {
        font-size: 2rem;
    }

    .banner-section .page-header {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
        margin-bottom: 25px;
    }
    
    .current-event {
        margin-bottom: 20px;
        padding: 16px 20px;
    }
    
    .admin-grid {
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .login-container {
        margin: 10px auto 0 auto;
        padding: 10px;
    }
    
    .login-card {
        padding: 20px 15px 15px 15px;
    }
}

/* Admin Management Table Styles */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    margin-bottom: 0;
}

.admin-table th, .admin-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.admin-table th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #495057;
    font-weight: 600;
}

.admin-table td {
    background: #fff;
    vertical-align: middle;
    padding: 12px 8px;
}

.admin-input {
    width: 100%;
    padding: 5px 8px;
    border-radius: 5px;
    border: 1px solid #d1d5db;
    font-size: 1rem;
    background: #f8f9fa;
    margin: 0;
    box-sizing: border-box;
}

.btn-sm {
    padding: 6px 10px;
    font-size: 0.95em;
    border-radius: 6px;
    margin: 0 2px;
}

.admin-add-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    padding: 15px;
    margin-bottom: 15px;
}

.admin-add-section h2 {
    margin-bottom: 10px;
    color: #2575fc;
    font-size: 1.1rem;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 6px;
}

.admin-add-form {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.admin-add-form .form-input {
    width: 100%;
    box-sizing: border-box;
}

.role-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-badge.superadmin {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
}

.role-badge.admin {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.admin-edit-form {
    display: contents;
    width: 100%;
}

.admin-delete-form {
    display: inline;
}

@media (max-width: 700px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .admin-add-section {
        padding: 10px;
    }
    .admin-add-form {
        padding: 8px;
    }
    .admin-table th, .admin-table td {
        padding: 6px 4px;
    }
    .form-group {
        width: 100%;
    }
    .form-input, .admin-input {
        width: 100%;
        box-sizing: border-box;
    }
}

.current-event {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    padding: 24px 32px;
    margin-bottom: 30px;
}

.current-event h2 {
    font-size: 1.3rem;
    margin-bottom: 18px;
    color: #2575fc;
}

.event-info {
    margin-left: 10px;
}

.event-info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 40px;
}

.info-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.info-label {
    font-weight: 600;
    color: #444;
    min-width: 70px;
    margin-right: 8px;
}

.info-value {
    color: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Admin Dashboard Grid: max 3 columns */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 0;
    margin-bottom: 40px;
    justify-content: start;
}

/* Dashboard Menu Buttons - Reference Style */
.menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu li {
    margin-bottom: 14px;
    width: 100%;
}

.menu li:last-child {
    margin-bottom: 0;
}

.menu a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px 22px !important;
    text-decoration: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.08rem;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.08);
    border: none;
    text-align: center !important;
    transition: all 0.3s ease;
    word-break: break-word;
    white-space: normal;
    line-height: 1.4;
    letter-spacing: 0.01em;
    position: relative;
    min-height: 70px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.menu a i {
    margin-right: 10px;
    font-size: 1.1em;
    vertical-align: middle;
}

.menu a:hover {
    transform: translateX(5px) scale(1.03);
    box-shadow: 0 5px 18px rgba(106, 17, 203, 0.18);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    color: #fff;
}

.admin-section {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    padding: 32px 28px 24px 28px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    box-sizing: border-box;
    height: fit-content;
    width: 100%;
}

.admin-section h3 {
    font-size: 1.18rem;
    color: #2575fc;
    margin-bottom: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-section h3 i {
    font-size: 1.4rem;
    color: #2575fc;
    width: 24px;
    text-align: center;
}

@media (max-width: 900px) {
    .admin-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .admin-section {
        padding: 24px 20px 20px 20px;
    }
}

@media (max-width: 600px) {
    .admin-grid {
        gap: 20px;
    }
    .admin-section {
        padding: 20px 16px 16px 16px;
    }
    .menu a {
        padding: 16px 18px;
        font-size: 1rem;
    }
}

/* System Configuration Page Styles */
.config-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    padding: 30px;
    margin-bottom: 30px;
}

.config-section h3 {
    font-size: 1.25rem;
    color: #2575fc;
    margin-bottom: 25px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid #e3f2fd;
    padding-bottom: 15px;
}

.config-section h3 i {
    font-size: 1.3rem;
    color: #2575fc;
}

.form-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
    width: 100%;
}

.form-row-full {
    width: 100%;
}

.config-section .form-row {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 0;
    align-items: stretch;
}

.config-section .form-row label {
    flex: none;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    width: 100%;
}

.config-section .form-row input,
.config-section .form-row textarea {
    flex: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: auto;
}

.banner-preview {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.banner-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.banner-preview.no-banner {
    color: #6c757d;
    font-style: italic;
}

.form-help {
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 8px;
    line-height: 1.4;
}

.form-actions {
    text-align: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e9ecef;
}

.form-actions .btn {
    margin: 0 10px;
    min-width: 120px;
} 

/* Table Section Styles */
.table-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    padding: 24px;
    margin-bottom: 30px;
}

.table-section h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #2c3e50;
    font-weight: 600;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.table-section h2 i {
    color: #2575fc;
    margin-right: 8px;
}

/* Form Section Styles */
.form-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    padding: 24px;
    margin-bottom: 30px;
}

.form-section h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #2c3e50;
    font-weight: 600;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.form-section h2 i {
    color: #2575fc;
    margin-right: 8px;
}

/* Checkbox List Styles */
.checkbox-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    background: #f9f9f9;
    margin-top: 8px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.checkbox-item:last-child {
    border-bottom: none;
}

.checkbox-item:hover {
    background-color: #f0f0f0;
    border-radius: 4px;
    padding-left: 8px;
    margin-left: -8px;
}

.checkbox-item input[type="checkbox"] {
    margin-right: 12px;
    transform: scale(1.2);
    cursor: pointer;
}

.checkbox-item label {
    cursor: pointer;
    font-size: 14px;
    color: #333;
    flex: 1;
    user-select: none;
}

.checkbox-item input[type="checkbox"]:checked + label {
    font-weight: 600;
    color: #2575fc;
}

.loading, .no-participants, .error {
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
}

.error {
    color: #e74c3c;
    font-weight: 500;
}

.no-participants {
    color: #f39c12;
}

.checkbox-controls {
    margin-bottom: 8px;
    display: flex;
    gap: 8px;
}

.checkbox-controls .btn-small {
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background: #fff;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.checkbox-controls .btn-small:hover {
    background: #f0f0f0;
    border-color: #bbb;
    color: #333;
}

.checkbox-controls .btn-small i {
    margin-right: 4px;
}

/* Search Section Spacing */
.search-section {
    margin-bottom: 20px;
}

/* User Management Specific Styles */
.add-user-form {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    margin-bottom: 20px;
}

.add-user-form .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.users-table {
    width: 100%;
    margin-top: 20px;
}

.users-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.users-table th {
    background: #f8f9fa;
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #dee2e6;
}

.users-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}

.users-table tr:hover {
    background-color: #f8f9fa;
}

.admin-edit-form {
    display: contents;
    width: 100%;
}

.admin-delete-form {
    display: inline;
}

.admin-input {
    width: 100%;
    padding: 5px 8px;
    border-radius: 5px;
    border: 1px solid #d1d5db;
    font-size: 1rem;
    background: #f8f9fa;
    margin: 0;
    box-sizing: border-box;
}

.admin-input:focus {
    outline: none;
    border-color: #2575fc;
    box-shadow: 0 0 0 2px rgba(37, 117, 252, 0.1);
}

.role-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-badge.role-superadmin {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
}

.role-badge.role-admin {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.btn-small {
    padding: 6px 10px;
    font-size: 0.95em;
    border-radius: 6px;
    margin: 0 2px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-small.btn-success {
    background: #28a745;
    color: white;
}

.btn-small.btn-success:hover {
    background: #218838;
}

.btn-small.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-small.btn-danger:hover {
    background: #c82333;
}

/* Form Grid Responsive */
@media (max-width: 700px) {
    .add-user-form .form-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .users-table th, 
    .users-table td {
        padding: 8px 4px;
        font-size: 0.9rem;
    }
    
    .admin-input {
        font-size: 0.9rem;
    }
}

/* Form vertical alignment fixes for category management and other admin forms */
.edit-block .form-group,
.search-section .form-group {
    margin-bottom: 15px;
}

.edit-block .form-group label,
.search-section .form-group label {
    margin-bottom: 4px;
    font-weight: 500;
    color: #333;
    line-height: 1.2;
}

.edit-block .form-group input,
.edit-block .form-group select,
.edit-block .form-group textarea,
.search-section .form-group input,
.search-section .form-group select,
.search-section .form-group textarea {
    width: 100%;
}

.edit-block .form-group .form-help,
.search-section .form-group .form-help {
    margin-top: 2px;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.3;
}

/* Ensure consistent spacing in form rows */
.edit-block .form-row,
.search-section .form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: flex-start;
}

.edit-block .form-row .form-group,
.search-section .form-row .form-group {
    flex: 1;
}

/* Language Switcher Styles */
.language-switcher {
    position: relative;
    display: inline-block;
    margin-left: 15px;
}

.language-current {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
}

.language-current:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.language-flag {
    font-size: 1rem;
}

.language-name {
    font-weight: 500;
    color: #333;
    font-size: 0.75rem;
}

.language-current i {
    font-size: 0.8rem;
    color: #666;
    transition: transform 0.2s ease;
}

/* Removed hover-based dropdown - now using click-based */

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    z-index: 1000;
    display: none;
}

.language-dropdown.show {
    display: block;
}

/* Removed hover-based dropdown - now using click-based */

.language-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f1f3f4;
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background: #f8f9fa;
    text-decoration: none;
    color: #333;
}

.language-option.active {
    background: #e3f2fd;
    color: #1976d2;
    font-weight: 500;
}

.language-option.active:hover {
    background: #bbdefb;
}

.language-option .language-flag {
    font-size: 1rem;
}

.language-option .language-name {
    font-size: 0.8rem;
}

/* Mobile responsive for language switcher */
@media (max-width: 768px) {
    .language-switcher {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .language-dropdown {
        right: auto;
        left: 0;
        min-width: 160px;
    }
    
    /* Adjust login page language switcher for mobile */
    .login-language-switcher {
        bottom: 10px;
        right: 20px;
    }
    
    .login-language-switcher .language-current {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
    
    .login-language-switcher .language-name {
        display: none; /* Hide text on mobile, show only flag */
    }
}

@media (max-width: 480px) {
    .login-language-switcher {
        bottom: 8px;
        right: 15px;
    }
    
    .login-language-switcher .language-current {
        padding: 5px 8px;
        font-size: 0.8rem;
    }
}

/* Login page language switcher */
.login-language-switcher {
    position: absolute;
    bottom: 15px;
    right: 25px;
    z-index: 10;
}

.login-language-switcher .language-switcher {
    margin-left: 0;
}

.login-language-switcher .language-current {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.login-language-switcher .language-dropdown {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
}

.login-language-switcher .language-dropdown.show {
    display: block;
}

/* Ensure login header has relative positioning for absolute language switcher */
.login-container .header {
    position: relative;
}

/* =====================================================
   SPECIAL AWARDS MANAGEMENT STYLES
   ===================================================== */

/* Form Styles for Special Awards */
.form-container h3 {
    color: #6a11cb;
    margin: 25px 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 1.1rem;
}

.form-container h3:first-of-type {
    margin-top: 0;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    height: auto;
    margin: 0;
}

.checkbox-group label {
    margin: 0;
    font-weight: normal;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.data-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.data-table tr:hover {
    background: #f8f9fa;
}

/* Status Badges */
.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    display: inline-block;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-inactive {
    background: #f8d7da;
    color: #721c24;
}

.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

.badge-secondary {
    background: #e2e3e5;
    color: #383d41;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 5px;
}

.btn-sm {
    padding: 6px 10px;
    font-size: 0.8rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 20px;
}

.empty-state h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.empty-state p {
    margin: 0;
    font-size: 1rem;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none; /* Changed from flex to none to hide by default */
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e0e0e0;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 20px 25px;
}

.modal-body p {
    margin: 0 0 15px 0;
    color: #333;
}

.text-warning {
    color: #856404;
    background: #fff3cd;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ffeaa7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .data-table {
        font-size: 0.9rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px 10px;
    }
}