* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    background-color: #f5f5f5;
}

.admin-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background-color: #1a2a4f;
    color: white;
    display: flex;
    flex-direction: column;
}

.sidebar .logo {
    padding: 25px;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    border-bottom: 1px solid #2a3a5f;
}

.admin-nav {
    flex: 1;
    padding: 20px 0;
}

.admin-nav a {
    display: block;
    padding: 12px 25px;
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s;
}

.admin-nav a:hover,
.admin-nav a.active {
    background-color: #ff6b35;
    color: white;
}

.user-info {
    padding: 20px;
    border-top: 1px solid #2a3a5f;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-logout {
    background-color: #ff4444;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.main-content {
    flex: 1;
    padding: 25px;
}

.main-content h1 {
    margin-bottom: 25px;
    color: #1a2a4f;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-card h3 {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #ff6b35;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
}

.chart-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.chart-card h3 {
    margin-bottom: 15px;
    color: #1a2a4f;
}

table {
    width: 100%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background-color: #1a2a4f;
    color: white;
}

.btn-edit {
    background-color: #4a6fa5;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 5px;
}

.btn-delete {
    background-color: #ff4444;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.btn-add {
    background-color: #ff6b35;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 20px;
}

.form-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.form-modal.active {
    display: flex;
}

.form-modal-content {
    background: white;
    padding: 25px;
    border-radius: 10px;
    width: 400px;
    max-width: 90%;
}

.form-modal-content h3 {
    margin-bottom: 20px;
}

.form-modal-content input,
.form-modal-content select,
.form-modal-content textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .admin-container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
    }
    .charts-grid {
        grid-template-columns: 1fr;
    }
}