/* ===== ADMIN BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background: #f4f1ea; color: #2d2a24; }

/* ===== ADMIN CONTAINER ===== */
.admin-container { display: flex; min-height: 100vh; }

/* ===== SIDEBAR ===== */
.sidebar {
    width: 250px;
    background: #1a3c2a;
    color: #fff;
    padding: 20px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    flex-shrink: 0;
    z-index: 100;
}
.sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid #2a5a3a;
    text-align: center;
}
.sidebar-header h2 { font-size: 22px; color: #c9a84c; }
.sidebar-header p { font-size: 12px; opacity: 0.7; margin-top: 4px; }
.sidebar-nav { padding: 20px 0; }
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #ccc;
    text-decoration: none;
    transition: 0.3s;
    font-size: 14px;
}
.sidebar-nav a:hover { background: #2a5a3a; color: #fff; }
.sidebar-nav a.active { background: #c9a84c; color: #1a3c2a; font-weight: 600; }
.sidebar-nav a i { width: 20px; text-align: center; }

/* ===== MAIN CONTENT ===== */
.main-content {
    margin-left: 250px;
    flex: 1;
    padding: 20px;
    min-height: 100vh;
}

/* ===== TOP BAR ===== */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 15px 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    flex-wrap: wrap;
    gap: 10px;
}
.top-bar h1 { font-size: 22px; color: #1a3c2a; }
.top-bar a { color: #1a3c2a; text-decoration: none; font-size: 14px; padding: 6px 14px; border-radius: 6px; transition: 0.3s; }
.top-bar a:hover { background: #f4f1ea; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
}
.btn-primary { background: #1a3c2a; color: #fff; }
.btn-primary:hover { background: #c9a84c; color: #1a3c2a; }
.btn-secondary { background: #e0dbd2; color: #333; }
.btn-secondary:hover { background: #c9a84c; color: #fff; }
.btn-danger { background: #ff6b6b; color: #fff; }
.btn-danger:hover { background: #e74c3c; }

/* ===== STATS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.stat-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    gap: 15px;
}
.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.stat-info h3 { font-size: 24px; color: #1a3c2a; }
.stat-info p { font-size: 13px; color: #888; }
.stat-link { margin-left: auto; color: #c9a84c; font-size: 13px; text-decoration: none; }
.stat-link:hover { text-decoration: underline; }

/* ===== DASHBOARD GRID ===== */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}
.dashboard-box {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.dashboard-box h3 { color: #1a3c2a; margin-bottom: 15px; font-size: 16px; }
.view-all {
    display: block;
    text-align: right;
    margin-top: 10px;
    color: #c9a84c;
    text-decoration: none;
    font-size: 13px;
}
.view-all:hover { text-decoration: underline; }

/* ===== QUICK ACTIONS ===== */
.quick-actions {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.quick-actions h3 { color: #1a3c2a; margin-bottom: 15px; font-size: 16px; }
.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}
.action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: #f4f1ea;
    border-radius: 8px;
    text-decoration: none;
    color: #1a3c2a;
    transition: 0.3s;
}
.action-btn:hover { background: #c9a84c; color: #fff; }
.action-btn i { font-size: 18px; }

/* ===== TABLES ===== */
.table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}
.table-toolbar span { font-size: 14px; color: #666; }
.table-toolbar input {
    padding: 8px 14px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    min-width: 200px;
}
.table-toolbar input:focus { border-color: #c9a84c; outline: none; }

.table-container {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    overflow-x: auto;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.admin-table th {
    background: #f8f6f2;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #1a3c2a;
    border-bottom: 2px solid #e0dbd2;
}
.admin-table td { padding: 12px 15px; border-bottom: 1px solid #f0ede8; }
.admin-table tr:hover { background: #f8f6f2; }
.admin-table .actions { display: flex; gap: 8px; }
.admin-table .btn-edit {
    color: #2196F3;
    padding: 6px 10px;
    border-radius: 6px;
    transition: 0.3s;
}
.admin-table .btn-edit:hover { background: #e3f2fd; }
.admin-table .btn-delete {
    color: #ff6b6b;
    padding: 6px 10px;
    border-radius: 6px;
    transition: 0.3s;
}
.admin-table .btn-delete:hover { background: #fce4ec; }

/* ===== BADGES ===== */
.badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.badge-upcoming { background: #e3f2fd; color: #0d47a1; }
.badge-ongoing { background: #fff3e0; color: #e65100; }
.badge-completed { background: #e8f5e9; color: #2e7d32; }

/* ===== FORMS ===== */
.form-container {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
    font-size: 14px;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: 0.3s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: #c9a84c;
    outline: none;
}
.form-group textarea { resize: vertical; }
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    flex-wrap: wrap;
}

/* ===== ALERTS ===== */
.alert {
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ===== GALLERY GRID ADMIN ===== */
.gallery-grid-admin {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.gallery-item-admin {
    background: #f8f6f2;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e0dbd2;
    transition: 0.3s;
}
.gallery-item-admin:hover { border-color: #c9a84c; }
.gallery-item-admin img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}
.gallery-item-info { padding: 12px; }
.gallery-item-info h4 { font-size: 14px; color: #1a3c2a; }
.gallery-item-info p { font-size: 12px; color: #888; margin: 4px 0 10px; }
.gallery-item-actions { display: flex; gap: 8px; }
.gallery-item-actions a {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    text-decoration: none;
    transition: 0.3s;
}
.gallery-item-actions .btn-delete {
    background: #fce4ec;
    color: #c62828;
}
.gallery-item-actions .btn-delete:hover { background: #f8bbd0; }

/* ===== INFO BOX ===== */
.info-box {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    border-left: 5px solid #c9a84c;
}
.info-box h3 { color: #1a3c2a; margin-bottom: 10px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .sidebar { width: 200px; }
    .main-content { margin-left: 200px; }
    .dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 10px 0;
    }
    .main-content { margin-left: 0; }
    .admin-container { flex-direction: column; }
    .sidebar-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding: 10px;
    }
    .sidebar-nav a { padding: 8px 14px; font-size: 12px; }
    .form-row { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .top-bar { flex-wrap: wrap; gap: 10px; }
    .gallery-grid-admin { grid-template-columns: 1fr 1fr; }
    .table-toolbar { flex-direction: column; align-items: stretch; }
    .table-toolbar input { width: 100%; }
}
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .gallery-grid-admin { grid-template-columns: 1fr; }
    .admin-table { font-size: 12px; }
    .admin-table th, .admin-table td { padding: 8px 10px; }
}