/* Base Custom CSS for BumX FB Tool */

:root {
    /* Color Palette - Premium Dark Theme */
    --bg-dark: #0a0c10;
    --bg-card: rgba(18, 22, 33, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --primary: #2563eb;
    --primary-glow: rgba(37, 99, 235, 0.15);
    --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    
    --accent: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #a78bfa 0%, #6d28d9 100%);
    
    --success: #10b981;
    --success-gradient: linear-gradient(135deg, #34d399 0%, #047857 100%);
    --danger: #ef4444;
    --danger-gradient: linear-gradient(135deg, #f87171 0%, #b91c1c 100%);
    --warning: #f59e0b;
    
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
    
    --glass-bg: rgba(18, 22, 33, 0.65);
    --glass-blur: blur(12px);
    --glass-border: rgba(255, 255, 255, 0.06);
}

select option {
    background-color: #121621;
    color: #f3f4f6;
}

.light-theme {
    --bg-dark: #f3f4f6;
    --bg-card: rgba(255, 255, 255, 0.8);
    --border-color: rgba(0, 0, 0, 0.08);
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(0, 0, 0, 0.06);
}

.light-theme select option {
    background-color: #ffffff !important;
    color: #111827 !important;
}

.light-theme .form-control,
.light-theme select,
.light-theme textarea {
    background: #ffffff !important;
    color: #111827 !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
}

.light-theme .app-header {
    background: rgba(255, 255, 255, 0.8) !important;
    border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}

.light-theme .nav-item {
    color: #4b5563 !important;
}

.light-theme .nav-item:hover {
    background: rgba(0, 0, 0, 0.03) !important;
}

.light-theme .nav-item.active {
    color: #2563eb !important;
    background: rgba(37, 99, 235, 0.08) !important;
    border-color: rgba(37, 99, 235, 0.15) !important;
}

.light-theme .bg-glow {
    opacity: 0.04 !important;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Background glows */
.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.12;
    pointer-events: none;
}

.bg-glow-1 {
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -200px;
    right: -100px;
}

.bg-glow-2 {
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    bottom: -100px;
    left: -200px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Sidebar Layout & Responsive Design */
.app-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
    position: relative;
}

.app-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 280px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 24px 20px;
    z-index: 200;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
    margin-bottom: 30px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.sidebar-nav .nav-item {
    width: 100%;
    text-decoration: none;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
}

.sidebar-nav .nav-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-nav .nav-item.active {
    color: var(--text-primary);
    background: rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.25);
}

.sidebar-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    padding: 0 4px;
}

.theme-toggle-btn {
    width: 100%;
    cursor: pointer;
    padding: 10px 14px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    font-family: var(--font-heading);
    font-weight: 600;
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.logout-btn {
    width: 100%;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #f87171;
    font-size: 13px;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 10px 14px;
    background: rgba(248, 113, 113, 0.05);
    border: 1px solid rgba(248, 113, 113, 0.15);
    border-radius: 6px;
    transition: all 0.2s;
}

.logout-btn:hover {
    background: rgba(248, 113, 113, 0.15);
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 150;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Main Wrapper */
.main-wrapper {
    margin-left: 280px;
    width: calc(100% - 280px);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Mobile Header (Hidden on Desktop) */
.mobile-header {
    display: none;
    background: rgba(10, 12, 16, 0.85);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 22px;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-text-gradient {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 24px;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-subtext {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 14px;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

@media (max-width: 992px) {
    .app-sidebar {
        transform: translateX(-100%);
    }
    
    .app-sidebar.open {
        transform: translateX(0);
    }
    
    .main-wrapper {
        margin-left: 0;
        width: 100%;
    }
    
    .mobile-header {
        display: flex;
    }
}

/* Layout Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Alerts */
.messages-container {
    margin-bottom: 20px;
}

.alert {
    background: var(--glass-bg);
    border-left: 4px solid var(--primary);
    border: 1px solid var(--glass-border);
    border-left-width: 4px;
    border-radius: 8px;
    padding: 14px 20px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideIn 0.3s ease-out;
}

.alert-success {
    border-left-color: var(--success);
    background: rgba(16, 185, 129, 0.05);
}

.alert-error {
    border-left-color: var(--danger);
    background: rgba(239, 68, 68, 0.05);
}

.alert-warning {
    border-left-color: var(--warning);
    background: rgba(245, 158, 11, 0.05);
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-icon {
    font-size: 18px;
}

.alert-message {
    font-size: 14px;
    font-weight: 500;
}

.alert-close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.alert-close-btn:hover {
    color: var(--text-primary);
}

/* Cards & Glass Containers */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 24px;
}

.card-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.card-title-bar h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Grid Structures */
.split-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 24px;
}

@media (max-width: 992px) {
    .split-grid {
        grid-template-columns: 1fr;
    }
}

.columns-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 768px) {
    .columns-2 {
        grid-template-columns: 1fr;
    }
}

/* Form Controls */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.form-control, select, textarea {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

.form-control:focus, select:focus, textarea:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D%2210%22%20height%3D%226%22%20viewBox%3D%220%200%2010%206%22%20fill%3D%22none%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M9%201L5%205L1%201%22%20stroke%3D%22%239ca3af%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

/* File Upload Layout */
.file-picker-container {
    background: rgba(255, 255, 255, 0.01);
    border: 1.5px dashed rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}

.file-picker-container:hover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.04);
}

.file-picker-container input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}

.file-picker-icon {
    font-size: 28px;
    margin-bottom: 6px;
}

.file-picker-text {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.file-picker-text span {
    color: #60a5fa;
}

.file-selected-name {
    margin-top: 8px;
    font-size: 12px;
    color: var(--success);
    font-weight: 600;
    word-break: break-all;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-success {
    background: var(--success-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-danger {
    background: var(--danger-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.35);
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Card Section Titles */
.section-subtitle {
    font-size: 13px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 12px;
}

/* FB Carousel Live Preview Panel */
.preview-panel {
    position: sticky;
    top: 90px;
}

.fb-preview-container {
    background: #ffffff;
    color: #1c1e21;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    border: 1px solid #dddfe2;
    max-width: 500px;
    margin: 0 auto;
}

.fb-preview-header {
    display: flex;
    padding: 12px;
    gap: 10px;
    align-items: center;
}

.fb-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #eae9e9;
    background-image: linear-gradient(135deg, #3b5998, #8b9dc3);
}

.fb-meta {
    display: flex;
    flex-direction: column;
}

.fb-page-name {
    font-size: 14px;
    font-weight: 700;
    color: #050505;
}

.fb-post-time {
    font-size: 12px;
    color: #65676b;
    display: flex;
    align-items: center;
    gap: 4px;
}

.fb-post-caption {
    padding: 0 12px 12px;
    font-size: 14px;
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-word;
    color: #050505;
}

.fb-post-caption.empty {
    color: #8a8d91;
    font-style: italic;
}

/* Facebook Carousel Cards Container */
.fb-carousel-wrapper {
    position: relative;
    border-top: 1px solid #ebedf0;
    border-bottom: 1px solid #ebedf0;
    background: #f0f2f5;
}

.fb-carousel-viewport {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.fb-carousel-viewport::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

.fb-carousel-card {
    min-width: 50%;
    width: 50%;
    scroll-snap-align: start;
    background: #ffffff;
    border-right: 1px solid #ebedf0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.fb-carousel-card:last-child {
    border-right: none;
}

.fb-card-media {
    width: 100%;
    aspect-ratio: 1; /* 1:1 Square */
    background: #f0f2f5;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fb-card-media img, .fb-card-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fb-media-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #bcc0c4;
}

.fb-media-placeholder .icon {
    font-size: 36px;
}

.fb-media-placeholder .label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.fb-card-details {
    padding: 10px 12px;
    background: #f0f2f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 66px;
    gap: 10px;
    border-top: 1px solid #e4e6eb;
}

.fb-card-text {
    flex: 1;
    overflow: hidden;
}

.fb-card-link-url {
    font-size: 11px;
    color: #65676b;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fb-card-title {
    font-size: 13px;
    font-weight: 700;
    color: #050505;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

.fb-card-desc {
    font-size: 12px;
    color: #65676b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

.fb-card-cta {
    flex-shrink: 0;
    background: #e4e6eb;
    color: #050505;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    text-transform: uppercase;
}

.fb-preview-footer {
    display: flex;
    border-top: 1px solid #ebedf0;
    padding: 8px 12px;
    justify-content: space-between;
    font-size: 12px;
    color: #65676b;
    font-weight: 600;
}

.fb-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 4px;
}

.fb-action-btn:hover {
    background: #f2f3f5;
}

/* Tables & Lists style */
.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.glass-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 14px;
    text-align: left;
}

.glass-table th {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1.5px solid var(--border-color);
    padding: 12px 16px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.glass-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    vertical-align: middle;
}

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

.glass-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Badges for status */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-pending {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.badge-processing {
    background: rgba(37, 99, 235, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(37, 99, 235, 0.25);
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-failed {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

/* Loading animations */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 12, 16, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
    box-shadow: 0 0 20px var(--primary-glow);
}

.loading-text {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.loading-subtext {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 300px;
    text-align: center;
    line-height: 1.4;
}

/* Empty placeholder lists */
.empty-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-placeholder .icon {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
}

.empty-placeholder p {
    font-size: 15px;
    margin-bottom: 16px;
}

/* Footer */
.app-footer {
    text-align: center;
    padding: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 12px;
    margin-top: auto;
}

/* Keyframes animations */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes slideIn {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Premium Preview Modal and Animated Tab Indicators */
#preview-modal {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

#preview-modal.active {
    opacity: 1;
    pointer-events: auto;
}

#preview-modal > .glass-card {
    transform: scale(0.9);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#preview-modal.active > .glass-card {
    transform: scale(1);
}

.tabs-header {
    display: flex;
    gap: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.tabs-header .tab-btn {
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 0;
    position: relative;
    background: none;
    border: none;
    outline: none;
    transition: color 0.3s ease;
}

.tabs-header .tab-btn:hover {
    color: var(--text-primary);
}

.tabs-header .tab-indicator {
    position: absolute;
    bottom: -13px;
    left: 0;
    right: 0;
    height: 3px;
    background: #2563eb;
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.tabs-header .tab-btn.active {
    color: var(--text-primary) !important;
}

.tabs-header .tab-btn.active .tab-indicator {
    transform: scaleX(1);
}
