/* ========== CSS VARIABLES ========== */
:root {
    /* Colori Primari */
    --primary: #000;
    --primary-dark: #5568d3;
    --primary-light: #7e8ef1;
    --secondary: #383838;

    /* Colori Neutri */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #111827;

    /* Colori Funzionali */
    --success: #22c55e;
    --warning: #eab308;
    --error: #ef4444;
    --info: #3b82f6;

    /* Font Families */
    --font-primary: "Montserrat", sans-serif;
    --font-heading: "Atkinson Hyperlegible", sans-serif;

    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: var(--font-primary);
    background: var(--gray-100);
    color: var(--gray-900);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

/* ========== HEADER EDGE-TO-EDGE ========== */
/* ========== HEADER EDGE-TO-EDGE ========== */
.main-header {
    background: var(--white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-4) var(--space-6);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    cursor: pointer;
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.9;
}

a.logo-link {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
}

.logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-info {
    display: none;
    flex-direction: column;
    gap: var(--space-1);
}

.logo-name {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.logo-tagline {
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--gray-600);
    line-height: 1.3;
    max-width: 280px;
}

/* Hamburger Menu */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 10px;
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Navigation Menu */
.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    padding-top: 80px;
}

.nav-menu.active {
    right: 0;
}

.nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    border-bottom: 1px solid var(--gray-100);
}

.nav-link {
    display: block;
    padding: var(--space-5) var(--space-6);
    color: var(--gray-700);
    text-decoration: none;
    font-size: var(--text-base);
    font-weight: 500;
    transition: all 0.3s;
}

.nav-link:hover {
    background: var(--gray-50);
    color: var(--primary);
    padding-left: calc(var(--space-6) + var(--space-2));
}

.nav-link.active {
    background: var(--gray-100);
    color: var(--primary);
    font-weight: 600;
}

/* ========== HERO SECTION ========== */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: var(--space-10) var(--space-6) var(--space-12);
    text-align: center;
    color: var(--white);
    box-shadow: var(--shadow-xl);
}

/* Header CTA dentro Hero */
.header-cta {
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-6);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.header-cta h1 {
    font-size: var(--text-3xl);
    font-weight: 700;
    margin-bottom: var(--space-3);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.header-cta .cta-subtitle {
    font-size: var(--text-lg);
    opacity: 0.9;
    font-weight: 500;
}

/* Info corso */
.hero-section>h1 {
    font-size: var(--text-2xl);
    font-weight: 600;
    margin-bottom: var(--space-3);
    opacity: 0.95;
}

.hero-section>h2 {
    font-size: var(--text-xl);
    font-weight: 500;
    margin-bottom: var(--space-2);
    opacity: 0.9;
}

.hero-section>h3 {
    font-size: var(--text-base);
    font-weight: 400;
    margin-bottom: var(--space-6);
    opacity: 0.85;
    font-style: italic;
}

.hero-section>.subtitle {
    font-size: var(--text-base);
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}

/* ========== CONTAINER ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-6);
}

main {
    background: var(--gray-50);
}

/* ========== INPUT SECTION ========== */
.input-section {
    background: var(--white);
    padding: var(--space-8);
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--space-8);
}

/* Filter stili */
.filter-options {
    margin: var(--space-4) 0;
    padding: var(--space-4);
    background: var(--gray-50);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    cursor: pointer;
    margin-bottom: var(--space-3);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.slider-container input[type="range"] {
    flex: 1;
    max-width: 200px;
}

#lengthValue {
    font-weight: 700;
    color: var(--primary);
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--space-3);
    color: var(--gray-700);
    font-size: var(--text-base);
}

textarea {
    width: 100%;
    padding: var(--space-4);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    font-family: var(--font-primary);
    resize: vertical;
    transition: all 0.3s;
}

textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.button-group {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-4);
    flex-wrap: wrap;
}

.btn {
    padding: var(--space-3) var(--space-6);
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-primary);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-200);
}

/* ========== LOADING ========== */
.loading {
    text-align: center;
    padding: var(--space-10);
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--gray-100);
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--space-5);
}

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

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

/* ========== RESULTS ========== */
.results {
    animation: fadeIn 0.5s;
}

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

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

.card {
    background: var(--white);
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-5);
}

.card h2 {
    margin-bottom: var(--space-5);
    color: var(--gray-100);
}

.card h3 {
    margin-bottom: var(--space-5);
    color: var(--gray-900);
}

/* Score Card */
.score-card {
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
}

.score-card h3 {
    color: var(--white);
}

.score-display {
    padding: var(--space-5) 0;
}

.score-value {
    font-size: var(--text-4xl);
    font-weight: bold;
    margin-bottom: var(--space-3);
}

.score-category {
    font-size: var(--text-2xl);
    opacity: 0.9;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}

.stat-card {
    background: var(--white);
    padding: var(--space-5);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.stat-icon {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-3);
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--gray-600);
    margin-bottom: var(--space-2);
    display: block;
}

.stat-value {
    font-size: var(--text-2xl);
    font-weight: bold;
    color: var(--primary);
}

/* Gulpease */
.metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-5);
}

.metric-value {
    font-size: var(--text-3xl);
    font-weight: bold;
    color: var(--primary);
}

.metric-description {
    font-size: var(--text-lg);
    color: var(--gray-600);
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-3);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--error), var(--warning), var(--success));
    transition: width 0.8s ease;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-sm);
    color: var(--gray-600);
}

/* Sentence Distribution */
.sentence-dist {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.dist-item {
    display: grid;
    grid-template-columns: 150px 1fr 50px;
    gap: var(--space-4);
    align-items: center;
}

.dist-label {
    font-size: var(--text-sm);
    color: var(--gray-600);
}

.dist-bar {
    height: 25px;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.dist-fill {
    height: 100%;
    transition: width 0.8s ease;
}

.dist-short {
    background: var(--success);
}

.dist-medium {
    background: var(--warning);
}

.dist-long {
    background: var(--error);
}

.dist-value {
    text-align: right;
    font-weight: bold;
    color: var(--primary);
}

/* Word List */
.word-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.word-item {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

.word-text {
    font-weight: 600;
    color: var(--primary);
}

.word-count {
    background: var(--primary);
    color: var(--white);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
}

/* Footer */
footer {
    text-align: center;
    color: var(--gray-600);
    margin-top: var(--space-10);
    padding: var(--space-6);
    font-size: var(--text-sm);
}

/* Utility */
.hidden {
    display: none;
}

@media (min-width: 640px) {
    .logo-info {
        display: flex;
    }

    .logo-name {
        font-size: var(--text-sm);
    }

    .logo-tagline {
        font-size: 0.7rem;
        max-width: 180px;
    }
}

/* ========== RESPONSIVE ========== */
@media (min-width: 768px) {

    /* Logo info visibile */
    .logo-info {
        display: flex;
    }

    .logo-name {
        font-size: var(--text-lg);
    }

    .logo-tagline {
        font-size: var(--text-sm);
    }

    /* Hero più grande */
    .hero-section {
        padding: var(--space-12) var(--space-6) calc(var(--space-12) + var(--space-6));
    }

    .header-cta h1 {
        font-size: var(--text-4xl);
    }

    .header-cta .cta-subtitle {
        font-size: var(--text-xl);
    }

    .hero-section>h1 {
        font-size: var(--text-3xl);
    }

    .hero-section>h2 {
        font-size: var(--text-2xl);
    }

    .hero-section>h3 {
        font-size: var(--text-lg);
    }

    .hero-section>.subtitle {
        font-size: var(--text-lg);
    }

    .hamburger {
        display: none;
    }

    .nav-menu {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        box-shadow: none;
        padding: 0;
    }

    .nav-menu ul {
        display: flex;
        gap: var(--space-2);
    }

    .nav-menu li {
        border: none;
    }

    .nav-link {
        padding: var(--space-3) var(--space-4);
        border-radius: var(--radius-md);
        font-size: var(--text-base);
    }

    .nav-link:hover {
        background: var(--gray-100);
        padding-left: var(--space-4);
    }

    .dist-item {
        grid-template-columns: 180px 1fr 60px;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: var(--space-8) var(--space-4);
    }

    .hero-section h1 {
        font-size: var(--text-2xl);
    }

    .hero-section h2 {
        font-size: var(--text-lg);
    }

    .dist-item {
        grid-template-columns: 1fr;
        gap: var(--space-2);
    }

    .dist-value {
        text-align: left;
    }

    .button-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

/* ========== SEMANTIC ANALYSIS STYLES ========== */
.semantic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-4);
}

.semantic-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-3);
    background: var(--gray-50);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary);
}

.semantic-label {
    font-size: var(--text-sm);
    color: var(--gray-600);
    font-weight: 500;
}

.semantic-value {
    font-size: var(--text-lg);
    color: var(--gray-900);
    font-weight: 600;
}

/* ========== SUGGESTIONS & CRITICAL POINTS ========== */
.suggestions-list,
.critical-list {
    list-style: none;
    padding: 0;
    margin: var(--space-4) 0 0 0;
}

.suggestions-list li,
.critical-list li {
    padding: var(--space-3) var(--space-4);
    margin-bottom: var(--space-2);
    background: var(--gray-50);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--info);
    line-height: 1.6;
}

.critical-list li {
    border-left-color: var(--warning);
}

/* ========== COMPARISON GRID (SIDE BY SIDE) ========== */
.comparison-summary {
    margin-bottom: var(--space-8);
}

.summary-card {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    color: var(--white);
}

.summary-card h2 {
    color: var(--white);
    margin-bottom: var(--space-4);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-3);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
}

.summary-label {
    font-size: var(--text-sm);
    opacity: 0.9;
}

.summary-value {
    font-size: var(--text-xl);
    font-weight: 700;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
    margin-top: var(--space-4);
}

.comparison-column {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.column-header {
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    text-align: center;
    color: var(--white);
}

.column-header h2 {
    color: var(--white);
    margin-bottom: var(--space-2);
    font-size: var(--text-2xl);
}

.column-header p {
    opacity: 0.9;
    font-size: var(--text-sm);
}

.nltk-header {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.gemini-header {
    background: linear-gradient(135deg, #10b981, #059669);
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--gray-200);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-row span:first-child {
    color: var(--gray-600);
    font-size: var(--text-sm);
}

.stat-row span:last-child {
    color: var(--gray-900);
    font-weight: 600;
    font-size: var(--text-base);
}

/* ========== RESPONSIVE COMPARISON ========== */
@media (max-width: 1024px) {
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .comparison-column {
        border-bottom: 2px solid var(--gray-200);
        padding-bottom: var(--space-6);
    }

    .comparison-column:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}

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

    .summary-grid {
        grid-template-columns: 1fr;
    }

    .column-header h2 {
        font-size: var(--text-xl);
    }
}/* ========== AI SETTINGS CONTROLS ========== */

.ai-settings-section {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

/* Preset Modes */
.preset-modes {
    margin-bottom: 20px;
}

.section-label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
    font-size: 1rem;
}

.mode-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.mode-option {
    cursor: pointer;
}

.mode-option input[type="radio"] {
    display: none;
}

.mode-card {
    display: flex;
    flex-direction: column;
    padding: 15px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.mode-card strong {
    display: block;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.mode-card small {
    color: #666;
    font-size: 0.85rem;
}

.mode-option input[type="radio"]:checked + .mode-card {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea15, #764ba215);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.mode-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

/* Advanced Toggle Button */
.advanced-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    color: #555;
}

.advanced-toggle:hover {
    background: #f5f5f5;
    border-color: #667eea;
}

.advanced-toggle.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.toggle-icon {
    font-size: 1.1rem;
}

.toggle-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.advanced-toggle.active .toggle-arrow {
    transform: rotate(180deg);
}

/* Advanced Controls */
.advanced-controls {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px dashed #ddd;
    animation: slideDown 0.3s ease;
}

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

.info-box {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.info-box p {
    margin: 0;
    color: #1976d2;
    font-size: 0.9rem;
}

/* Control Groups */
.control-group {
    margin-bottom: 20px;
}

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

.control-header label {
    font-weight: 600;
    color: #444;
    font-size: 0.9rem;
}

.control-value {
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 50px;
    text-align: center;
}

/* Slider Styling */
.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: #ddd;
    outline: none;
    transition: background 0.3s;
}

.slider:hover {
    background: #ccc;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.slider::-webkit-slider-thumb:hover {
    background: #5568d3;
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(102, 126, 234, 0.4);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.slider::-moz-range-thumb:hover {
    background: #5568d3;
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(102, 126, 234, 0.4);
}

.control-description {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #666;
}

.desc-icon {
    font-size: 1.1rem;
}

/* Reset Button */
.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    margin-top: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .mode-options {
        grid-template-columns: 1fr;
    }
    
    .control-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}
