/* ==========================================
   FashionAI Studio - Botika-Inspired Light Theme
   ========================================== */

:root {
    /* Color Palette - Clean & Professional */
    --bg-primary: #ffffff;
    --bg-secondary: #fafbfc;
    --bg-tertiary: #f4f6f8;
    --bg-card: #ffffff;
    --bg-hover: #f0f2f5;
    --bg-input: #f8f9fb;
    
    /* Primary Brand Colors */
    --primary-50: #f0f4ff;
    --primary-100: #e0e9ff;
    --primary-200: #c7d7fe;
    --primary-400: #818cf8;
    --primary-500: #6366f1;
    --primary-600: #4f46e5;
    --primary-700: #4338ca;
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    
    /* Accent Colors */
    --accent-teal: #14b8a6;
    --accent-orange: #f97316;
    --accent-pink: #ec4899;
    
    /* Text Colors */
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    --text-light: #d1d5db;
    
    /* Border & Dividers */
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    --border-focus: #6366f1;
    
    /* Status Colors */
    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --error: #ef4444;
    --error-light: #fee2e2;
    
    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.1);
    --shadow-primary: 0 4px 14px rgba(99, 102, 241, 0.3);
    
    /* Spacing */
    --header-height: 64px;
    --steps-height: 72px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   Reset & Base Styles
   ========================================== */

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================
   App Wrapper
   ========================================== */

.app-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ==========================================
   Top Header
   ========================================== */

.top-header {
    height: var(--header-height);
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 48px;
}

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

.logo-mark {
    width: 36px;
    height: 36px;
}

.logo-mark svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.nav-link.active {
    color: var(--primary-600);
    background: var(--primary-50);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.credits-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--success-light);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--success);
}

.credits-badge svg {
    width: 16px;
    height: 16px;
}

.btn-header {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-header:hover {
    background: var(--bg-hover);
    border-color: var(--text-light);
}

.btn-primary-header {
    background: var(--primary-gradient);
    border: none;
    color: white;
    box-shadow: var(--shadow-primary);
}

.btn-primary-header:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* ==========================================
   Steps Navigation
   ========================================== */

.steps-nav {
    height: var(--steps-height);
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0 32px;
}

.step-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
}

.step-tab::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    border-radius: 1px;
    transition: width var(--transition-normal);
}

.step-tab:hover {
    color: var(--text-secondary);
}

.step-tab.active {
    color: var(--primary-600);
}

.step-tab.active::after {
    width: 60%;
}

.step-number {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    transition: all var(--transition-normal);
}

.step-tab.active .step-number {
    background: var(--primary-gradient);
    color: white;
}

.step-connector {
    width: 40px;
    height: 1px;
    background: var(--border-color);
}

/* ==========================================
   Main Content
   ========================================== */

.main-content {
    flex: 1;
    padding: 40px;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    min-height: calc(100vh - var(--header-height) - var(--steps-height));
}

.tool-section {
    display: none;
    animation: fadeSlideIn 0.4s ease;
}

.tool-section.active {
    display: block;
}

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

.section-layout {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

@media (max-width: 1200px) {
    .section-layout {
        grid-template-columns: 1fr;
    }
    
    .tips-sidebar {
        display: none;
    }
}

.section-main {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* ==========================================
   Tool Header
   ========================================== */

.tool-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 16px;
}

.tool-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-50);
    color: var(--primary-600);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
}

.tool-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.tool-header p {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* ==========================================
   Card Stack Preview (Create Model)
   ========================================== */

.card-stack-preview {
    position: relative;
    width: 240px;
    height: 320px;
    margin: 0 auto 24px;
    perspective: 1000px;
}

.preview-card {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: all var(--transition-slow);
}

.preview-card.back {
    transform: rotate(-8deg) translateX(-20px);
    opacity: 0.6;
}

.preview-card.middle {
    transform: rotate(-4deg) translateX(-10px);
    opacity: 0.8;
}

.preview-card.front {
    transform: rotate(0deg);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-hover) 100%);
    color: var(--text-light);
}

.preview-placeholder svg {
    width: 64px;
    height: 64px;
    opacity: 0.5;
}

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

/* ==========================================
   Tool Form
   ========================================== */

.tool-form {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

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

input[type="text"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

input[type="text"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-400);
    box-shadow: 0 0 0 3px var(--primary-50);
    background: var(--bg-primary);
}

input[type="text"]::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

.select-wrapper {
    position: relative;
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* ==========================================
   Upload Area
   ========================================== */

.upload-area {
    position: relative;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-input);
    transition: all var(--transition-fast);
    overflow: hidden;
}

.upload-area:hover {
    border-color: var(--primary-400);
    background: var(--primary-50);
}

.upload-area input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.upload-content {
    padding: 48px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.upload-area.compact .upload-content {
    padding: 24px;
    flex-direction: row;
    justify-content: center;
}

.upload-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    color: var(--primary-500);
    box-shadow: var(--shadow-sm);
}

.upload-icon.small {
    width: 40px;
    height: 40px;
}

.upload-icon svg {
    width: 28px;
    height: 28px;
}

.upload-icon.small svg {
    width: 20px;
    height: 20px;
}

.upload-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.upload-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.upload-formats {
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 4px 10px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
}

.upload-preview-img {
    display: none;
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    padding: 16px;
}

.upload-area.has-file .upload-content {
    display: none;
}

.upload-area.has-file .upload-preview-img {
    display: block;
}

/* ==========================================
   Toggle Options
   ========================================== */

.input-type-toggle {
    display: flex;
    gap: 12px;
    padding: 4px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
}

.toggle-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.toggle-option:hover {
    color: var(--text-primary);
}

.toggle-option.active {
    background: var(--bg-primary);
    color: var(--primary-600);
    box-shadow: var(--shadow-sm);
}

.toggle-option svg {
    width: 18px;
    height: 18px;
}

/* ==========================================
   Preset Grid
   ========================================== */

.preset-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.preset-item {
    padding: 12px;
    background: var(--bg-input);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}

.preset-item:hover {
    background: var(--bg-hover);
}

.preset-item.active {
    border-color: var(--primary-500);
    background: var(--primary-50);
}

.preset-preview {
    width: 100%;
    height: 48px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.preset-item span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.preset-item.active span {
    color: var(--primary-600);
}

/* ==========================================
   Generate Button
   ========================================== */

.btn-generate {
    padding: 16px 32px;
    background: var(--primary-gradient);
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-primary);
}

.btn-generate:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-generate:active {
    transform: translateY(0);
}

.btn-generate:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

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

.btn-content svg {
    width: 20px;
    height: 20px;
}

.btn-generate.loading .btn-content {
    visibility: hidden;
}

.btn-generate.loading .btn-loader {
    display: block;
}

.btn-loader {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ==========================================
   Tips Sidebar
   ========================================== */

.tips-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: calc(var(--header-height) + var(--steps-height) + 40px);
}

.tips-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-card);
}

.tips-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.tips-card > p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.tips-examples {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tip-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.tip-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
}

.tip-icon.good {
    background: var(--success-light);
    color: var(--success);
}

.tip-icon.bad {
    background: var(--error-light);
    color: var(--error);
}

/* ==========================================
   Result Section
   ========================================== */

.result-section,
.comparison-result {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-card);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.result-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.btn-download {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-download:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--text-light);
}

.btn-download svg {
    width: 18px;
    height: 18px;
}

.result-image-container img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: var(--radius-lg);
    background: var(--bg-tertiary);
}

/* ==========================================
   Comparison Grid
   ========================================== */

.comparison-grid {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
}

.comparison-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comparison-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.comparison-label.result {
    color: var(--primary-600);
}

.comparison-item img {
    width: 100%;
    max-height: 350px;
    object-fit: contain;
    border-radius: var(--radius-lg);
    background: var(--bg-tertiary);
    box-shadow: var(--shadow-sm);
}

.comparison-arrow {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-50);
    border-radius: var(--radius-full);
    color: var(--primary-500);
}

.comparison-arrow svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .comparison-grid {
        flex-direction: column;
    }
    
    .comparison-arrow {
        transform: rotate(90deg);
    }
}

/* ==========================================
   Before/After Slider
   ========================================== */

.slider-container {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

.slider-title {
    text-align: center;
    margin-bottom: 16px;
}

.slider-title span {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.before-after-slider {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.slider-image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--bg-tertiary);
    box-shadow: var(--shadow-lg);
    cursor: ew-resize;
}

.slider-images-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-image {
    display: block;
    max-width: 100%;
    max-height: 450px;
    width: auto;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
}

.slider-image.before {
    position: relative;
    z-index: 1;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    overflow: hidden;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.slider-overlay .slider-image.after {
    display: block;
    flex-shrink: 0;
    object-fit: contain;
    object-position: center center;
}

.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 44px;
    transform: translateX(-50%);
    z-index: 10;
    cursor: ew-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.slider-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    transform: translateX(-50%);
    background: var(--primary-gradient);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.slider-button {
    position: relative;
    width: 44px;
    height: 44px;
    background: var(--bg-primary);
    border: 3px solid var(--primary-500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    z-index: 11;
    pointer-events: auto;
}

.slider-button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.slider-button svg {
    width: 14px;
    height: 14px;
    color: var(--primary-500);
    flex-shrink: 0;
}

.slider-button svg:first-child {
    margin-right: -3px;
}

.slider-button svg:last-child {
    margin-left: -3px;
}

.slider-image-container.active .slider-button {
    transform: scale(1.15);
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.5);
}

/* ==========================================
   Toast Notifications
   ========================================== */

.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 16px 24px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 0.9rem;
    box-shadow: var(--shadow-xl);
    transform: translateY(100px);
    opacity: 0;
    transition: all var(--transition-normal);
    z-index: 1000;
    max-width: 400px;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--error);
}

.toast.warning {
    border-left: 4px solid var(--warning);
}

/* ==========================================
   Hidden Utility
   ========================================== */

.hidden {
    display: none !important;
}

/* ==========================================
   Scrollbar
   ========================================== */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
    background: var(--text-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ==========================================
   Responsive
   ========================================== */

@media (max-width: 768px) {
    .top-header {
        padding: 0 16px;
    }
    
    .header-left {
        gap: 24px;
    }
    
    .main-nav {
        display: none;
    }
    
    .header-right {
        gap: 8px;
    }
    
    .credits-badge span {
        display: none;
    }
    
    .btn-header {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .steps-nav {
        overflow-x: auto;
        justify-content: flex-start;
        padding: 0 16px;
        gap: 0;
    }
    
    .step-tab {
        padding: 12px 16px;
        white-space: nowrap;
    }
    
    .step-label {
        display: none;
    }
    
    .main-content {
        padding: 24px 16px;
    }
    
    .tool-form {
        padding: 20px;
    }
    
    .card-stack-preview {
        width: 180px;
        height: 240px;
    }
}

/* ==========================================
   Loading State for Forms
   ========================================== */

.tool-form.loading {
    position: relative;
    pointer-events: none;
}

.tool-form.loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-xl);
    z-index: 10;
}

