/* Admin Dashboard Styles - Dark Theme */

:root {
    --admin-bg: #162130;
    /* Very dark background */
    --admin-card-bg: #1e1e1e;
    --admin-surface: #1e1e1e;
    --admin-text: #ffffff;
    --admin-text-muted: #b0b0b0;
    --admin-primary: #4a90e2;
    /* Bright Blue */
    --admin-primary-hover: #357abd;
    --admin-danger: #ff4444;
    --admin-success: #00C851;
    --admin-border: #333333;
    --admin-input-bg: #2c2c2c;
}

* {
    box-sizing: border-box;
}

body.admin-body {
    background-color: var(--admin-bg);
    color: var(--admin-text);
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    margin: 0;
}

/* Admin Layout */
.admin-container {
    max-width: 1100px;
    /* Slightly wider */
    margin: 0 auto;
    padding: 2rem;
}

/* Header */
.admin-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 3rem;
    border-bottom: 1px solid #333;
    padding-bottom: 1rem;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.admin-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--admin-text);
}

.header-actions {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: var(--admin-text);
    text-decoration: none;
    /* Plain text link as per design */
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.nav-link:hover {
    text-decoration: underline;
}

/* Sub Navigation */
.sub-nav {
    display: flex;
    gap: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #333;
    /* Line separator above sub-nav */
}

.nav-tab {
    color: var(--admin-text);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-bottom 0.2s;
}

.nav-tab:hover,
.nav-tab.active {
    color: var(--admin-text);
    border-bottom: 2px solid var(--admin-text);
    /* Underline active tab */
}

/* Dashboard Styles */
.dashboard-welcome {
    margin-bottom: 2rem;
}

.dashboard-welcome h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.subtext {
    font-size: 1.1rem;
    color: var(--admin-text-muted);
    margin: 0;
}

.section-divider {
    border: 0;
    border-top: 1px solid #333;
    margin: 2rem 0;
}

/* Settings Box */
.settings-box {
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.settings-title {
    margin-top: 0;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.checkbox-group-dark {
    background: #2c2c2c;
    /* Input bg color for the row */
    padding: 1rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Action Buttons Row */
.dashboard-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.action-btn-large {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    cursor: pointer;
}

.action-btn-large.primary {
    background: var(--admin-primary);
    color: white;
    border: none;
}

.action-btn-large.primary:hover {
    background: var(--admin-primary-hover);
}

.action-btn-large.outline {
    background: transparent;
    border: 2px solid #555;
    /* Dark outline */
    color: #4a90e2;
    /* Blue text */
}

.action-btn-large.outline:hover {
    border-color: #777;
    background: rgba(255, 255, 255, 0.05);
}

/* Homepage Editor Header */
.dashboard-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.btn-outline {
    border: 2px solid #4a90e2;
    color: #4a90e2;
    background: transparent;
    padding: 10px 20px;
    font-weight: 600;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: rgba(74, 144, 226, 0.1);
}

/* Rest of Styles... */

/* Events List Table (Updated) */
.events-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.events-table th {
    text-align: left;
    padding: 1rem 0.5rem;
    border-bottom: 1px solid #444;
    /* Darker border */
    color: var(--admin-text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: capitalize;
}

.events-table td {
    padding: 1.5rem 0.5rem;
    border-bottom: 1px solid #333;
    vertical-align: middle;
    font-size: 1rem;
}



.status-badge {
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-block;
}

.status-published {
    background: rgba(0, 200, 81, 0.2);
    color: var(--admin-success);
    border: 1px solid var(--admin-success);
}

.status-draft {
    background: rgba(170, 170, 170, 0.2);
    color: var(--admin-text-muted);
    border: 1px solid var(--admin-text-muted);
}

.action-btn {
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    margin-right: 0.5rem;
    border: none;
}

.btn-edit {
    background-color: var(--admin-primary);
    color: white;
}

.btn-delete {
    background-color: transparent;
    border: 2px solid var(--admin-danger);
    color: var(--admin-danger);
}

/* Forms - High Accessibility Updates */
.form-group {
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--admin-text);
    font-size: 1.6rem;
    /* Increased for readability */
}

.form-helper {
    display: block;
    font-size: 1rem;
    color: var(--admin-text-muted);
    margin-bottom: 0.8rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 1.2rem;
    /* Comfortable padding */
    background-color: var(--admin-input-bg);
    border: 2px solid var(--admin-border);
    border-radius: 8px;
    color: var(--admin-text);
    font-size: 1.5rem;
    /* Large text matching Date field */
    font-family: inherit;
    transition: border-color 0.2s;
    height: auto;
    min-height: 80px;
    /* Match the large Date field height */
}

.form-textarea {
    min-height: 200px;
    resize: vertical;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.3);
}

/* Specific Date/Time Picker Enhancements - Icon Only */
/* Removed zoom/height overrides to ensure consistency with above */

/* Make calendar/clock icons inside inputs larger (browser dependent, but helps) */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    /* White icon */
    transform: scale(1.5);
    /* 50% larger icon */
    cursor: pointer;
    margin-right: 10px;
}

.form-textarea {
    min-height: 200px;
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    cursor: pointer;
    padding: 1rem;
    background: var(--admin-input-bg);
    border-radius: 6px;
    border: 2px solid var(--admin-border);
}

.checkbox-input {
    width: 30px;
    /* Larger checkbox/radio */
    height: 30px;
}

.form-actions {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--admin-border);
    display: flex;
    gap: 2rem;
}

/* Messages */
.alert {
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 2rem;
    font-weight: 600;
    font-size: 1.2rem;
}

.alert-success {
    background-color: rgba(0, 200, 81, 0.2);
    color: var(--admin-success);
    border: 1px solid var(--admin-success);
}

/* Responsive */
/* Responsive */
.form-row-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .admin-container {
        padding: 1rem;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .admin-nav {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .dashboard-actions {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

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

    .form-actions {
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
    }

    .big-btn {
        padding: 1.2rem 2rem;
        font-size: 1.1rem;
        width: 100%;
        /* Full width on mobile */
    }

    .form-label {
        font-size: 1.2rem;
    }

    .form-input,
    .form-select,
    .form-textarea {
        font-size: 1.1rem;
        padding: 0.8rem;
    }

    /* Adjust table for mobile */
    .events-table th,
    .events-table td {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .action-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
        margin-bottom: 5px;
        display: inline-block;
    }
}

/* Input Groups for Voice Control */
.input-group {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.input-group .form-input,
.input-group .form-textarea,
.input-group .form-select {
    flex-grow: 1;
}

.field-mic-btn {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    /* Make it round like the floating button */
    background: var(--admin-primary);
    /* Match floating button color */
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.field-mic-btn:hover {
    background: #357abd;
    /* Darker blue */
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.field-clear-btn {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--admin-danger);
    /* Red for delete */
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.field-clear-btn:hover {
    background: #c0392b;
    /* Darker red */
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.field-mic-btn.voice-active {
    background-color: var(--admin-danger);
    color: white;
    border-color: var(--admin-danger);
    animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(231, 76, 60, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
    }
}

/* Action Buttons Container */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Sortable Headers */
th.sortable {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s;
}

th.sortable:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

th.sortable i {
    margin-left: 5px;
    font-size: 0.8em;
    opacity: 0.7;
}

/* Drag and Drop Styles */
#image-drop-zone.drag-over {
    border-color: var(--admin-primary) !important;
    background-color: rgba(74, 144, 226, 0.1) !important;
    transform: scale(1.02);
}

/* Accessibility: Larger Date/Time Pickers */
input[type="date"],
input[type="time"] {
    font-size: 1.3rem !important;
    padding: 12px !important;
}

/* Target the calendar/clock icon specifically */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    width: 32px;
    height: 32px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Flatpickr Customization (Large Mode) */
.flatpickr-calendar {
    transform: scale(1.5);
    /* Make 50% larger */
    transform-origin: top left;
    /* Scale from top left to avoid going off screen */
    margin-top: 20px !important;
    border: 2px solid var(--admin-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.flatpickr-day {
    font-size: 1.1rem;
    /* Larger numbers */
}

.flatpickr-time input {
    font-size: 1.5rem !important;
    /* Larger time input */
}

.flatpickr-current-month {
    font-size: 1.2rem;
    /* Larger month title */
    padding-top: 10px;
}

/* Trigger Buttons for Flatpickr - Inside Field */
.input-group {
    position: relative;
    /* For absolute positioning of icon */
}

.field-icon-btn {
    position: absolute;
    right: 100px;
    /* Position before Mic (45px) + Clear (45px) + gaps */
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: white;
    /* White by default */
    width: 60px;
    height: 40px;
    padding-right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.field-icon-btn:hover {
    background: transparent;
    color: var(--admin-primary);
    /* Blue on hover */
    transform: translateY(-50%) scale(1.1);
}

/* Adjust input padding to make room for icon */
#event-date,
#event-end-date,
#event-start,
#event-end {
    padding-right: 50px !important;
    /* Make room for icon */
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.modal-content {
    background: var(--admin-surface);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--admin-border);
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-content h3 {
    margin-top: 0;
    color: var(--admin-text);
    margin-bottom: 15px;
}

.modal-content p {
    color: var(--admin-text-muted);
    margin-bottom: 25px;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.modal-actions button {
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    border: none;
}

#btn-cancel-delete {
    background: var(--admin-bg);
    color: var(--admin-text);
    border: 1px solid var(--admin-border);
}

#btn-confirm-delete {
    background: var(--admin-danger);
    color: white;
}

/* Image Upload Styles (Screenshot Match) */
.image-upload-wrapper {
    border: 2px dashed var(--admin-border);
    border-radius: 8px;
    background: var(--admin-surface);
    overflow: hidden;
    /* Ensures footer stays inside rounded corners */
    transition: all 0.2s;
    position: relative;
}

.image-upload-wrapper.drag-over {
    border-color: var(--admin-primary);
    background: rgba(74, 144, 226, 0.05);
}

.image-upload-content {
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.upload-instruction {
    font-size: 0.8rem;
    color: var(--admin-text-muted);
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.image-preview-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 0.5rem 0;
    cursor: pointer;
    /* Added to indicate click-to-upload */
}

.image-preview-wrapper img {
    max-width: 200px;
    max-height: 150px;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

.upload-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.image-upload-footer {
    background: #2a2a2a;
    /* Darker background for footer */
    padding: 1rem;
    border-top: 1px solid var(--admin-border);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Big Button (Primary CTA) */
.big-btn {
    padding: 1.2rem 3rem;
    /* Much larger padding */
    font-size: 1.3rem;
    /* Larger text */
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    min-width: 200px;
    /* Ensure minimum width */
    text-align: center;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.big-btn.primary {
    background: var(--admin-primary);
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.big-btn.primary:hover {
    background: var(--admin-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.big-btn.secondary {
    background: #555;
    color: white;
}

.big-btn.secondary:hover {
    background: #666;
}

.big-btn.outline {
    background: transparent;
    border: 2px solid var(--admin-primary);
    color: var(--admin-primary);
}

.big-btn.outline:hover {
    background: rgba(74, 144, 226, 0.1);
}

.danger-btn {
    border-color: var(--admin-danger);
    color: var(--admin-danger);
}

.danger-btn:hover {
    background: var(--admin-danger);
    color: white;
}

/* --- Advanced Video Management Styles --- */

/* Update Video Link */
/* Update Video Link (Premium Button) */
.update-video-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 13px;
    color: #fff;
    background-color: rgba(91, 163, 231, 0.9);
    /* Blue accent with slight transparency */
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    position: relative;
    z-index: 10;
    padding: 8px 16px;
    border-radius: 20px;
    /* Pill shape */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
}

.update-video-link:hover {
    background-color: #5BA3E7;
    /* Solid blue on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    text-decoration: none;
    color: #fff;
}

.update-video-link i {
    font-size: 12px;
}

/* Video Edit Modal (Dark Theme) */
#video-edit-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

#video-edit-modal .modal-content {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 30px;
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid #444;
    text-align: left;
    /* Reset text align */
}

#video-edit-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #444;
    padding-bottom: 15px;
}

#video-edit-modal .modal-title {
    font-size: 24px;
    color: #5BA3E7;
    margin: 0;
    font-weight: 600;
}

#video-edit-modal .modal-close {
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

#video-edit-modal .modal-close:hover {
    color: #ccc;
}

#video-edit-modal .modal-subtitle {
    color: #999;
    font-size: 14px;
    margin-bottom: 20px;
    font-style: italic;
}

#video-edit-modal .form-group {
    margin-bottom: 25px;
}

#video-edit-modal label {
    display: block;
    font-size: 16px;
    color: #ccc;
    margin-bottom: 8px;
    font-weight: 500;
}

#video-edit-modal .helper-text {
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
    margin-top: 0;
}

#video-edit-modal textarea {
    width: 100%;
    height: 250px;
    background: #1a1a1a;
    border: 2px solid #444;
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    padding: 15px;
    border-radius: 4px;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.2s;
}

#video-edit-modal textarea:focus {
    border-color: #5BA3E7;
    outline: none;
}

#video-edit-modal .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #444;
}

#video-edit-modal .btn-cancel {
    background: transparent;
    border: 2px solid #666;
    color: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

#video-edit-modal .btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #888;
}

#video-edit-modal .btn-save {
    background: #5BA3E7;
    border: none;
    color: #fff;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

#video-edit-modal .btn-save:hover {
    background: #4a90e2;
}

/* Notification Toast */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 10001;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-success {
    background: #28a745;
    border-left: 4px solid #1e7e34;
}

.notification-error {
    background: #dc3545;
    border-left: 4px solid #bd2130;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #video-edit-modal .modal-content {
        width: 95%;
        padding: 20px;
        max-height: 90vh;
    }

    #video-edit-modal textarea {
        height: 200px;
        font-size: 12px;
    }

    #video-edit-modal .modal-footer {
        flex-direction: column;
        gap: 10px;
    }

    #video-edit-modal .modal-footer button {
        width: 100%;
    }
}

/* Builder Styles */
.builder-section {
    background: #252525;
    border: 1px solid var(--admin-border);
    border-radius: 6px;
    margin-bottom: 1rem;
    padding: 1rem;
    position: relative;
    transition: all 0.2s;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #333;
}

.section-badge {
    background: var(--admin-primary);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.section-controls button {
    background: transparent;
    border: 1px solid #444;
    color: #ccc;
    padding: 4px 8px;
    border-radius: 4px;
    margin-left: 5px;
    cursor: pointer;
}

.section-controls button:hover {
    background: #333;
    color: white;
}

.section-controls button.btn-delete-section:hover {
    background: var(--admin-danger);
    border-color: var(--admin-danger);
}

.form-group-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

/* --- Login Screen --- */
.login-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--admin-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.login-card {
    background-color: var(--admin-card-bg);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--admin-border);
}

.login-card h1 {
    color: var(--admin-text);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}