/* --- css/style.css --- */

/* === СБРОС СТИЛЕЙ === */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: #f1f5f9;
    color: #1e293b;
    line-height: 1.5;
}

button, select, input, textarea {
    font-family: inherit;
    font-size: inherit;
    border: none;
    background: none;
    outline: none;
}

button {
    cursor: pointer;
}

/* === СТРУКТУРА === */
.lobby-container {
    max-width: 600px;
    margin: 1rem auto; /* Было 2rem */
    padding: 1rem; /* Было 1.5rem */
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.lobby-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.5rem; /* Было 1rem */
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 0.75rem; /* Было 1.5rem */
}

.app-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #4f46e5;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Кнопка выбора языка интерфейса */
.ui-lang-btn {
    width: 2.5rem;
    height: 2.5rem;
    background: #f1f5f9;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.2s ease;
}

.ui-lang-btn:hover {
    background: #e2e8f0;
    transform: scale(1.05);
}

.section {
    margin-bottom: 0.75rem; /* Было 1.5rem */
}

.section-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem; /* Было 0.5rem */
}

/* === ВЫБОР ЯЗЫКА === */
.lang-selector {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.lang-btn {
    flex: 1;
    min-width: 100px;
    padding: 0.5rem; /* Было 1rem */
    background: #f8fafc;
    border: 2px solid #f1f5f9;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    border-color: #e2e8f0;
    background: #f1f5f9;
}

.lang-btn.active {
    background: #eef2ff;
    border-color: #6366f1;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.lang-btn .flag {
    font-size: 1.5rem;
}

.lang-btn .lang-name {
    font-size: 0.625rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b;
}

.lang-btn.active .lang-name {
    color: #4f46e5;
}

/* === КНОПКИ ДЕЙСТВИЙ === */
.action-btns {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem; /* Было 1.5rem */
}

.action-btn {
    flex: 1;
    padding: 0.5rem; /* Было 0.75rem */
    border: 2px dashed #e2e8f0;
    border-radius: 1rem;
    font-weight: 700;
    font-size: 0.875rem;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #f8fafc;
    transition: all 0.2s ease;
}

.gen-btn:hover {
    border-color: #a5b4fc;
    color: #6366f1;
}

.personal-btn:hover {
    border-color: #6ee7b7;
    color: #10b981;
}

/* === ТАБЫ === */
.tabs-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem; /* Было 1rem */
}

.tabs-container {
    display: flex;
    background: #f1f5f9;
    border-radius: 0.75rem;
    padding: 0.25rem;
    flex-grow: 1;
}

.tab-btn {
    flex: 1;
    padding: 0.375rem; /* Было 0.5rem */
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.75rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    color: #64748b;
}

.tab-btn.active {
    background: white;
    color: #4f46e5;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.filter-toggle-btn {
    padding: 0.5rem; /* Было 0.625rem */
    background: #f1f5f9;
    color: #94a3b8;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

.filter-toggle-btn:hover {
    background: #e2e8f0;
    color: #64748b;
}

.filter-toggle-btn.active {
    background: #e0e7ff;
    color: #4f46e5;
}

/* === СПИСОК ИСТОРИЙ === */
.story-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* Было 0.75rem */
}

.empty-state {
    text-align: center;
    padding: 1.5rem; /* Было 2rem */
    color: #94a3b8;
    font-size: 0.875rem;
}

.story-card {
    background: white;
    border: 2px solid #f1f5f9;
    border-radius: 1rem;
    padding: 0.75rem; /* Было 1rem */
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.story-card:hover {
    border-color: #e0e7ff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.story-card-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.story-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.story-card:hover .story-title {
    color: #4f46e5;
}

.story-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.25rem; /* Было 0.5rem */
}

.story-tag {
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.125rem 0.375rem;
    border-radius: 0.375rem;
    background: #f1f5f9;
    color: #64748b;
}

.tag-level {
    background: #eef2ff;
    color: #4f46e5;
}

.tag-style {
    background: #ecfdf5;
    color: #059669;
}

.story-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.meta-item {
    font-size: 0.625rem;
    font-weight: 500;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.story-actions {
    margin-left: auto;
    display: flex;
    gap: 0.25rem;
}

.action-mini-btn {
    padding: 0.25rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    background: #f8fafc;
}

.action-mini-btn.public {
    background: #ecfdf5;
    color: #059669;
}

.action-mini-btn.delete:hover {
    background: #fee2e2;
    color: #ef4444;
}

.story-arrow {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-left: 1rem;
    transition: all 0.2s ease;
}

.story-card:hover .story-arrow {
    color: #4f46e5;
    transform: translateX(3px);
}

/* Прогресс-бар */
.progress-bar-container {
    height: 4px;
    background: #f1f5f9;
    border-radius: 2px;
    margin-top: 0.5rem; /* Было 0.75rem */
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: #4f46e5;
    transition: width 0.5s ease;
}

.progress-bar.complete {
    background: #10b981;
}

/* Компактный вид карточек */
.story-card.compact {
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
}

.story-card.compact .story-title {
    font-size: 0.875rem;
    margin-bottom: 0;
}

.story-card.compact .story-tags {
    display: none;
}

.story-card.compact .story-meta {
    font-size: 0.625rem;
    margin-top: 0.25rem;
}

.story-card.compact .progress-bar-container {
    margin-top: 0.25rem;
}

/* === ПАНЕЛЬ ФИЛЬТРОВ === */
.filter-panel {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 0.75rem; /* Было 1rem */
    margin-bottom: 0.5rem; /* Было 1rem */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem; /* Было 0.75rem */
    animation: lc-fadeIn 0.2s ease-out;
}

@media (min-width: 480px) {
    .filter-panel {
        grid-template-columns: repeat(4, 1fr);
    }
}

.filter-panel .form-group {
    margin-bottom: 0;
}

.filter-panel .form-label {
    font-size: 0.625rem;
    margin-bottom: 0.25rem; /* Добавлено */
}

.filter-panel .form-select, 
.filter-panel .form-input {
    padding: 0.375rem; /* Было 0.5rem */
    font-size: 0.875rem;
    border-radius: 0.5rem; /* Добавлено */
}

/* === МЕНЮ ИСТОРИИ (Rounds) === */
.story-menu-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 0.5rem; /* Было 1rem */
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1rem; /* Было 1.5rem */
}

.back-btn {
    padding: 0.5rem;
    background: #f1f5f9;
    border-radius: 9999px;
    font-size: 1.25rem;
    transition: all 0.2s ease;
}

.back-btn:hover {
    background: #e2e8f0;
}

.story-header-info {
    flex-grow: 1;
    min-width: 0;
}

.story-menu-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.story-header-meta {
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-pair {
    color: #4f46e5;
}

.round-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* Было 0.75rem */
}

.round-btn {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0.75rem; /* Было 1rem */
    border-radius: 1rem;
    border: 2px solid #f1f5f9;
    background: #f8fafc;
    transition: all 0.2s ease;
}

.round-btn:hover:not(:disabled) {
    border-color: #e2e8f0;
    background: #f1f5f9;
}

.round-btn.current {
    border-color: #6366f1;
    background: #eef2ff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.round-btn.completed {
    border-color: #a7f3d0;
    background: #ecfdf5;
}

.round-btn.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.round-icon-circle {
    width: 2rem; /* Было 2.5rem */
    height: 2rem; /* Было 2.5rem */
    border-radius: 9999px;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem; /* Было 1rem */
    font-size: 1rem; /* Было 1.25rem */
    flex-shrink: 0;
}

.round-btn.current .round-icon-circle {
    background: #4f46e5;
    color: white;
}

.round-btn.completed .round-icon-circle {
    background: #10b981;
    color: white;
}

.round-name {
    font-weight: 700;
    font-size: 0.875rem; /* Было 1rem */
    color: #1e293b;
    text-align: left;
}

.round-btn.locked .round-name {
    color: #94a3b8;
}

/* === ЭКРАН ИГРЫ (Playing) === */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.5rem; /* Было 1rem */
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1rem; /* Было 1.5rem */
}

.game-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
}

.progress-pct {
    font-size: 0.875rem;
    font-weight: 700;
    color: #4f46e5;
    background: #eef2ff;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
}

.game-content {
    min-height: 250px; /* Было 300px */
}

.phase-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.phase-icon {
    font-size: 1.5rem; /* Было 2rem */
    text-align: center;
    margin-bottom: 1rem; /* Было 1.5rem */
}

/* Фаза Изучения */
.vocab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* Было 200px */
    gap: 0.75rem; /* Было 1rem */
    margin-bottom: 1rem; /* Было 1.5rem */
}

.vocab-card {
    background: #f8fafc;
    border: 2px solid #f1f5f9;
    border-radius: 1rem;
    padding: 0.75rem; /* Было 1rem */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.vocab-target {
    font-size: 1rem; /* Было 1.125rem */
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vocab-base {
    font-size: 0.75rem; /* Было 0.875rem */
    color: #64748b;
}

.speak-btn {
    font-size: 1rem;
    color: #94a3b8;
    transition: color 0.2s ease;
}

.speak-btn:hover {
    color: #4f46e5;
}

.submit-btn {
    width: 100%;
    padding: 0.75rem; /* Было 1rem */
    background: #4f46e5;
    color: white;
    font-weight: 700;
    border-radius: 1rem;
    margin-top: auto;
    transition: all 0.2s ease;
}

.submit-btn:hover {
    background: #4338ca;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.submit-btn.highlight {
    background: #10b981;
}

.submit-btn.highlight:hover {
    background: #059669;
}

/* Фаза Чтения */
.lang-toggle-bar {
    display: flex;
    background: #f1f5f9;
    border-radius: 9999px;
    padding: 0.25rem;
    width: 160px; /* Было 200px */
    margin: 0 auto 1rem; /* Было 1.5rem */
}

.toggle-btn {
    flex: 1;
    padding: 0.25rem; /* Было 0.375rem */
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    transition: all 0.2s ease;
}

.toggle-btn.active {
    background: white;
    color: #4f46e5;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.sentence-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* Было 1rem */
    margin-bottom: 1rem; /* Было 1.5rem */
    background: #f8fafc;
    padding: 0.75rem; /* Было 1rem */
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
}

.sentence-item {
    display: flex;
    align-items: center;
    gap: 0.75rem; /* Было 1rem */
    padding: 0.375rem; /* Было 0.5rem */
    border-bottom: 1px solid #f1f5f9;
}

.sentence-item:last-child {
    border-bottom: none;
}

/* Остальные стили без изменений, они не влияют на компактность лобби */
.sentence-num { font-size: 0.75rem; font-weight: 900; color: #94a3b8; min-width: 1.5rem; }
.sentence-text { display: flex; justify-content: space-between; align-items: center; gap: 1rem; width: 100%; }
.sentence-text span { font-weight: 500; color: #1e293b; }
.phase-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.sentence-counter { font-size: 0.75rem; font-weight: 700; color: #94a3b8; background: #f1f5f9; padding: 0.25rem 0.5rem; border-radius: 0.5rem; }
.source-sentence-box { background: #eef2ff; border: 1px solid #c7d2fe; border-radius: 1rem; padding: 1rem; display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; font-weight: 500; color: #1e293b; }
.slots-container { display: flex; flex-wrap: wrap; gap: 0.5rem; min-height: 100px; background: #f8fafc; padding: 1rem; border-radius: 1rem; border: 2px dashed #e2e8f0; margin-bottom: 1.5rem; align-content: flex-start; }
.word-slot { padding: 0.5rem 0.75rem; background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 0.5rem; font-weight: 700; color: #94a3b8; min-width: 3rem; text-align: center; height: 2.5rem; display: flex; align-items: center; justify-content: center; }
.word-slot.filled { background: white; color: #1e293b; border-color: #cbd5e1; box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.word-bank { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; background: #f8fafc; padding: 1rem; border-radius: 1rem; border: 1px solid #e2e8f0; min-height: 150px; align-content: flex-start; }
.bank-word-btn { padding: 0.5rem 1rem; background: white; border: 2px solid #f1f5f9; border-radius: 1rem; font-weight: 700; color: #1e293b; box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1); transition: all 0.2s ease; }
.bank-word-btn:hover { border-color: #cbd5e1; transform: translateY(-1px); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }
.bank-word-btn:active { transform: translateY(0); }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.shake { animation: shake 0.4s ease; border-color: #ef4444 !important; }
.mode-toggle { display: flex; background: #f1f5f9; border-radius: 0.75rem; padding: 0.25rem; }
.mode-btn { padding: 0.375rem 0.75rem; border-radius: 0.5rem; font-size: 0.75rem; font-weight: 700; color: #94a3b8; transition: all 0.2s ease; }
.mode-btn.active { background: white; color: #4f46e5; box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.typing-area { background: #f8fafc; padding: 1.5rem; border-radius: 1rem; border: 2px solid #e2e8f0; margin-bottom: 1.5rem; cursor: text; min-height: 120px; display: flex; align-items: center; justify-content: center; }
.letters-preview { display: flex; flex-wrap: wrap; gap: 0.25rem; justify-content: center; align-items: center; }
.word-group { display: flex; gap: 0.25rem; }
.letter-box { width: 2rem; height: 2.5rem; border: 2px solid #e2e8f0; border-radius: 0.5rem; background: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.25rem; color: #94a3b8; transition: all 0.2s ease; }
.letter-box.correct { border-color: #10b981; background: #ecfdf5; color: #047857; box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.letter-box.incorrect { border-color: #ef4444; background: #fef2f2; color: #b91c1c; animation: shake 0.4s ease; }
.punctuation { font-size: 1.25rem; font-weight: 700; color: #64748b; align-self: flex-end; padding-bottom: 0.25rem; }
.space { width: 1rem; }
.hidden-input { position: absolute; opacity: 0; pointer-events: none; }
.keyboard-hint { text-align: center; font-size: 0.75rem; color: #94a3b8; margin-top: auto; }
.letters-bank-container { margin-top: auto; display: flex; flex-direction: column; gap: 1rem; }
.bank-actions { display: flex; gap: 0.5rem; justify-content: center; }
.bank-action-btn { padding: 0.5rem 1rem; background: #f1f5f9; border-radius: 0.5rem; font-size: 0.75rem; font-weight: 700; color: #64748b; transition: all 0.2s ease; }
.bank-action-btn:hover { background: #e2e8f0; color: #1e293b; }
.letters-bank { display: flex; flex-wrap: wrap; gap: 0.375rem; justify-content: center; background: #f8fafc; padding: 1rem; border-radius: 1rem; border: 1px solid #e2e8f0; min-height: 100px; align-content: flex-start; }
.bank-letter-btn { width: 2.5rem; height: 2.5rem; background: white; border: 1px solid #e2e8f0; border-radius: 0.5rem; font-weight: 700; font-size: 1.125rem; color: #1e293b; box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); transition: all 0.2s ease; }
.bank-letter-btn:hover { border-color: #cbd5e1; transform: translateY(-1px); box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.05); }
.bank-letter-btn:active { transform: translateY(0); }
.final-title { font-size: 1.5rem; font-weight: 800; color: #10b981; text-align: center; margin-bottom: 1.5rem; }
.final-sentence-list { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }
.final-sentence-item { background: #f8fafc; border: 2px solid #f1f5f9; border-radius: 1rem; padding: 1rem; cursor: pointer; transition: all 0.2s ease; }
.final-sentence-item:hover { border-color: #e2e8f0; background: #f1f5f9; }
.final-sentence-item.flipped { background: #eef2ff; border-color: #c7d2fe; }
.sentence-content { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.sentence-text { font-weight: 500; color: #1e293b; }
.ai-limit-badge { display: flex; align-items: center; gap: 0.5rem; padding: 0.25rem 0.75rem; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 9999px; }
.badge-label { font-size: 0.625rem; font-weight: 900; color: #6366f1; text-transform: uppercase; letter-spacing: 0.1em; }
.badge-value { font-size: 0.75rem; font-weight: 700; color: #4f46e5; }
.badge-value.limited { color: #ef4444; }
.lc-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); display: flex; align-items: center; justify-content: center; z-index: 10000; backdrop-filter: blur(4px); }
.lc-modal { background: white; border-radius: 1.5rem; width: 90%; max-width: 400px; padding: 1.5rem; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); animation: lc-fadeIn 0.3s ease-out; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.modal-header h3 { font-size: 1.25rem; font-weight: 800; color: #1e293b; }
.close-btn { font-size: 1.5rem; color: #94a3b8; transition: color 0.2s ease; }
.close-btn:hover { color: #1e293b; }
.lang-list { display: flex; flex-direction: column; gap: 0.5rem; }
.lang-item { display: flex; align-items: center; gap: 1rem; padding: 1rem; border-radius: 1rem; border: 2px solid #f1f5f9; cursor: pointer; transition: all 0.2s ease; }
.lang-item:hover { border-color: #e2e8f0; background: #f8fafc; }
.lang-item.active { border-color: #6366f1; background: #eef2ff; }
.lang-item .flag { font-size: 1.5rem; }
.lang-item .lang-name { font-weight: 700; color: #1e293b; flex-grow: 1; }
.lang-item .check { color: #10b981; font-weight: 900; }
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.75rem; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.form-input, .form-select, .form-textarea { width: 100%; padding: 0.75rem 1rem; background: #f8fafc; border: 2px solid #f1f5f9; border-radius: 0.75rem; font-size: 1rem; color: #1e293b; transition: all 0.2s ease; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: #cbd5e1; background: #f1f5f9; }
.form-textarea { resize: none; min-height: 150px; }
.range-container { display: flex; flex-direction: column; gap: 0.5rem; }
.range-header { display: flex; justify-content: space-between; font-size: 0.875rem; font-weight: 700; color: #64748b; }
.range-slider { width: 100%; accent-color: #4f46e5; }
.range-labels { display: flex; justify-content: space-between; font-size: 0.75rem; font-weight: 700; color: #94a3b8; }
.modal-actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.modal-actions button { flex: 1; padding: 0.75rem; border-radius: 0.75rem; font-weight: 700; transition: all 0.2s ease; }
.modal-actions .cancel-btn { background: #f1f5f9; color: #64748b; }
.modal-actions .cancel-btn:hover { background: #e2e8f0; }
.modal-actions .confirm-btn { background: #ef4444; color: white; }
.modal-actions .confirm-btn:hover { background: #dc2626; }
.version-toggle { position: fixed; bottom: 20px; right: 20px; background: #4f46e5; color: white; padding: 10px 20px; border-radius: 9999px; font-weight: bold; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); z-index: 9999; text-decoration: none; display: flex; align-items: center; gap: 8px; transition: all 0.2s ease; }
.version-toggle:hover { background: #4338ca; transform: translateY(-2px); }
@keyframes lc-spin { to { transform: rotate(360deg); } }
.lc-spin { animation: lc-spin 1s linear infinite; font-size: 2rem; }
.loading-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100vh; }
@keyframes lc-fadeIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
