/* Admin Panel Styles */
.admin-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 1000px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.admin-panel.active {
    right: 0;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid #e9ecef;
    background: #f8f9fa;
}

.admin-header h2 {
    color: #333;
}

.admin-login {
    padding: 40px;
    max-width: 400px;
    margin: 50px auto;
}

.admin-login h3 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.admin-login input {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
}

.admin-login input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.admin-dashboard {
    height: calc(100vh - 80px);
    display: flex;
}

.admin-nav {
    width: 250px;
    background: #f8f9fa;
    padding: 20px 0;
    border-right: 2px solid #e9ecef;
}

.admin-nav-btn {
    display: block;
    width: 100%;
    padding: 15px 20px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    color: #666;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.admin-nav-btn:hover,
.admin-nav-btn.active {
    background: white;
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.admin-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
}

.admin-section h3 {
    margin-bottom: 30px;
    color: #333;
    font-size: 1.8rem;
}

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

.stat-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border-left: 4px solid var(--primary-color);
}

.stat-card h4 {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Admin Table */
.table-container {
    overflow-x: auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

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

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

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

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

/* Settings Form */
.settings-form {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.settings-form h4 {
    margin-bottom: 30px;
    color: #333;
}

.settings-form label {
    display: block;
    margin-bottom: 5px;
    color: #666;
    font-weight: 500;
}

.settings-form input {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
}

.settings-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Mobile Admin */
@media (max-width: 768px) {
    .admin-panel {
        width: 100%;
        max-width: none;
    }

    .admin-dashboard {
        flex-direction: column;
    }

    .admin-nav {
        width: 100%;
        display: flex;
        overflow-x: auto;
        padding: 10px;
    }

    .admin-nav-btn {
        white-space: nowrap;
        min-width: 120px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}