.admin-dashboard {
    display: flex;
    min-height: calc(100vh - 200px);
    gap: 0;
}

.admin-sidebar {
    width: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.admin-logo {
    padding: 0 20px 20px;
    font-size: 1.5em;
    font-weight: bold;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 20px;
}

.admin-nav {
    display: flex;
    flex-direction: column;
}

.nav-item {
    background: none;
    border: none;
    color: white;
    padding: 15px 20px;
    text-align: left;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 1em;
}

.nav-item:hover {
    background: rgba(255,255,255,0.1);
}

.nav-item.active {
    background: rgba(255,255,255,0.2);
    border-left: 4px solid white;
}

.admin-footer {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: auto;
}

.admin-footer a {
    color: white;
    text-decoration: none;
}

.admin-content {
    flex: 1;
    padding: 30px;
    background: #f5f5f5;
}

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

.admin-header h1 {
    margin: 0;
    color: #333;
}

.admin-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-logout {
    color: #764ba2;
    font-size: 1.5em;
    text-decoration: none;
}

.tab-content {
    display: none;
}

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

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

.kpi-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 20px;
}

.kpi-icon {
    font-size: 3em;
    opacity: 0.8;
}

.kpi-primary .kpi-icon { color: #667eea; }
.kpi-success .kpi-icon { color: #48bb78; }
.kpi-info .kpi-icon { color: #4299e1; }
.kpi-warning .kpi-icon { color: #ed8936; }

.kpi-data h3 {
    margin: 0;
    font-size: 2em;
    color: #333;
}

.kpi-data p {
    margin: 5px 0 0;
    color: #666;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 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.1);
}

.stat-card h3 {
    margin-top: 0;
    color: #333;
}

.online-count {
    font-size: 3em;
    font-weight: bold;
    color: #48bb78;
}

.online-list {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.online-user {
    background: #667eea;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9em;
}

.reserve-value {
    font-size: 2.5em;
    font-weight: bold;
    color: #764ba2;
}

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

.chart-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.chart-card h3 {
    margin-top: 0;
    color: #333;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.action-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.action-card h3 {
    margin-top: 0;
    color: #333;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.btn-action {
    padding: 15px;
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    font-size: 1em;
    transition: transform 0.2s;
}

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

.btn-success { background: #48bb78; }
.btn-primary { background: #667eea; }
.btn-info { background: #4299e1; }
.btn-warning { background: #ed8936; }
.btn-danger { background: #f56565; }

.section-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.section-card h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 5px;
    color: #555;
    font-weight: 500;
}

.form-control {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.3s;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.9em;
}

.table-responsive {
    overflow-x: auto;
    margin-top: 15px;
}

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

.data-table thead {
    background: #667eea;
    color: white;
}

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

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

.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: bold;
}

.badge-success {
    background: #c6f6d5;
    color: #22543d;
}

.badge-danger {
    background: #fed7d7;
    color: #742a2a;
}

.text-muted {
    color: #999;
    font-style: italic;
}

.days-remaining {
    font-weight: bold;
    color: #764ba2;
}

.form-section-title {
    grid-column: 1 / -1;
    margin: 20px 0 10px;
    color: #764ba2;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.form-inline {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    margin-top: 15px;
}

.btn.full-width {
    grid-column: 1 / -1;
    width: 100%;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    overflow: auto;
}

.modal-content {
    background: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 2em;
    cursor: pointer;
    color: #999;
}

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

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

@media (max-width: 768px) {
    .admin-dashboard {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
    }
    
    .kpi-grid,
    .stats-grid,
    .charts-grid,
    .action-grid {
        grid-template-columns: 1fr;
    }
}
