/* ============================================
   SERIF DESIGN SYSTEM - Admin Panel Styles
   Editorial elegance through classical restraint
   ============================================ */

:root {
    /* Light Mode (Serif Design System) */
    --background-light: #FAFAF8;
    --foreground-light: #1A1A1A;
    --muted-light: #F5F3F0;
    --muted-foreground-light: #6B6B6B;
    --border-light: #E8E4DF;
    --card-light: #FFFFFF;

    /* Dark Mode (Serif Design System - Editorial Night) */
    --background-dark: #0a0a0a;
    --foreground-dark: #f5f5f5;
    --muted-dark: #1a1a1a;
    --muted-foreground-dark: #a0a0a0;
    --border-dark: rgba(255, 255, 255, 0.12);
    --card-dark: #141414;

    /* Accent colors - same for both modes */
    --accent: #B8860B;
    --accent-secondary: #D4A84B;
    --accent-foreground: #FFFFFF;
    --ring: #B8860B;

    /* Default to Dark Mode */
    --background: var(--background-dark);
    --foreground: var(--foreground-dark);
    --muted: var(--muted-dark);
    --muted-foreground: var(--muted-foreground-dark);
    --border: var(--border-dark);
    --card: var(--card-dark);

    /* Typography */
    --font-serif: "Playfair Display", Georgia, serif;
    --font-sans: "Source Sans 3", system-ui, sans-serif;
    --font-mono: "IBM Plex Mono", monospace;

    /* Spacing */
    --sidebar-width: 520px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-accent: 0 4px 16px rgba(184, 134, 11, 0.25);

    /* Transitions */
    --transition: 200ms ease-out;
}

/* Light mode class */
body.light-mode {
    --background: var(--background-light);
    --foreground: var(--foreground-light);
    --muted: var(--muted-light);
    --muted-foreground: var(--muted-foreground-light);
    --border: var(--border-light);
    --card: var(--card-light);

    /* Adjust shadows for light mode */
    --shadow-sm: 0 1px 2px rgba(26, 26, 26, 0.04);
    --shadow-md: 0 4px 12px rgba(26, 26, 26, 0.06);
    --shadow-lg: 0 8px 24px rgba(26, 26, 26, 0.08);
    --shadow-accent: 0 4px 16px rgba(184, 134, 11, 0.15);
}

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

body {
    font-family: var(--font-sans);
    background: var(--background);
    color: var(--foreground);
    overflow: hidden;
    height: 100vh;
    line-height: 1.75;
    letter-spacing: 0.01em;
}

/* ============================================
   SCROLLBAR STYLING - Editorial Elegance
   ============================================ */

/* Scrollbar - Dark Mode (Default) */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(184, 134, 11, 0.3) rgba(255, 255, 255, 0.05);
}

/* WebKit Browsers (Chrome, Safari, Edge) - Dark Mode */
*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

*::-webkit-scrollbar-thumb {
    background: rgba(184, 134, 11, 0.3);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: background var(--transition);
}

*::-webkit-scrollbar-thumb:hover {
    background: rgba(184, 134, 11, 0.5);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:active {
    background: var(--accent);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

/* Light Mode Scrollbar */
body.light-mode * {
    scrollbar-color: rgba(184, 134, 11, 0.4) rgba(26, 26, 26, 0.06);
}

body.light-mode *::-webkit-scrollbar-track {
    background: rgba(26, 26, 26, 0.06);
}

body.light-mode *::-webkit-scrollbar-thumb {
    background: rgba(184, 134, 11, 0.4);
}

body.light-mode *::-webkit-scrollbar-thumb:hover {
    background: rgba(184, 134, 11, 0.6);
}

body.light-mode *::-webkit-scrollbar-thumb:active {
    background: var(--accent);
}

/* ============================================
   LAYOUT
   ============================================ */

.admin-layout {
    display: flex;
    height: 100vh;
}

/* ============================================
   SIDEBAR - Editorial Navigation
   ============================================ */

.sidebar {
    width: var(--sidebar-width);
    background: var(--card);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 3rem 2rem;
    flex-shrink: 0;
    position: relative;
    overflow-y: auto;
    max-height: 100vh;
}

/* Decorative rule at sidebar top */
.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 2rem;
    right: 2rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent) 20%, var(--accent) 80%, transparent);
}

.brand-area {
    margin-bottom: 3rem;
    text-align: center;
}

.brand-title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--foreground);
    display: block;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.brand-subtitle {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.sidebar-section {
    position: relative;
}

.sidebar-section.import-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.import-section .form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

/* Small caps section labels - signature Serif style */
.sidebar-label {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 1.25rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-label::before,
.sidebar-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
    min-width: 20px;
}

/* ============================================
   FIXED TOP BAR - Import Controls
   ============================================ */

.content-top-bar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 2rem;
    backdrop-filter: blur(12px);
    min-height: 70px;
}

.top-bar-container {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
}

.top-bar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: nowrap;
    height: 100%;
}

.top-bar-title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--foreground);
    letter-spacing: -0.01em;
}

.top-bar-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 0 0 auto;
    min-width: 200px;
    justify-content: flex-end;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 0 0 auto;
    min-width: 200px;
}

.top-bar-preview-info {
    line-height: 1.3;
    flex-shrink: 0;
    white-space: nowrap;
}

.top-bar-preview-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--foreground);
}

.top-bar-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex: 1;
    flex-wrap: nowrap;
}

.top-bar-center input[type="date"] {
    min-height: 36px;
    width: 155px;
    flex-shrink: 0;
}

.top-bar-center .primary-btn {
    background: transparent;
    color: var(--foreground);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    min-height: 36px;
    white-space: nowrap;
    flex-shrink: 0;
}

.top-bar-center .status-message {
    margin: 0;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 250px;
}

@media (max-width: 900px) {
    .content-top-bar {
        min-height: auto;
        padding: 0.75rem 1rem;
    }

    .top-bar-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .top-bar-left,
    .top-bar-center,
    .top-bar-controls {
        width: 100%;
    }

    .top-bar-preview-info {
        white-space: normal;
    }

    .top-bar-controls {
        justify-content: space-between;
    }
}

/* Compact theme toggle for top bar */
.theme-toggle-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--muted);
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition);
    color: var(--muted-foreground);
}

.theme-toggle-compact:hover {
    background: var(--background);
    border-color: var(--accent);
    color: var(--accent);
    transform: rotate(20deg);
}

.theme-toggle-compact svg {
    width: 16px;
    height: 16px;
}

/* Compact preview mode toggle */
.preview-mode-compact {
    display: flex;
    background: var(--muted);
    border-radius: 50px;
    padding: 2px;
    border: 1px solid var(--border);
    height: 36px;
}

.preview-mode-compact input {
    display: none;
}

.preview-mode-compact label {
    padding: 0.375rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 50px;
    color: var(--muted-foreground);
    transition: all var(--transition);
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
}

.preview-mode-compact input:checked+label {
    background: var(--accent);
    color: var(--accent-foreground);
    box-shadow: var(--shadow-sm);
}

.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    background: var(--background);
}

.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 4rem;
}

/* ============================================
   FORM CONTROLS - Refined Editorial Style
   ============================================ */

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--muted-foreground);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
}

.form-control {
    width: 100%;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    color: var(--foreground);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    transition: all var(--transition);
    min-height: 36px;
    line-height: 1.4;
}

.form-control:hover {
    border-color: var(--muted-foreground);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(184, 134, 11, 0.1);
}

textarea.form-control {
    height: 180px;
    max-height: 300px;
    font-family: var(--font-mono);
    resize: vertical;
    font-size: 0.875rem;
    line-height: 1.6;
}

.import-section textarea.form-control {
    flex: 1;
    height: auto;
    max-height: none;
    min-height: 0;
    resize: none;
    font-size: 0.75rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow-y: auto;
}

textarea.form-control:focus {
    height: 320px;
    max-height: 300px;
    transition: height 0.3s ease;
}

.import-section textarea.form-control:focus {
    height: auto;
    max-height: none;
}

input[type="date"].form-control {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
}

/* Date input calendar icon styling */
input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.8;
    transition: opacity var(--transition);
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* ============================================
   BUTTONS - Gold Accent Primary Style
   ============================================ */

.primary-btn,
.btn-block {
    background: var(--accent);
    color: var(--accent-foreground);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    transition: all var(--transition);
    position: relative;
    min-height: 36px;
    line-height: 1.4;
}

.btn-block {
    width: 100%;
}

.primary-btn:hover,
.btn-block:hover {
    background: var(--accent-secondary);
}

.primary-btn:active,
.btn-block:active {
    background: var(--accent);
}

.primary-btn:disabled,
.btn-block:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Secondary button style */
.primary-btn[style*="background: transparent"] {
    background: transparent !important;
    color: var(--foreground) !important;
    border: 1px solid var(--border) !important;
}

.primary-btn[style*="background: transparent"]:hover {
    background: var(--muted) !important;
    border-color: var(--accent) !important;
    color: var(--accent) !important;
}

/* ============================================
   STATUS MESSAGES
   ============================================ */

.status-message {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    line-height: 1.4;
    display: none;
    border: 1px solid;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 36px;
    align-items: center;
}

.status-success {
    background: rgba(184, 134, 11, 0.04);
    color: var(--muted-foreground);
    border-color: rgba(184, 134, 11, 0.15);
    opacity: 0.8;
}

.status-error {
    background: var(--muted);
    color: var(--muted-foreground);
    border-color: var(--border);
}

/* ============================================
   CONTENT LINKS
   ============================================ */

.content-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--muted-foreground);
    font-size: 0.9375rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    transition: all var(--transition);
    letter-spacing: 0.01em;
}

.content-link:hover {
    background: var(--muted);
    color: var(--accent);
}

.preview-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.preview-count-info {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    letter-spacing: 0.02em;
}

.preview-count-number {
    color: var(--foreground);
    font-weight: 600;
    font-size: 0.9375rem;
}

.select-all-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-foreground);
    cursor: pointer;
    user-select: none;
    transition: color var(--transition);
}

.select-all-wrap:hover {
    color: var(--accent);
}

/* ============================================
   CHECKBOXES - Styled for Serif aesthetic
   ============================================ */

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--accent);
    cursor: pointer;
}

/* ============================================
   MASONRY PREVIEW GRID
   ============================================ */

.masonry-preview {
    column-count: 3;
    column-gap: 1rem;
}

@media (max-width: 1400px) {
    .masonry-preview {
        column-count: 2;
    }
}

@media (max-width: 900px) {
    .masonry-preview {
        column-count: 1;
    }
}

/* Image mode grid - separate class */
.image-mode-grid {
    column-count: 4;
    column-gap: 4px;
}

@media (max-width: 1200px) {
    .image-mode-grid {
        column-count: 3;
    }
}

@media (max-width: 900px) {
    .image-mode-grid {
        column-count: 2;
    }
}

@media (max-width: 540px) {
    .image-mode-grid {
        column-count: 1;
    }
}

/* ============================================
   TWEET CARDS - Clean Minimal Style
   ============================================ */

.tweet-card-wrapper {
    break-inside: avoid;
    margin-bottom: 1rem;
    position: relative;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
    transition: all var(--transition);
}

/* Remove decorative elements */
.tweet-card-wrapper::before {
    display: none;
}

/* Subtle hover effect - optional glow */
.tweet-card-wrapper:hover {
    transform: translateY(-2px);
}

/* Selected state - subtle indicator */
.tweet-card-wrapper.selected {
    background: transparent;
}

/* Unchecked state - grayscale effect */
.tweet-card-wrapper.unchecked {
    opacity: 0.4;
    filter: grayscale(1);
}

/* Tweet embed container - loading placeholder */
.tweet-embed-container {
    padding: 0;
    background: transparent;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Square placeholder when loading */
.tweet-embed-container:not(.loaded) {
    aspect-ratio: 1;
}

/* Loading placeholder background */
.tweet-embed-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--muted);
    border: 1px solid var(--border);
    border-radius: 12px;
    opacity: 1;
    transition: opacity 0.4s ease;
    z-index: 0;
}

/* Pulse animation for loading state */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.tweet-embed-container::before {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Hide placeholder when tweet is loaded */
.tweet-embed-container.loaded {
    min-height: auto;
}

.tweet-embed-container.loaded::before {
    opacity: 0;
    animation: none;
}

/* Ensure tweet content is above placeholder */
.tweet-embed-container>* {
    position: relative;
    z-index: 1;
}

/* Override Twitter embed default margins */
.tweet-embed-container .twitter-tweet,
.tweet-embed-container blockquote.twitter-tweet {
    margin: 0 !important;
}

/* Hide delete button footer by default */
.tweet-card-wrapper>.tweet-card-footer {
    display: none;
}

/* Floating action buttons container */
.tweet-card-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 100;
    display: flex;
    gap: 8px;
    opacity: 0;
    transform: translateY(-4px);
    transition: all var(--transition);
    pointer-events: none;
}

.tweet-card-wrapper:hover .tweet-card-actions {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Checkbox button */
.card-select-btn {
    position: relative;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    backdrop-filter: blur(8px);
}

.card-select-btn input[type="checkbox"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.card-select-indicator {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
    pointer-events: none;
}

.card-select-indicator svg {
    width: 18px;
    height: 18px;
    stroke-width: 3;
    opacity: 0;
    transform: scale(0.8);
    transition: all var(--transition);
}

.card-select-btn:hover .card-select-indicator {
    border-color: var(--accent);
}

.card-select-btn input[type="checkbox"]:checked+.card-select-indicator {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-foreground);
    box-shadow: var(--shadow-accent);
}

.card-select-btn input[type="checkbox"]:checked+.card-select-indicator svg {
    opacity: 1;
    transform: scale(1);
    color: var(--accent-foreground);
}

/* Delete button (floating) */
.card-delete-btn {
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--muted-foreground);
    padding: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    backdrop-filter: blur(8px);
}

.card-delete-btn:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: white;
}

.card-delete-btn svg {
    width: 16px;
    height: 16px;
}

/* Link button (floating) */
.card-link-btn {
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--muted-foreground);
    padding: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    backdrop-filter: blur(8px);
    text-decoration: none;
}

.card-link-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-foreground);
}

.card-link-btn svg {
    width: 16px;
    height: 16px;
}

/* Legacy overlay (keep for backward compatibility but hide) */
.card-select-overlay {
    display: none;
}

/* ============================================
   TOGGLE SWITCH - Editorial Style
   ============================================ */

.toggle-switch-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--card);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid var(--border);
}

.toggle-switch-wrapper span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-foreground);
}

.mode-toggle {
    display: flex;
    background: var(--muted);
    border-radius: 50px;
    padding: 3px;
}

.mode-toggle input {
    display: none;
}

.mode-toggle label {
    padding: 0.375rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 50px;
    color: var(--muted-foreground);
    transition: all var(--transition);
    letter-spacing: 0.02em;
}

.mode-toggle input:checked+label {
    background: var(--accent);
    color: var(--accent-foreground);
    box-shadow: var(--shadow-sm);
}

/* ============================================
   IMAGE MODE CARDS
   ============================================ */

.image-mode-card {
    background: var(--card);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    break-inside: avoid;
    margin-bottom: 3px;
    transition: all var(--transition);
    position: relative;
    cursor: pointer;
}

.image-mode-card:hover {
    border-color: var(--accent);
}

/* Selected state for image cards */
.image-mode-card.selected {
    background: rgba(184, 134, 11, 0.03);
    border-color: var(--accent);
}

/* Unchecked state - grayscale effect */
.image-mode-card.unchecked {
    opacity: 0.4;
    filter: grayscale(1);
}

.image-mode-card img {
    width: 100%;
    height: auto;
    display: block;
}

/* Floating action buttons for image cards */
.image-card-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 100;
    display: flex;
    gap: 8px;
    opacity: 0;
    transform: translateY(-4px);
    transition: all var(--transition);
    pointer-events: none;
}

.image-mode-card:hover .image-card-actions {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Hide checkbox but keep it functional */
.image-card-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Visual checkbox indicator */
.image-card-check-indicator {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 24px;
    height: 24px;
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--transition);
    backdrop-filter: blur(8px);
}

.image-mode-card:hover .image-card-check-indicator,
.image-mode-card.selected .image-card-check-indicator {
    opacity: 1;
}

.image-mode-card.selected .image-card-check-indicator {
    background: var(--accent);
    border-color: var(--accent);
}

.image-card-check-indicator svg {
    width: 16px;
    height: 16px;
    color: var(--accent-foreground);
    display: none;
}

.image-mode-card.selected .image-card-check-indicator svg {
    display: block;
}

.loading-placeholder {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--muted);
    color: var(--muted-foreground);
    flex-direction: column;
    gap: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ============================================
   FAB PUBLISH BUTTON - Signature Gold Accent
   ============================================ */

.fab-publish {
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    z-index: 100;
    padding: 1.25rem 2rem;
    border-radius: 50px;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all var(--transition);
    border: 1px solid transparent;
}

.fab-publish:hover {
    background: var(--accent-secondary);
    border-color: var(--accent-secondary);
}

.fab-publish:active {
    background: var(--accent);
}

/* ============================================
   DELETE BUTTON - Subtle Ghost Style
   ============================================ */

.delete-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted-foreground);
    padding: 0.5rem 0.875rem;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: all var(--transition);
}

.delete-btn:hover {
    background: var(--muted);
    border-color: var(--accent);
    color: var(--accent);
}

/* ============================================
   SECTION HEADINGS - Playfair Display
   ============================================ */

h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--foreground);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

/* ============================================
   LOADING SPINNER
   ============================================ */

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 1024px) {
    .sidebar {
        width: 420px;
        padding: 2rem 1.5rem;
    }

    .main-content {
        padding: 2rem;
    }

    .top-bar-header {
        gap: 1rem;
    }

    .top-bar-preview-title {
        font-size: 1rem;
    }

    .top-bar-center {
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        bottom: 0;
        z-index: 1000;
        transition: left 0.3s ease;
    }

    .main-content {
        padding: 1.5rem;
    }

    .fab-publish {
        bottom: 2rem;
        right: 2rem;
        padding: 1rem 1.5rem;
    }

    .top-bar-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .top-bar-preview-title {
        font-size: 0.95rem;
    }

    .top-bar-center {
        width: 100%;
        min-width: 0;
    }

    .top-bar-center input[type="date"] {
        width: 135px;
    }

    .top-bar-controls {
        align-self: flex-end;
    }

    .preview-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .preview-count-info {
        font-size: 0.8125rem;
    }

    .preview-count-number {
        font-size: 0.875rem;
    }
}