:root {
    /* Color Palette - Premium Violet/Indigo Theme */
    --primary-hue: 255;
    --primary-color: hsl(var(--primary-hue), 85%, 65%);
    --primary-dark: hsl(var(--primary-hue), 70%, 55%);
    --primary-light: hsl(var(--primary-hue), 90%, 75%);
    --accent-color: hsl(280, 80%, 60%);

    --bg-gradient-start: hsl(230, 60%, 96%);
    --bg-gradient-end: hsl(260, 60%, 94%);

    --surface-color: rgba(255, 255, 255, 0.85);
    --surface-hover: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.6);

    --text-main: hsl(220, 20%, 20%);
    --text-secondary: hsl(220, 15%, 45%);
    --text-white: #ffffff;

    /* Status Colors */
    --success-color: hsl(150, 60%, 45%);
    --warning-color: hsl(40, 90%, 55%);
    --error-color: hsl(350, 70%, 60%);

    /* Dimensions & Spacing */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.3);

    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    min-height: 100vh;
    padding: 20px;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    background-attachment: fixed;
}

/* Moving ambient background blobs */
body::before,
body::after {
    content: '';
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.5;
    animation: float 20s infinite alternate;
}

body::before {
    background: radial-gradient(circle, var(--primary-light), transparent 70%);
    top: -10%;
    left: -10%;
}

body::after {
    background: radial-gradient(circle, var(--accent-color), transparent 70%);
    bottom: -10%;
    right: -10%;
    animation-delay: -10s;
    opacity: 0.3;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

/* Layout Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    padding-bottom: 80px;
    /* Space for FAB */
    transition: all 0.4s ease;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--surface-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 255, 255, 0.8);
}

/* Header Section */
.header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.header h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(100, 100, 255, 0.1);
}

.header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
}

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

/* Settings Toggle Button */
.settings-toggle-btn {
    background: var(--surface-color);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.settings-toggle-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-md);
    background: white;
    color: var(--primary-dark);
}

.settings-toggle-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Settings Panel */
.settings-panel {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-sm);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    max-height: 2000px;
    /* Arbitrary large height for transition */
    opacity: 1;
}

.settings-panel.hidden {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 0;
    opacity: 0;
    border: none;
}

.settings-panel h3 {
    margin-bottom: 16px;
    color: var(--text-main);
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Form Elements */
input[type="text"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid transparent;
    background: #f0f2f5;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--text-main);
    transition: all 0.2s ease;
    font-family: var(--font-body);
}

textarea {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.5;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(var(--primary-hue), 85%, 65%, 0.1);
}

label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 6px;
    display: block;
}

/* API Config & Model Grid */
.api-config-section,
.model-config-section {
    background: white;
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid #eef0f5;
}

.model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.model-item label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Custom Checkbox Toggle */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.checkbox-container:hover {
    background: #f0f2f5;
}

.checkbox-container input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 44px;
    height: 24px;
    background: #d1d5db;
    border-radius: var(--radius-full);
    position: relative;
    cursor: pointer;
    transition: background 0.3s;
    border: none;
}

.checkbox-container input[type="checkbox"]::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.checkbox-container input[type="checkbox"]:checked {
    background: var(--primary-color);
}

.checkbox-container input[type="checkbox"]:checked::after {
    transform: translateX(20px);
}

/* Upload Area */
.upload-area {
    background: rgba(255, 255, 255, 0.6);
    border: 3px dashed rgba(100, 100, 255, 0.3);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.upload-area:hover,
.upload-area.drag-over {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(100, 100, 255, 0.15);
    transform: scale(1.01);
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.upload-area:hover .upload-icon {
    transform: scale(1.1) rotate(5deg);
}

.upload-area h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 8px;
}

.upload-area p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Buttons */
.btn {
    appearance: none;
    border: none;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 12px rgba(100, 100, 255, 0.25);
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(100, 100, 255, 0.35);
    filter: brightness(1.05);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(100, 100, 255, 0.2);
}

.btn:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.7;
}

/* Specific Button Styles */
#resetApiBtn,
#clearCacheBtn,
#changeImageBtn {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
    background: #ef4444;
    /* Fallback */
    background: linear-gradient(135deg, hsl(350, 80%, 65%), hsl(350, 70%, 55%));
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

#resetApiBtn:hover,
#clearCacheBtn:hover,
#changeImageBtn:hover {
    background: linear-gradient(135deg, hsl(350, 85%, 68%), hsl(350, 75%, 58%));
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.35);
}

#checkKeysBtn,
#viewCacheBtn,
#galleryBtn {
    background: linear-gradient(135deg, hsl(190, 80%, 60%), hsl(190, 80%, 45%));
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.25);
}

/* Image Preview */
#previewImages {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
}

#previewImages>div {
    position: relative;
    border-radius: var(--radius-md);
    padding: 8px;
    background: white;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s;
}

#previewImages>div:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

#previewImages img {
    border-radius: var(--radius-sm);
    display: block;
    max-width: 100%;
    height: auto;
}

.remove-image-btn {
    top: -10px !important;
    right: -10px !important;
    width: 28px !important;
    height: 28px !important;
    background: var(--error-color) !important;
    border: 2px solid white !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.2s !important;
}

.remove-image-btn:hover {
    transform: scale(1.1) !important;
}

/* Result Container */
.result-container {
    margin-top: 40px;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-text {
    background: white;
    border-radius: var(--radius-md);
    padding: 32px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2c3e50;
    box-shadow: var(--shadow-md);
    border: 1px solid #eef0f5;
    position: relative;
    font-family: 'Merriweather', 'Georgia', serif;
}

/* Typography in Results (Markdown) */
.markdown-content h1,
.markdown-content h2,
.markdown-content h3 {
    font-family: var(--font-heading);
    color: var(--text-main);
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    font-weight: 700;
}

.markdown-content h1 {
    font-size: 2rem;
    border-bottom: 3px solid var(--primary-light);
    padding-bottom: 0.3em;
    display: inline-block;
}

.markdown-content h2 {
    font-size: 1.5rem;
    color: var(--primary-dark);
}

.markdown-content p {
    margin-bottom: 1.2em;
}

.markdown-content strong {
    color: var(--primary-dark);
    font-weight: 700;
    background: linear-gradient(120deg, transparent 0%, transparent 100%, rgba(var(--primary-hue), 85%, 65%, 0.15) 0%);
    background-repeat: no-repeat;
    background-size: 100% 40%;
    background-position: 0 88%;
    padding: 0 2px;
}

/* Interactive Words */
.english-word {
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    position: relative;
    padding: 0 1px;
}

.english-word:hover {
    color: var(--primary-dark);
    background: rgba(var(--primary-hue), 85%, 65%, 0.15);
}

.english-word.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 4px rgba(var(--primary-hue), 80%, 60%, 0.3);
}

/* Translation Popup */
.translation-popup {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.2);
    padding: 16px;
    z-index: 1000;
    width: 320px;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.translation-item {
    padding: 10px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary-color);
}

/* Paragraph Translation Styling */
.paragraph-translation {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 12px 16px;
    margin: 8px 0 24px 0;
    color: #4a5568;
    font-size: 0.95em;
    border-radius: 0 8px 8px 0;
    position: relative;
    line-height: 1.7;
    animation: fadeIn 0.5s ease-out;
}

.paragraph-translation::before {
    content: '译文';
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 6px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Grammar Analysis Button & Container */
.translation-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 8px 0 24px 0;
}



.paragraph-translation.with-grammar {
    margin: 0;
    flex: 1;
}

/* Grammar Highlighting Classes */
.gh-subject {
    background-color: rgba(66, 153, 225, 0.25);
    /* Blue - 主语 */
    border-bottom: 2px solid #4299e1;
    padding: 0 2px;
    border-radius: 3px;
}

.gh-predicate {
    background-color: rgba(245, 101, 101, 0.25);
    /* Red - 谓语 */
    border-bottom: 2px solid #f56565;
    padding: 0 2px;
    border-radius: 3px;
}

.gh-object {
    background-color: rgba(72, 187, 120, 0.25);
    /* Green - 宾语 */
    border-bottom: 2px solid #48bb78;
    padding: 0 2px;
    border-radius: 3px;
}

.gh-predicative {
    background-color: rgba(159, 122, 234, 0.25);
    /* Purple - 表语 */
    border-bottom: 2px solid #9f7aea;
    padding: 0 2px;
    border-radius: 3px;
}

.gh-attributive {
    background-color: rgba(237, 137, 54, 0.25);
    /* Orange - 定语 */
    border-bottom: 2px solid #ed8936;
    padding: 0 2px;
    border-radius: 3px;
}

.gh-adverbial {
    background-color: rgba(56, 178, 172, 0.25);
    /* Teal - 状语 */
    border-bottom: 2px solid #38b2ac;
    padding: 0 2px;
    border-radius: 3px;
}

.gh-conjunction {
    background-color: rgba(160, 174, 192, 0.2);
    /* Gray - 连词/功能词 */
    border-bottom: 1px dashed #a0aec0;
    padding: 0 2px;
    border-radius: 3px;
}

.gh-other {
    background-color: rgba(128, 128, 128, 0.15);
    /* Light gray - 其他 */
    padding: 0 2px;
    border-radius: 3px;
}

/* 旧类名兼容 */
.gh-clause {
    background-color: rgba(160, 174, 192, 0.2);
    border: 1px dashed #a0aec0;
    padding: 0 2px;
    border-radius: 3px;
}

.gh-modifier {
    background-color: rgba(237, 137, 54, 0.2);
    border-bottom: 2px dotted #ed8936;
    padding: 0 2px;
    border-radius: 3px;
}

/* Tooltip for grammar parts */
.english-word[data-grammar-type]:hover::after {
    content: attr(data-grammar-type);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 100;
    pointer-events: none;
}

/* Vocabulary Section */
#vocabularyContainer h3 {
    margin-bottom: 20px;
    color: var(--text-main);
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 10px;
}

.vocabulary-two-column {
    display: flex;
    gap: 24px;
}

@media (max-width: 768px) {
    .vocabulary-two-column {
        flex-direction: column;
    }
}

/* Search FAB */
.search-fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    font-size: 1.5rem;
    border: none;
    box-shadow: 0 8px 20px rgba(100, 100, 255, 0.3);
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-fab:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 12px 25px rgba(100, 100, 255, 0.4);
}

/* Search Panel */
.search-panel {
    position: fixed;
    z-index: 1001;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid #eef0f5;
    padding: 16px;
    width: 90%;
    max-width: 500px;
    bottom: 100px;
    /* Position above FAB */
    top: auto;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
}

.search-panel.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: all;
}

/* Search Highlights */
.search-hit {
    background-color: #ffe066;
    color: #000;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.search-hit-active {
    background-color: #ff922b;
    color: white;
    box-shadow: 0 0 0 2px rgba(255, 146, 43, 0.4);
    font-weight: bold;
}

/* Loading Spinner */
.loading {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid white;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 10px 10px 80px 10px;
    }

    .header h1 {
        font-size: 1.8rem;
    }

    .header-controls {
        flex-direction: column;
        gap: 15px;
    }

    .upload-area {
        padding: 24px 16px;
    }

    .btn {
        width: 100%;
        margin: 5px 0;
    }

    .settings-row {
        flex-direction: column;
    }
}

/* Update Badge */
.update-badge {
    text-align: center;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    margin: 10px auto;
    display: inline-block;
    border: 1px solid var(--glass-border);
}

.update-badge-container {
    text-align: center;
    width: 100%;
}
/* Modern Vocabulary Cards Redesign */
.vocabulary-section {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 10px 0;
}

.vocabulary-group {
    width: 100%;
}

.vocabulary-group-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.03);
}

.vocabulary-group-title i {
    font-style: normal;
    font-size: 1.4rem;
}

.vocabulary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.vocabulary-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    position: relative;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Accent top border */
.vocabulary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent-color));
    opacity: 0.7;
    transition: opacity 0.3s;
}

.vocabulary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--primary-light);
}

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

.vocabulary-term {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.vocabulary-meaning {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex-grow: 1;
}

/* Empty State */
.vocabulary-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background: rgba(248, 250, 252, 0.5);
    border-radius: 16px;
    border: 2px dashed rgba(226, 232, 240, 0.8);
    color: var(--text-secondary);
    font-style: italic;
}

/* Phrase specific styling overrides if needed */
.vocabulary-card.phrase-card::before {
    background: linear-gradient(90deg, var(--accent-color), #f72585);
}

.vocabulary-card.phrase-card .vocabulary-term {
    color: #764ba2;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .vocabulary-grid {
        grid-template-columns: 1fr;
    }
}
