/* ============================================
   ETHEREAL BALANCE - ADMIN DASHBOARD STYLES
   ============================================ */

:root {
    --cream: #F7F4F0;
    --warm-white: #FDFCFA;
    --sage: #9CAF88;
    --sage-dark: #7A9167;
    --sage-light: #C5D4B8;
    --terracotta: #C4907A;
    --terracotta-dark: #A87661;
    --charcoal: #2D2D2D;
    --charcoal-light: #4A4A4A;
    --stone: #8B8680;
    --sand: #E8E2D9;
    --gold: #C9A962;
    --gold-light: #E5D4A0;
    --red: #D4544C;
    --green: #5CB85C;
    --blue: #5B9BD5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--cream);
    color: var(--charcoal);
    line-height: 1.6;
    min-height: 100vh;
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
}

/* ============================================
   LOGIN SCREEN
   ============================================ */
.admin-login {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, var(--cream) 0%, var(--sand) 50%, var(--sage-light) 100%);
}

.admin-login-card {
    background: var(--warm-white);
    border-radius: 24px;
    padding: 48px 40px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.admin-logo {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
}

.admin-login-card h1 {
    font-size: 2rem;
    margin-bottom: 32px;
    color: var(--charcoal);
}

.admin-login-card input {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid var(--sand);
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    margin-bottom: 16px;
    background: var(--cream);
    color: var(--charcoal);
    transition: border-color 0.3s ease;
}

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

.admin-login-card button[type="submit"] {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    background: var(--charcoal);
    color: var(--warm-white);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.admin-login-card button[type="submit"]:hover {
    background: var(--sage-dark);
    transform: translateY(-2px);
}

.admin-error {
    color: var(--red);
    font-size: 0.85rem;
    margin-top: 12px;
    min-height: 20px;
}

/* ============================================
   DASHBOARD LAYOUT
   ============================================ */
.admin-dashboard {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
    width: 260px;
    background: var(--charcoal);
    color: var(--warm-white);
    padding: 32px 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
}

.admin-sidebar-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 24px;
    margin-bottom: 40px;
}

.admin-sidebar-logo img {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    flex-shrink: 0;
}

.admin-sidebar-brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.admin-sidebar-brand .brand-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: white;
    line-height: 1.2;
    white-space: nowrap;
}

.admin-sidebar-brand .brand-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1;
}

.admin-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 12px;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: 'Outfit', sans-serif;
}

.admin-nav-item:hover {
    color: white;
    background: rgba(255, 255, 255, 0.08);
}

.admin-nav-item.active {
    color: white;
    background: rgba(156, 175, 136, 0.3);
}

.admin-nav-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.admin-logout {
    margin: 0 12px;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-logout:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

/* Sidebar backdrop for mobile */
.admin-sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(45, 45, 45, 0.4);
    backdrop-filter: blur(3px);
    z-index: 99;
}

.admin-sidebar-backdrop.active {
    display: block;
}

/* Main Content */
.admin-main {
    flex: 1;
    margin-left: 260px;
    padding: 40px;
    min-height: 100vh;
}

/* Top Bar - visible only on mobile when sidebar is hidden */
.admin-topbar {
    display: none;
    align-items: center;
    gap: 10px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    padding: 0 16px 0 68px;
    background: var(--warm-white);
    border-bottom: 1px solid var(--sand);
    z-index: 50;
}

.admin-topbar-logo {
    width: 28px;
    height: 28px;
}

.admin-topbar span {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--charcoal);
}

@media (max-width: 768px) {
    .admin-topbar {
        display: flex;
    }
}

/* Section Headers */
.admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.admin-section h2 {
    font-size: 2rem;
    color: var(--charcoal);
    margin-bottom: 32px;
}

.admin-section-header h2 {
    margin-bottom: 0;
}

.admin-section-header > div {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

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

.admin-stat-card {
    background: var(--warm-white);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.admin-stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--stone);
    margin-bottom: 8px;
}

.admin-stat-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--charcoal);
    line-height: 1;
}

.admin-stat-change {
    font-size: 0.8rem;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.admin-stat-change.positive {
    color: var(--green);
}

.admin-stat-change.negative {
    color: var(--red);
}

/* Table Styles */
.admin-table-container {
    background: var(--warm-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

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

.admin-table th {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--stone);
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--sand);
    background: var(--cream);
}

.admin-table td {
    padding: 16px 20px;
    font-size: 0.9rem;
    color: var(--charcoal);
    border-bottom: 1px solid var(--sand);
    vertical-align: middle;
}

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

.admin-table tr:hover td {
    background: rgba(247, 244, 240, 0.5);
}

.admin-table .product-thumb {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--sand);
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: capitalize;
}

.status-badge.paid {
    background: rgba(92, 184, 92, 0.12);
    color: var(--green);
}

.status-badge.fulfilled {
    background: rgba(91, 155, 213, 0.12);
    color: var(--blue);
}

.status-badge.shipped {
    background: rgba(201, 169, 98, 0.15);
    color: var(--gold);
}

.status-badge.delivered {
    background: rgba(156, 175, 136, 0.15);
    color: var(--sage-dark);
}

.status-badge.pending {
    background: rgba(139, 134, 128, 0.12);
    color: var(--stone);
}

.status-badge.refunded {
    background: rgba(212, 84, 76, 0.12);
    color: var(--red);
}

.status-badge.active {
    background: rgba(92, 184, 92, 0.12);
    color: var(--green);
}

.status-badge.inactive {
    background: rgba(139, 134, 128, 0.12);
    color: var(--stone);
}

/* Action Buttons */
.admin-action-btn {
    border: none;
    background: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    color: var(--stone);
    transition: all 0.2s ease;
}

.admin-action-btn:hover {
    background: var(--cream);
    color: var(--charcoal);
}

.admin-action-btn.delete:hover {
    background: rgba(212, 84, 76, 0.1);
    color: var(--red);
}

.admin-actions {
    display: flex;
    gap: 4px;
}

/* Primary Button */
.btn-admin-primary {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 11px 22px;
    border: none;
    border-radius: 10px;
    background: var(--charcoal);
    color: var(--warm-white);
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.03em;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-admin-primary:hover {
    background: var(--sage-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Secondary Button */
.btn-admin-secondary {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    padding: 11px 22px;
    border: 1.5px solid var(--sand);
    border-radius: 10px;
    background: var(--warm-white);
    color: var(--charcoal);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-admin-secondary:hover {
    border-color: var(--sage);
    color: var(--sage-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ============================================
   ADMIN MODALS
   ============================================ */
.admin-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(45, 45, 45, 0.5);
    backdrop-filter: blur(6px);
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
    overflow-y: auto;
}

.admin-modal {
    background: var(--warm-white);
    border-radius: 20px;
    width: 100%;
    max-width: 640px;
    padding: 40px;
    position: relative;
    margin-top: 40px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
    animation: adminModalIn 0.3s ease;
}

@keyframes adminModalIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.admin-modal h2 {
    font-size: 1.6rem;
    margin-bottom: 28px;
}

.admin-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--cream);
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--charcoal);
    transition: all 0.2s ease;
}

.admin-modal-close:hover {
    background: var(--charcoal);
    color: white;
}

/* Form Styles */
.admin-form-group {
    margin-bottom: 20px;
}

.admin-form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--stone);
    margin-bottom: 8px;
}

.admin-form-group input,
.admin-form-group select,
.admin-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--sand);
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    color: var(--charcoal);
    background: var(--cream);
    transition: border-color 0.2s ease;
}

.admin-form-group input:focus,
.admin-form-group select:focus,
.admin-form-group textarea:focus {
    outline: none;
    border-color: var(--sage);
}

.admin-form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.admin-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.admin-form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.admin-form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--sage-dark);
}

.admin-form-check label {
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--charcoal);
    margin-bottom: 0;
}

.admin-form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--sand);
}

/* Orders Filter */
.admin-orders-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.admin-orders-filters select {
    padding: 10px 16px;
    border: 1.5px solid var(--sand);
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    color: var(--charcoal);
    background: var(--warm-white);
    cursor: pointer;
}

/* Order Detail */
.order-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--sand);
}

.order-detail-id {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--stone);
}

.order-detail-section {
    margin-bottom: 24px;
}

.order-detail-section h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--stone);
    margin-bottom: 12px;
}

.order-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--sand);
    font-size: 0.9rem;
}

.order-item-row:last-child {
    border-bottom: none;
}

.order-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0 0;
    border-top: 2px solid var(--charcoal);
    margin-top: 8px;
    font-weight: 600;
    font-size: 1.05rem;
}

/* Tracking Form */
.tracking-form {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.tracking-form input,
.tracking-form select {
    padding: 10px 14px;
    border: 1.5px solid var(--sand);
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    flex: 1;
}

.tracking-form button {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    background: var(--charcoal);
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.tracking-form button:hover {
    background: var(--sage-dark);
}

/* Settings Form */
.admin-settings-form {
    background: var(--warm-white);
    border-radius: 16px;
    padding: 32px;
    max-width: 600px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.admin-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
}

.admin-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.admin-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--sand);
    border-radius: 26px;
    transition: 0.3s;
}

.admin-toggle-slider:before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

.admin-toggle-switch input:checked + .admin-toggle-slider {
    background: var(--sage);
}

.admin-toggle-switch input:checked + .admin-toggle-slider:before {
    transform: translateX(22px);
}

/* Toast Notification */
.admin-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 14px 24px;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 500;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.admin-toast.active {
    transform: translateY(0);
    opacity: 1;
}

.admin-toast.success {
    background: var(--sage-dark);
    color: white;
}

.admin-toast.error {
    background: var(--red);
    color: white;
}

/* ============================================
   IMAGE UPLOAD ZONE
   ============================================ */
.image-upload-zone {
    border: 2px dashed var(--sand);
    border-radius: 14px;
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--cream);
    position: relative;
}

.image-upload-zone:hover,
.image-upload-zone.dragover {
    border-color: var(--sage);
    background: rgba(156, 175, 136, 0.06);
}

.image-upload-zone .upload-icon {
    font-size: 2rem;
    margin-bottom: 8px;
    display: block;
    color: var(--stone);
}

.image-upload-zone .upload-text {
    font-size: 0.85rem;
    color: var(--stone);
    line-height: 1.5;
}

.image-upload-zone .upload-text strong {
    color: var(--sage-dark);
}

.image-upload-zone .upload-limits {
    font-size: 0.75rem;
    color: var(--stone);
    margin-top: 6px;
    opacity: 0.7;
}

.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.image-preview-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--sand);
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview-item .remove-image {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(45, 45, 45, 0.7);
    color: white;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.image-preview-item:hover .remove-image {
    opacity: 1;
}

.image-preview-item .upload-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(0,0,0,0.2);
}

.image-preview-item .upload-progress-bar {
    height: 100%;
    background: var(--sage);
    transition: width 0.3s ease;
}

/* Storage Usage Bar */
.storage-usage {
    background: var(--warm-white);
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.storage-usage h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--stone);
    margin-bottom: 12px;
}

.storage-bar {
    width: 100%;
    height: 10px;
    background: var(--sand);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.storage-bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
    background: var(--sage);
}

.storage-bar-fill.warning {
    background: var(--gold);
}

.storage-bar-fill.danger {
    background: var(--red);
}

.storage-text {
    font-size: 0.8rem;
    color: var(--stone);
    display: flex;
    justify-content: space-between;
}

/* ============================================
   EVENTS ADMIN CARDS
   ============================================ */
.admin-event-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.admin-event-card {
    background: var(--warm-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease;
}

.admin-event-card:hover {
    transform: translateY(-2px);
}

.admin-event-card-cover {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: var(--sand);
}

.admin-event-card-body {
    padding: 20px;
}

.admin-event-card-body h4 {
    font-size: 1.15rem;
    margin-bottom: 6px;
    color: var(--charcoal);
}

.admin-event-card-body .event-meta-text {
    font-size: 0.8rem;
    color: var(--stone);
    margin-bottom: 12px;
    line-height: 1.5;
}

.admin-event-card-actions {
    display: flex;
    gap: 8px;
    padding: 0 20px 16px;
}

.admin-event-card-actions button {
    flex: 1;
    padding: 8px;
    border-radius: 8px;
    border: 1.5px solid var(--sand);
    background: transparent;
    color: var(--charcoal);
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-event-card-actions button:hover {
    border-color: var(--charcoal);
}

.admin-event-card-actions button.delete:hover {
    border-color: var(--red);
    color: var(--red);
}

/* ============================================
   GALLERY ADMIN GRID
   ============================================ */
.admin-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.admin-gallery-card {
    background: var(--warm-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.admin-gallery-card-cover {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: var(--sand);
}

.admin-gallery-card-body {
    padding: 16px;
}

.admin-gallery-card-body h4 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.admin-gallery-card-body .gallery-count {
    font-size: 0.8rem;
    color: var(--stone);
}

.admin-gallery-card-actions {
    display: flex;
    gap: 8px;
    padding: 0 16px 14px;
}

.admin-gallery-card-actions button {
    flex: 1;
    padding: 7px;
    border-radius: 8px;
    border: 1.5px solid var(--sand);
    background: transparent;
    color: var(--charcoal);
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-gallery-card-actions button:hover {
    border-color: var(--charcoal);
}

.admin-gallery-card-actions button.delete:hover {
    border-color: var(--red);
    color: var(--red);
}

/* Gallery Photos List (in editor modal) */
.gallery-photos-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
    max-height: 300px;
    overflow-y: auto;
}

.gallery-photo-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    background: var(--cream);
    border-radius: 10px;
}

.gallery-photo-row img {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.gallery-photo-row input {
    flex: 1;
    padding: 8px 12px;
    border: 1.5px solid var(--sand);
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
}

.gallery-photo-row button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--stone);
    cursor: pointer;
    font-size: 1rem;
    flex-shrink: 0;
}

.gallery-photo-row button:hover {
    color: var(--red);
}

/* Empty state for sections */
.admin-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--stone);
}

.admin-empty-state svg {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    opacity: 0.4;
}

.admin-empty-state p {
    font-size: 0.95rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .admin-sidebar {
        width: 220px;
    }

    .admin-main {
        margin-left: 220px;
        padding: 28px;
    }
}

@media (max-width: 768px) {
    .admin-sidebar {
        position: fixed;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 280px;
        box-shadow: 4px 0 30px rgba(0, 0, 0, 0.2);
    }

    .admin-sidebar.open {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
        padding: 72px 16px 20px;
    }

    .admin-section h2 {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }

    .admin-section-header {
        margin-bottom: 20px;
    }

    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .admin-stat-card {
        padding: 20px;
    }

    .admin-stat-value {
        font-size: 1.8rem;
    }

    .admin-form-row {
        grid-template-columns: 1fr;
    }

    .admin-table-container {
        overflow-x: auto;
    }

    .admin-table {
        min-width: 600px;
    }

    .admin-modal {
        margin-top: 20px;
        padding: 28px 20px;
        border-radius: 16px;
    }

    .admin-modal-overlay {
        padding: 16px 12px;
    }

    .admin-event-cards,
    .admin-gallery-grid {
        grid-template-columns: 1fr;
    }

    .btn-admin-primary,
    .btn-admin-secondary {
        padding: 10px 16px;
        font-size: 0.8rem;
    }

    .admin-mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 16px;
        left: 16px;
        z-index: 101;
        width: 44px;
        height: 44px;
        border: none;
        background: var(--charcoal);
        color: white;
        border-radius: 12px;
        cursor: pointer;
        font-size: 1.3rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        transition: all 0.2s ease;
    }

    .admin-mobile-toggle:hover {
        background: var(--sage-dark);
    }
}

@media (max-width: 480px) {
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }

    .admin-section-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (min-width: 769px) {
    .admin-mobile-toggle {
        display: none;
    }
}
