/* ============================================
   FAIRYTALE GENERATOR - CSS
   ============================================ */

/* === CSS VARIABLES === */
:root {
    /* Background */
    --bg-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 25%, #0f3460 50%, #1a1a2e 75%, #16213e 100%);
    
    /* Glass Effects */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-bg-hover: rgba(255, 255, 255, 0.08);
    --glass-bg-active: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-border-hover: rgba(255, 255, 255, 0.2);
    --glass-border-active: rgba(255, 255, 255, 0.3);
    
    /* Glow */
    --glow-primary: rgba(99, 102, 241, 0.4);
    --glow-secondary: rgba(139, 92, 246, 0.3);
    --glow-accent: rgba(236, 72, 153, 0.3);
    --glow-success: rgba(16, 185, 129, 0.4);
    
    /* Text Colors */
    --text-primary: rgba(255, 255, 255, 0.95);
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);
    --text-accent: #a78bfa;
    
    /* Accent Colors */
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-pink: #ec4899;
    --accent-cyan: #06b6d4;
    --accent-success: #10b981;
    --accent-warning: #f59e0b;
    --accent-danger: #ef4444;
    
    /* Blur & Radius */
    --blur-sm: 12px;
    --blur-md: 20px;
    --blur-lg: 40px;
    --blur-xl: 60px;
    
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-glass: 0 4px 24px -1px rgba(0, 0, 0, 0.2), 0 0 1px 0 rgba(255, 255, 255, 0.1) inset;
    --shadow-float: 0 20px 40px -15px rgba(0, 0, 0, 0.3);
    
    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme */
[data-theme="light"] {
    --bg-gradient: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 25%, #a5b4fc 50%, #e0e7ff 75%, #ddd6fe 100%);
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-bg-hover: rgba(255, 255, 255, 0.75);
    --glass-bg-active: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-border-hover: rgba(255, 255, 255, 0.7);
    --text-primary: rgba(15, 23, 42, 0.95);
    --text-secondary: rgba(15, 23, 42, 0.7);
    --text-muted: rgba(15, 23, 42, 0.4);
    --text-accent: #6366f1;
    --shadow-glass: 0 4px 24px -1px rgba(0, 0, 0, 0.1);
}

/* === GLOBAL RESET === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-gradient);
    background-size: 400% 400%;
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--glass-border-hover);
}

::selection {
    background: var(--accent-primary);
    color: white;
}
/* === HEADER === */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-md));
    -webkit-backdrop-filter: blur(var(--blur-md));
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition-normal);
}

.header:hover {
    background: var(--glass-bg-hover);
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 700;
    transition: var(--transition-normal);
}

.logo:hover {
    transform: scale(1.02);
}

.logo i {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-badge {
    padding: 2px 8px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
}

/* === MAIN LAYOUT === */
.main-container {
    display: flex;
    min-height: calc(100vh - 77px);
    gap: 24px;
    padding: 24px;
}

/* === SIDEBAR === */
.sidebar {
    width: 380px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: 8px;
    flex-shrink: 0;
}

.sidebar-section {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-md));
    -webkit-backdrop-filter: blur(var(--blur-md));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: var(--transition-normal);
}

.sidebar-section:hover {
    border-color: var(--glass-border-hover);
    box-shadow: var(--shadow-glass);
}

/* Section Header Mini */
.section-header-mini {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--glass-border);
}

.section-header-mini .section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.section-header-mini .section-title i {
    color: var(--accent-secondary);
}

/* === MAIN CONTENT === */
.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.content-section {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-md));
    -webkit-backdrop-filter: blur(var(--blur-md));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition-normal);
}

.content-section:hover {
    border-color: var(--glass-border-hover);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.section-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.section-title i {
    color: var(--accent-secondary);
}

.section-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
/* === FORM ELEMENTS === */
.form-group {
    margin-bottom: 16px;
}

.form-group:last-child {
    margin-bottom: 0;
}

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

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-label i {
    margin-right: 6px;
    color: var(--accent-secondary);
}

.form-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.form-hint-inline {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Input, Select, Textarea */
.form-input,
.form-select,
.form-textarea,
input[type="text"],
input[type="number"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition-normal);
}

.form-input::placeholder,
.form-textarea::placeholder,
input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none;
    background: var(--glass-bg-hover);
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-input:hover:not(:focus),
.form-select:hover:not(:focus),
.form-textarea:hover:not(:focus),
input:hover:not(:focus),
select:hover:not(:focus),
textarea:hover:not(:focus) {
    border-color: var(--glass-border-hover);
    background: var(--glass-bg-hover);
}

/* Select Custom Arrow */
.form-select,
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 4.5L6 8L9.5 4.5' stroke='rgba(255,255,255,0.5)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

select option {
    background: #1a1a2e;
    color: var(--text-primary);
    padding: 12px;
}

/* Textarea */
.form-textarea,
textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.6;
}

.page-textarea {
    min-height: 120px;
    font-size: 0.9rem;
}

/* Number Input */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    opacity: 0.5;
    cursor: pointer;
}

input[type="number"]:hover::-webkit-inner-spin-button,
input[type="number"]:hover::-webkit-outer-spin-button {
    opacity: 1;
}

/* === SWITCH TOGGLE === */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    transition: var(--transition-normal);
}

.switch-slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: var(--transition-normal);
}

.switch input:checked + .switch-slider {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-color: transparent;
}

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

/* === PHOTO UPLOAD === */
.photo-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 120px;
    padding: 20px;
    background: var(--glass-bg);
    border: 2px dashed var(--glass-border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-normal);
}

.photo-upload:hover {
    border-color: var(--accent-primary);
    background: var(--glass-bg-hover);
}

.photo-upload.drag-over {
    border-color: var(--accent-primary);
    background: var(--glass-bg-active);
    transform: scale(1.02);
}

.photo-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-align: center;
}

.photo-upload-placeholder i {
    font-size: 2rem;
    color: var(--text-muted);
    transition: var(--transition-normal);
}

.photo-upload:hover .photo-upload-placeholder i {
    color: var(--accent-primary);
}

/* Photo Preview */
.photo-preview {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.photo-preview img {
    max-width: 100%;
    max-height: 150px;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.photo-remove {
    position: absolute;
    top: -8px;
    right: calc(50% - 60px);
    width: 24px;
    height: 24px;
    background: var(--accent-danger);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: var(--transition-normal);
}

.photo-remove:hover {
    transform: scale(1.2);
}
/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-normal);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.98);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn i {
    font-size: 1rem;
    transition: var(--transition-normal);
}

/* Primary Button */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

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

/* Secondary Button */
.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(var(--blur-sm));
}

.btn-secondary:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    transform: translateY(-2px);
}

/* Ghost Button */
.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid transparent;
}

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

/* Icon Button */
.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--radius-md);
}

.btn-icon.btn-sm {
    width: 36px;
    height: 36px;
}

/* Button Sizes */
.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
    border-radius: var(--radius-lg);
}

/* Full Width */
.w-full {
    width: 100%;
}

/* Danger Text */
.text-danger {
    color: var(--accent-danger) !important;
}

.btn-ghost.text-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-danger);
}

/* === TOGGLE BUTTONS === */
.btn-toggle {
    padding: 8px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition-normal);
}

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

.btn-toggle.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-color: transparent;
    color: white;
    box-shadow: 0 0 15px var(--glow-primary);
}

/* Button Group */
.btn-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* === GENERATE BUTTON === */
.btn-generate {
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
    background-size: 200% 200%;
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 1rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.btn-generate:hover {
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5), 0 0 60px rgba(139, 92, 246, 0.3);
    transform: translateY(-3px) scale(1.02);
}

.btn-generate i {
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-10deg) scale(1.1); }
    75% { transform: rotate(10deg) scale(1.1); }
}

.btn-generate .btn-glow {
    display: none;
}

/* Loading State */
.btn-loading {
    pointer-events: none;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: btnSpin 0.8s linear infinite;
}

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

/* === COPY BUTTON === */
.btn-copy {
    background: var(--glass-bg);
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
}

.btn-copy:hover {
    background: var(--glass-bg-hover);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.btn-copy.copied {
    background: var(--accent-success);
    color: white;
    border-color: var(--accent-success);
}

/* Copy All Button */
.btn-copy-all {
    background: linear-gradient(135deg, var(--accent-success), #059669);
    color: white;
    border: none;
    padding: 12px 24px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-copy-all:hover {
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

.btn-copy-all.completed {
    background: linear-gradient(135deg, var(--accent-success), #059669);
}

/* Generate Section */
.generate-section {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}
/* === STYLE CARDS === */
.style-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 8px;
}

.style-card {
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 12px 8px;
    cursor: pointer;
    transition: var(--transition-normal);
    text-align: center;
    position: relative;
}

.style-card:hover {
    border-color: var(--glass-border-hover);
    background: var(--glass-bg-hover);
    transform: translateY(-2px);
}

.style-card.active {
    border-color: var(--accent-primary);
    background: var(--glass-bg-active);
    box-shadow: 0 0 20px var(--glow-primary);
}

.style-card.active::after {
    content: '✓';
    position: absolute;
    top: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    background: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
}

.style-card-icon {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.style-card-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.3;
}

.style-card.active .style-card-name {
    color: var(--text-primary);
}

/* === PAGE CARDS === */
.pages-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.page-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-md));
    -webkit-backdrop-filter: blur(var(--blur-md));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: var(--transition-normal);
    animation: fadeSlideIn 0.4s ease-out;
}

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

.page-card:hover {
    border-color: var(--glass-border-hover);
    box-shadow: var(--shadow-glass);
}

.page-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.page-number {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-primary);
}

.page-number-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: white;
    font-weight: 700;
}

.page-actions {
    display: flex;
    gap: 6px;
}

.page-actions .btn-icon {
    width: 32px;
    height: 32px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    padding: 0;
    font-size: 0.85rem;
}

.page-actions .btn-icon:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    color: var(--text-primary);
}

.page-actions .btn-icon:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.page-actions .btn-icon.btn-danger:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--accent-danger);
    color: var(--accent-danger);
}

.page-card-body {
    margin-bottom: 12px;
}

.page-card-footer {
    display: flex;
    justify-content: flex-end;
}

.char-count {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* === EMPTY STATE === */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    text-align: center;
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state-icon i {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.empty-state-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 400px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.empty-state-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

/* === BADGE === */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.badge-secondary {
    background: var(--glass-bg);
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
}

.badge-accent {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
}

/* === PROJECTS LIST === */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

/* === CHARACTERS LIST === */
.characters-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}
/* === RESULTS SECTION === */
.results-section {
    display: block;
}

.results-section.hidden {
    display: none;
}

/* === PROMPTS CONTAINER === */
.prompts-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.prompts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 20px;
}

.prompts-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.prompts-title i {
    color: var(--accent-secondary);
}

.prompts-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.prompts-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.prompts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* === PROMPT CARD === */
.prompt-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-md));
    -webkit-backdrop-filter: blur(var(--blur-md));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition-normal);
    position: relative;
    animation: promptSlideIn 0.5s ease-out backwards;
}

.prompt-card:nth-child(1) { animation-delay: 0.05s; }
.prompt-card:nth-child(2) { animation-delay: 0.1s; }
.prompt-card:nth-child(3) { animation-delay: 0.15s; }
.prompt-card:nth-child(4) { animation-delay: 0.2s; }
.prompt-card:nth-child(5) { animation-delay: 0.25s; }

@keyframes promptSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.prompt-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), var(--accent-pink));
    opacity: 0;
    transition: var(--transition-normal);
}

.prompt-card:hover {
    border-color: var(--glass-border-hover);
    box-shadow: var(--shadow-float), 0 0 40px var(--glow-primary);
    transform: translateY(-4px);
}

.prompt-card:hover::before {
    opacity: 1;
}

/* Prompt Card Header */
.prompt-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 20px 0 20px;
    gap: 16px;
}

.prompt-page-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.prompt-page-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    padding: 0 16px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 15px var(--glow-primary);
}

.prompt-page-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.prompt-scene-hint {
    margin-top: 2px;
}

.prompt-card-actions {
    display: flex;
    gap: 8px;
}

.prompt-card-actions .btn-icon {
    width: 36px;
    height: 36px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    padding: 0;
}

.prompt-card-actions .btn-icon:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    color: var(--text-primary);
}

/* Prompt Metadata */
.prompt-metadata {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.1);
    margin: 16px 20px;
    border-radius: var(--radius-md);
}

.prompt-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.prompt-meta-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.prompt-meta-label i {
    font-size: 0.65rem;
    color: var(--accent-secondary);
}

.prompt-meta-value {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Prompt Content */
.prompt-content {
    padding: 0 20px 20px 20px;
}

.prompt-text {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 16px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-height: 150px;
    overflow-y: auto;
    transition: var(--transition-normal);
}

.prompt-text:hover {
    border-color: var(--glass-border-hover);
    color: var(--text-primary);
}

.prompt-text.expanded {
    max-height: none;
}

.prompt-text-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 8px;
    margin-top: 8px;
    background: transparent;
    border: 1px dashed var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition-normal);
}

.prompt-text-toggle:hover {
    background: var(--glass-bg);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Prompt Card Footer */
.prompt-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.1);
    border-top: 1px solid var(--glass-border);
}

.prompt-stats {
    display: flex;
    gap: 16px;
}

.prompt-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.prompt-stat i {
    color: var(--accent-secondary);
}

/* === PROMPT CARD STATES === */

/* Copied State */
.prompt-card.copied {
    border-color: var(--accent-success);
    box-shadow: 0 0 30px var(--glow-success);
}

.prompt-card.copied .prompt-page-number {
    background: linear-gradient(135deg, var(--accent-success), #059669);
}

/* Copying State */
.prompt-card.copying {
    border-color: var(--accent-primary);
    box-shadow: 0 0 30px var(--glow-primary);
}

/* Generating State */
.prompt-card.generating {
    pointer-events: none;
}

.prompt-card.generating .prompt-text::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Empty Prompts */
.prompts-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    text-align: center;
}

.prompts-empty-icon {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    opacity: 0.5;
}

.prompts-empty-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.prompts-empty-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 400px;
    line-height: 1.6;
}
/* === SEQUENTIAL COPY PANEL === */
.sequential-copy-panel {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid var(--accent-primary);
    border-radius: var(--radius-xl);
    padding: 24px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.sequential-copy-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), var(--accent-pink));
}

.sequential-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 16px;
}

.sequential-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.sequential-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.sequential-current {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
}

.sequential-page-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: var(--radius-lg);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 20px var(--glow-primary);
    flex-shrink: 0;
    animation: currentPagePulse 2s ease-in-out infinite;
}

@keyframes currentPagePulse {
    0%, 100% { box-shadow: 0 4px 20px var(--glow-primary); }
    50% { box-shadow: 0 4px 40px var(--glow-secondary); }
}

.sequential-info {
    flex: 1;
    min-width: 0;
}

.sequential-page-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.sequential-page-scene {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.sequential-actions {
    display: flex;
    gap: 12px;
}

/* Copy Items Grid */
.copy-items-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.copy-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition-normal);
}

.copy-item.pending {
    border-style: dashed;
}

.copy-item.copying {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-color: transparent;
    color: white;
    animation: copyingPulse 0.5s ease infinite;
    box-shadow: 0 0 20px var(--glow-primary);
}

@keyframes copyingPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.copy-item.copied {
    background: var(--accent-success);
    border-color: transparent;
    color: white;
}

/* Copy Next Button */
.btn-copy-next {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 20px var(--glow-primary);
}

.btn-copy-next:hover {
    box-shadow: 0 6px 30px var(--glow-primary), 0 0 50px var(--glow-secondary);
    transform: translateY(-3px) scale(1.02);
}

.btn-skip {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 14px 20px;
}

.btn-skip:hover {
    background: var(--glass-bg-hover);
    color: var(--text-primary);
}

/* === COPY COMPLETION === */
.copy-complete {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px;
    text-align: center;
    animation: completeCelebrate 0.5s ease;
}

@keyframes completeCelebrate {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

.copy-complete-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-success), #059669);
    border-radius: 50%;
    font-size: 2rem;
    color: white;
    margin-bottom: 20px;
    box-shadow: 0 0 40px var(--glow-success);
}

.copy-complete-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.copy-complete-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.copy-complete-stats {
    display: flex;
    gap: 24px;
    padding: 16px 32px;
    background: var(--glass-bg);
    border-radius: var(--radius-lg);
}

.copy-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.copy-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.copy-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* === PROGRESS BAR === */
.progress-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.progress-value {
    font-size: 0.85rem;
    color: var(--accent-primary);
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar-lg {
    height: 12px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), var(--accent-pink));
    background-size: 200% 100%;
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
    animation: progressGradient 2s ease infinite;
}

@keyframes progressGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* === GENERATION PROGRESS === */
.generation-progress {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-md));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 32px;
    text-align: center;
    max-width: 500px;
    margin: 40px auto;
    display: none;
}

.generation-progress.active {
    display: block;
}

.generation-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    animation: magicFloat 2s ease-in-out infinite;
}

@keyframes magicFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(-5deg); }
    75% { transform: translateY(-10px) rotate(5deg); }
}

.generation-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.generation-status {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.generation-batch {
    font-size: 0.85rem;
    color: var(--accent-secondary);
    margin-top: 12px;
}
/* === MODAL === */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(var(--blur-sm));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-lg));
    -webkit-backdrop-filter: blur(var(--blur-lg));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: var(--transition-normal);
    box-shadow: var(--shadow-float);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-lg {
    max-width: 700px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--glass-border);
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-title i {
    color: var(--accent-secondary);
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-normal);
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--accent-danger);
    color: var(--accent-danger);
    transform: rotate(90deg);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    max-height: calc(90vh - 140px);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.1);
}

/* === TOAST NOTIFICATIONS === */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 10001;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-lg));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-float);
    min-width: 320px;
    max-width: 450px;
    pointer-events: auto;
    animation: toastSlideIn 0.4s ease;
    position: relative;
    overflow: hidden;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.toast.hiding {
    animation: toastSlideOut 0.3s ease forwards;
}

@keyframes toastSlideOut {
    to {
        opacity: 0;
        transform: translateX(100px) scale(0.9);
    }
}

.toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-primary);
}

.toast-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    font-size: 1rem;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.toast-message {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.toast-close {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition-normal);
    flex-shrink: 0;
}

.toast-close:hover {
    background: var(--glass-bg);
    color: var(--text-primary);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--accent-primary);
    animation: toastProgress 4s linear forwards;
}

@keyframes toastProgress {
    from { width: 100%; }
    to { width: 0%; }
}

/* Toast Types */
.toast-success::before { background: var(--accent-success); }
.toast-success .toast-icon {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-success);
}
.toast-success .toast-progress { background: var(--accent-success); }

.toast-error::before { background: var(--accent-danger); }
.toast-error .toast-icon {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-danger);
}
.toast-error .toast-progress { background: var(--accent-danger); }

.toast-warning::before { background: var(--accent-warning); }
.toast-warning .toast-icon {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-warning);
}
.toast-warning .toast-progress { background: var(--accent-warning); }

.toast-info::before { background: var(--accent-primary); }
.toast-info .toast-icon {
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-primary);
}

/* === LOADING OVERLAY === */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(var(--blur-sm));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-lg));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    animation: loadingPulse 2s ease-in-out infinite;
}

@keyframes loadingPulse {
    0%, 100% { box-shadow: 0 0 30px var(--glow-primary); }
    50% { box-shadow: 0 0 60px var(--glow-secondary); }
}

.loading-text {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.loading-subtext {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

/* Spinner */
.spinner-magic {
    width: 60px;
    height: 60px;
    position: relative;
}

.spinner-magic::before,
.spinner-magic::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
}

.spinner-magic::before {
    border-top-color: var(--accent-primary);
    border-bottom-color: var(--accent-secondary);
    animation: spin 1s linear infinite;
}

.spinner-magic::after {
    border-left-color: var(--accent-pink);
    border-right-color: var(--accent-cyan);
    animation: spin 1.5s linear infinite reverse;
}

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

/* === ALERT === */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
}

.alert-info {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--text-secondary);
}

.alert-info i {
    color: var(--accent-primary);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}
/* === RESPONSIVE === */

/* Tablet */
@media (max-width: 1200px) {
    .main-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        max-height: none;
        overflow-y: visible;
    }
    
    .style-cards {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    .header {
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .header-center {
        order: 3;
        width: 100%;
        padding: 0;
    }
    
    .header-center .form-input {
        max-width: 100% !important;
    }
    
    .logo span:not(.logo-badge) {
        display: none;
    }
    
    .main-container {
        padding: 16px;
        gap: 16px;
    }
    
    .sidebar-section,
    .content-section {
        padding: 16px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-actions {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .section-actions .btn {
        flex: 1;
        min-width: 0;
        justify-content: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .style-cards {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .btn-group {
        width: 100%;
    }
    
    .btn-group .btn-toggle {
        flex: 1;
        text-align: center;
    }
    
    .generate-section {
        flex-direction: column;
    }
    
    .generate-section .btn {
        width: 100%;
    }
    
    .prompt-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .prompt-card-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .prompt-metadata {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .prompt-card-footer {
        flex-direction: column;
        gap: 12px;
    }
    
    .prompt-card-footer .btn-copy {
        width: 100%;
    }
    
    .prompts-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .prompts-actions {
        flex-direction: column;
    }
    
    .prompts-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .sequential-current {
        flex-direction: column;
        text-align: center;
    }
    
    .sequential-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .sequential-actions .btn {
        width: 100%;
    }
    
    .copy-complete-stats {
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }
    
    .copy-items-grid {
        justify-content: center;
    }
    
    .modal {
        margin: 16px;
        max-height: calc(100vh - 32px);
    }
    
    .modal-body {
        max-height: calc(100vh - 180px);
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
    
    .toast-container {
        top: auto;
        bottom: 16px;
        left: 16px;
        right: 16px;
    }
    
    .toast {
        min-width: auto;
        width: 100%;
    }
    
    .empty-state {
        padding: 40px 20px;
    }
    
    .empty-state-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .empty-state-actions .btn {
        width: 100%;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .main-container {
        padding: 12px;
    }
    
    .sidebar-section,
    .content-section {
        padding: 14px;
    }
    
    .style-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .page-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .page-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .copy-item {
        width: 36px;
        height: 36px;
        font-size: 0.75rem;
    }
    
    .generation-progress {
        padding: 24px 16px;
        margin: 20px 0;
    }
}

/* === UTILITY CLASSES === */

/* Display */
.hidden {
    display: none !important;
}

.block {
    display: block;
}

.flex {
    display: flex;
}

.inline-flex {
    display: inline-flex;
}

.grid {
    display: grid;
}

/* Flex */
.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-1 {
    flex: 1;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-end {
    justify-content: flex-end;
}

/* Gap */
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }

/* Margin */
.m-0 { margin: 0; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }

/* Padding */
.p-0 { padding: 0; }
.p-2 { padding: 8px; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }

/* Text */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.85rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.1rem; }
.text-xl { font-size: 1.25rem; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent-primary); }
.text-success { color: var(--accent-success); }
.text-warning { color: var(--accent-warning); }

/* Width */
.w-full { width: 100%; }
.max-w-full { max-width: 100%; }

/* Border Radius */
.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-y-auto { overflow-y: auto; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

/* Cursor */
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }

/* Pointer Events */
.pointer-events-none { pointer-events: none; }

/* Opacity */
.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-100 { opacity: 1; }

/* Transition */
.transition { transition: var(--transition-normal); }

/* Truncate */
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
/* === EXTRA CHARACTERS & PETS === */
.extra-section {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-top: 12px;
}

.extra-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 12px;
    position: relative;
}

.extra-item:last-child {
    margin-bottom: 0;
}

.extra-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.extra-item-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-secondary);
}

.extra-item-title i {
    font-size: 0.85rem;
}

.extra-item-remove {
    width: 24px;
    height: 24px;
    background: rgba(239, 68, 68, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--accent-danger);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: var(--transition-normal);
}

.extra-item-remove:hover {
    background: var(--accent-danger);
    color: white;
    transform: scale(1.1);
}

.extra-item-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.extra-item-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.extra-item-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 500;
}

.extra-item .form-input,
.extra-item .form-textarea {
    background: var(--glass-bg);
    font-size: 0.85rem;
    padding: 10px 12px;
}

.extra-item .form-textarea {
    min-height: 60px;
    resize: none;
}

.extra-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 2px dashed var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition-normal);
    margin-top: 12px;
}

.extra-add-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.05);
}

.extra-add-btn i {
    font-size: 0.9rem;
}

/* === SCROLL TO TOP BUTTON === */
.scroll-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 4px 20px rgba(102, 126, 234, 0.4),
        0 0 40px rgba(118, 75, 162, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation: gradientShift 3s ease infinite;
    overflow: hidden;
}

.scroll-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-to-top-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 
        0 8px 30px rgba(102, 126, 234, 0.5),
        0 0 60px rgba(118, 75, 162, 0.4),
        0 0 80px rgba(240, 147, 251, 0.3);
}

.scroll-to-top-btn:active {
    transform: translateY(-2px) scale(1.05);
}

.scroll-btn-icon {
    font-size: 1.5rem;
    position: relative;
    z-index: 2;
    animation: rocketBounce 2s ease-in-out infinite;
}

@keyframes rocketBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.scroll-btn-stars {
    position: absolute;
    font-size: 0.8rem;
    opacity: 0;
    animation: starsFloat 2s ease-in-out infinite;
}

@keyframes starsFloat {
    0%, 100% { 
        opacity: 0;
        transform: translateY(10px) scale(0.5);
    }
    50% { 
        opacity: 1;
        transform: translateY(-15px) scale(1);
    }
}

.scroll-to-top-btn:hover .scroll-btn-stars {
    animation: starsExplode 0.5s ease-out forwards;
}

@keyframes starsExplode {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-30px) scale(1.5);
    }
}

/* Пузырьки при наведении */
.scroll-to-top-btn::before,
.scroll-to-top-btn::after {
    content: '✦';
    position: absolute;
    font-size: 0.6rem;
    opacity: 0;
    pointer-events: none;
}

.scroll-to-top-btn::before {
    top: 10px;
    left: 8px;
    animation: none;
}

.scroll-to-top-btn::after {
    bottom: 12px;
    right: 10px;
    animation: none;
}

.scroll-to-top-btn:hover::before {
    animation: sparkleLeft 1s ease infinite;
}

.scroll-to-top-btn:hover::after {
    animation: sparkleRight 1s ease 0.3s infinite;
}

@keyframes sparkleLeft {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes sparkleRight {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Мобильная версия */
@media (max-width: 768px) {
    .scroll-to-top-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    .scroll-btn-icon {
        font-size: 1.2rem;
    }
}
/* === PREMIUM STYLE CARDS === */
.style-cards-premium {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.style-card-premium {
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 20px 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

/* Glow effect background */
.style-card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
    transition: all 0.5s ease;
    pointer-events: none;
    z-index: 0;
}

.style-card-premium:hover .style-card-glow {
    opacity: 0.1;
    transform: translate(-50%, -50%) scale(1);
}

.style-card-premium.active .style-card-glow {
    opacity: 0.15;
    transform: translate(-50%, -50%) scale(1.2);
    background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
}

/* Icon */
.style-card-icon {
    position: relative;
    z-index: 1;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    font-size: 1.25rem;
    color: var(--text-muted);
    transition: all 0.4s ease;
}

.style-card-premium:hover .style-card-icon {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.2);
}

.style-card-premium.active .style-card-icon {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-color: transparent;
    color: white;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 8px 25px rgba(99, 102, 241, 0.4),
        0 0 40px rgba(139, 92, 246, 0.3);
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4), 0 0 40px rgba(139, 92, 246, 0.3); }
    50% { box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5), 0 0 60px rgba(139, 92, 246, 0.4); }
}

/* Name */
.style-card-name {
    position: relative;
    z-index: 1;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.style-card-premium:hover .style-card-name {
    color: var(--text-primary);
}

.style-card-premium.active .style-card-name {
    color: var(--text-primary);
    font-weight: 600;
}

/* Check mark */
.style-card-check {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 22px;
    height: 22px;
    background: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 2;
}

.style-card-check i {
    font-size: 0.65rem;
    color: white;
}

.style-card-premium.active .style-card-check {
    opacity: 1;
    transform: scale(1);
}

/* Hover border animation */
.style-card-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, transparent, transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: all 0.4s ease;
}

.style-card-premium:hover::before {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    opacity: 1;
}

.style-card-premium.active::before {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-pink));
    opacity: 1;
}

/* Active state border */
.style-card-premium.active {
    border-color: transparent;
    background: rgba(99, 102, 241, 0.08);
}

/* Shine effect on hover */
.style-card-premium::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.08),
        transparent
    );
    transition: left 0.6s ease;
    pointer-events: none;
}

.style-card-premium:hover::after {
    left: 100%;
}

/* Responsive */
@media (max-width: 480px) {
    .style-cards-premium {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .style-card-premium {
        padding: 16px 12px;
    }
    
    .style-card-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .style-card-name {
        font-size: 0.75rem;
    }
}
/* === ENHANCED PHOTO UPLOAD === */
.photo-upload {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    padding: 24px;
    background: rgba(0, 0, 0, 0.2);
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.photo-upload:hover,
.photo-upload.focus {
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.05);
}

.photo-upload.drag-over {
    border-color: var(--accent-success);
    background: rgba(16, 185, 129, 0.1);
    transform: scale(1.02);
}

.photo-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-align: center;
}

.photo-upload-placeholder i {
    font-size: 2.5rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
    margin-bottom: 4px;
}

.photo-upload:hover .photo-upload-placeholder i,
.photo-upload.focus .photo-upload-placeholder i {
    color: var(--accent-primary);
    transform: translateY(-4px);
}

.photo-upload-placeholder span:first-of-type {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.photo-upload-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.photo-upload-paste {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.7;
}

.photo-upload-paste kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.photo-upload:hover .photo-upload-paste,
.photo-upload.focus .photo-upload-paste {
    opacity: 1;
}

/* Photo preview улучшение */
.photo-preview {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.photo-preview img {
    max-width: 100%;
    max-height: 180px;
    border-radius: var(--radius-md);
    object-fit: cover;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.photo-remove {
    position: absolute;
    top: -10px;
    right: calc(50% - 70px);
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.photo-remove:hover {
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
}
/* === PROJECTS LIST === */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.projects-loading,
.projects-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px;
    color: var(--text-muted);
    text-align: center;
}

.projects-loading i,
.projects-empty i {
    font-size: 2rem;
    opacity: 0.5;
}

.projects-empty span {
    font-size: 0.85rem;
}

/* Project Item */
.project-item {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-item:hover {
    border-color: var(--glass-border-hover);
    background: rgba(0, 0, 0, 0.3);
}

.project-item-main {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    cursor: pointer;
    min-width: 0;
}

.project-item-icon {
    position: relative;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-sm);
    color: var(--accent-primary);
    flex-shrink: 0;
}

.project-item-icon i {
    font-size: 1rem;
}

/* Prompts type - two icons */
.project-prompts .project-item-icon {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-success);
}

.project-prompts .project-item-icon i:first-child {
    position: absolute;
    left: 6px;
    font-size: 0.85rem;
}

.project-prompts .project-item-icon i:last-child {
    position: absolute;
    right: 6px;
    font-size: 0.85rem;
}

.project-item-info {
    flex: 1;
    min-width: 0;
}

.project-item-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-badge {
    display: inline-flex;
    padding: 2px 6px;
    background: var(--accent-success);
    border-radius: var(--radius-sm);
    font-size: 0.6rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.project-badge-prompts {
    background: linear-gradient(135deg, var(--accent-success), #059669);
}

.project-item-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-item-meta .text-success {
    color: var(--accent-success);
}

.project-item-delete {
    width: 40px;
    height: 100%;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-left: 1px solid var(--glass-border);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-item-delete:hover {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-danger);
}

/* Active project */
.project-item.active {
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
}

.project-item.active .project-item-icon {
    background: var(--accent-primary);
    color: white;
}
/* === PROJECTS FILTER === */
.projects-filter {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}

.filter-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
}

.filter-btn.active {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.filter-btn i {
    font-size: 0.7rem;
}

/* Project item types */
.project-item.type-text .project-item-icon {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.project-item.type-prompts .project-item-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.project-item.type-prompts {
    border-left: 3px solid var(--accent-success);
}

/* Badge styles */
.project-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    background: var(--accent-success);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    border-radius: 4px;
    margin-left: 6px;
    text-transform: uppercase;
}

.project-badge-text {
    background: var(--accent-primary);
}
