/* Admin Panel Additional Styles */

.admin-nav {
    background: var(--white);
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.admin-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.admin-nav ul li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.admin-nav ul li a:hover,
.admin-nav ul li a.active {
    background: var(--primary-blue);
    color: var(--white);
}

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

.stat-card {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 5px solid var(--primary-blue);
}

.stat-card h3 {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card .stat-number {
    color: var(--primary-dark);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-card p {
    color: var(--text-gray);
    font-size: 13px;
    margin: 0;
}

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

.data-table thead {
    background: var(--primary-dark);
    color: var(--white);
}

.data-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover {
    background: var(--light-gray);
}

.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-warning {
    background: #fff3e0;
    color: #e65100;
}

.badge-danger {
    background: #ffebee;
    color: #c62828;
}

.badge-info {
    background: #e3f2fd;
    color: #1565c0;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.btn-sm {
    padding: 6px 15px;
    font-size: 13px;
}

.modal-large {
    max-width: 800px !important;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.tab-button {
    padding: 12px 25px;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-gray);
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-button:hover {
    color: var(--primary-blue);
}

.tab-button.active {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-blue);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.result-bar {
    background: #e0e0e0;
    height: 30px;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.result-bar-fill {
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-light));
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 10px;
    color: var(--white);
    font-weight: 600;
    font-size: 13px;
    transition: width 0.5s ease;
}

.winner-badge {
    display: inline-block;
    background: #ffd700;
    color: #000;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-left: 10px;
}

.progress-tracker {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.progress-bar-wrapper {
    background: #e0e0e0;
    height: 25px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--success), #66bb6a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 12px;
    transition: width 0.5s ease;
}

@media screen and (max-width: 768px) {
    .admin-nav {
        flex-direction: column;
        gap: 15px;
    }
    
    .admin-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .data-table {
        font-size: 13px;
    }
    
    .data-table th,
    .data-table td {
        padding: 10px;
    }
}

@media screen and (max-width: 480px) {
    .action-buttons {
        flex-direction: column;
    }
    
    .data-table {
        font-size: 12px;
    }
}
/* Modal scroll fix */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    border-radius: 10px;
    width: 100%;
    max-width: 700px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    margin: 20px auto;
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e0e0e0;
}

.modal-header h3 {
    margin: 0;
    color: var(--primary-dark);
}

.modal-body {
    padding: 25px;
    max-height: 65vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 15px 25px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
}