/* Variables */
:root {
    --primary-color: #6B46C1;
    --primary-dark: #5A3AA3;
    --primary-light: #7C52D8;
    --success-color: #48BB78;
    --error-color: #F56565;
    --warning-color: #ECC94B;
    --text-color: #2D3748;
    --text-light: #718096;
    --bg-color: #F7FAFC;
    --border-color: #E2E8F0;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s ease;
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --text-primary: #2D3748;
    --text-secondary: #4A5568;
    --white: #ffffff;
    --container-padding: 1rem;
    --border-radius: 8px;
}

/* Loading overlay */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

#loading-overlay.loaded {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(107, 70, 193, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
    color: var(--text-primary);
    min-height: 100vh;
}

/* Animations */
@keyframes moveDots {
    0% { background-position: 0 0, center, 0 0; }
    100% { background-position: 40px 40px, center, 0 0; }
}

@keyframes glowLight {
    0% { background-position: 0 0, -50% -50%, 0 0; }
    100% { background-position: 40px 40px, 150% 150%, 0 0; }
}

/* Main Container */
.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--container-padding);
    box-sizing: border-box;
}

.lightning-emoji {
    text-align: center;
    font-size: 6rem;
    margin: 3rem 0 1rem;
    line-height: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 2rem;
    line-height: 1.2;
    text-align: center;
}

/* Form Layout */
.sentence-input {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.center-text {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0.2rem 0;
}

.select-container {
    width: 100%;
    max-width: 300px;
    margin: 0 auto 0.5rem auto;
}

.theme-input {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.content-input {
    width: 100%;
    margin: 0.5rem auto;
}

/* Generator Form */
.generator-form {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    margin: 0 auto 1.5rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    max-width: 600px;
}

.input-group {
    width: 100%;
    margin-bottom: 0.1rem;
}

.input-group label {
    display: block;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.input-help {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0.5rem 0;
}

/* Form Controls */
.input-styled {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.2s ease;
    background: var(--white);
    box-sizing: border-box;
}

.input-styled:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.1);
    outline: none;
}

.select-styled {
    width: 100%;
    max-width: 300px;
    padding: 0.875rem 2.5rem 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.2s ease;
    background: var(--white);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%234A5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1em;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    box-sizing: border-box;
}

.select-styled:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.1);
    outline: none;
}

.textarea-styled {
    width: 100%;
    min-height: 120px;
    resize: vertical;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.2s ease;
    background: var(--white);
    font-family: inherit;
    box-sizing: border-box;
}

.textarea-styled:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.1);
    outline: none;
}

/* Form Actions */
.form-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1.2rem;
    min-height: 120px;
    position: relative;
}

.status-container {
    min-height: 0;
    margin-bottom: 0;
    width: 100%;
    position: relative;
    display: none;
    justify-content: center;
    align-items: center;
    overflow: visible;
    transition: all 0.4s ease-out;
}

.status-container.active {
    display: flex;
    margin-bottom: 1rem;
    min-height: 60px;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: expandVerticalBounce 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes expandVertical {
    0% {
        max-height: 0;
        opacity: 0;
        transform: scaleY(0);
        margin-bottom: 0;
    }
    50% {
        opacity: 0.5;
        transform: scaleY(0.5);
    }
    100% {
        max-height: 200px;
        opacity: 1;
        transform: scaleY(1);
        margin-bottom: 1rem;
    }
}

@keyframes expandVerticalBounce {
    0% {
        max-height: 0;
        opacity: 0;
        transform: scaleY(0) scaleX(0.8);
        margin-bottom: 0;
    }
    60% {
        max-height: 200px;
        opacity: 1;
        transform: scaleY(1.1) scaleX(1.05);
        margin-bottom: 1rem;
    }
    80% {
        transform: scaleY(0.95) scaleX(0.98);
    }
    100% {
        max-height: 200px;
        opacity: 1;
        transform: scaleY(1) scaleX(1);
        margin-bottom: 1rem;
    }
}

.cooking-status, .success-status {
    position: absolute;
    font-size: 0.875rem;
    text-align: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: normal;
    left: 0;
    right: 0;
    line-height: 1.4;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.cooking-status {
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.cooking-main-text {
    white-space: nowrap;
    font-weight: 500;
    color: var(--text-secondary);
    display: block;
    text-align: center;
    overflow: visible;
}

.timer-text {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 400;
    opacity: 0.8;
    white-space: nowrap;
    min-width: max-content;
    margin-top: 0.5rem;
    text-align: center;
    overflow: visible;
}

#timer {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.8rem;
}

.success-status {
    color: var(--success-color);
    font-weight: 500;
}

.cooking-status.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.success-status.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.btn-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    min-height: 48px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 300px;
    padding: 0.875rem 1rem;
    background: linear-gradient(135deg, #0EA5E9, #7C3AED, #EC4899);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-width: 180px;
    transform-origin: center;
    white-space: nowrap;
}

.btn-primary.generating {
    animation: rotate 1.2s ease-in-out infinite;
}

.btn-primary .btn-text {
    transition: opacity 0.3s ease;
}

.btn-primary .btn-icon {
    font-size: 1.2rem;
    transition: all 0.3s ease;
    margin-left: 8px;
    display: inline-block;
    vertical-align: middle;
}

.btn-primary.generating .btn-text {
    opacity: 1;
}

.btn-primary.generating .btn-icon {
    opacity: 1;
    animation: iconPulseStrong 1s infinite;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 70, 193, 0.3);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Generation Complete */
.generation-complete {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.generation-complete.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.generation-complete .btn-primary {
    padding: 0.875rem 2rem 0.875rem 1.5rem;
    position: relative;
    font-size: 0.95rem;
    min-width: 180px;
    white-space: nowrap;
}

.generation-complete .btn-primary::after {
    content: '→';
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.generation-complete .btn-primary:hover::after {
    transform: translate(5px, -50%);
}

#generateBtn {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#generateBtn.hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

/* Animations */
@keyframes rotate {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-3deg);
    }
    75% {
        transform: rotate(3deg);
    }
}

@keyframes iconPulseStrong {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.3);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

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

/* Content Tabs Styles */
.content-tabs {
    display: flex;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.tab-button {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.tab-button:hover {
    color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.05);
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.1);
}

.tab-content {
    position: relative;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-panel.active {
    display: block;
}

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

/* Upload Notice */
.upload-notice {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    display: block;
    font-style: italic;
    opacity: 0.8;
}

/* Public Toggle Styles - Ultra-discret */
.visibility-toggle {
    margin: 0.25rem 0 0.5rem 0;
    padding: 0;
    background: transparent;
    border: none;
}

.toggle-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    font-weight: 400;
    color: #999;
    font-size: 0.75rem;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.toggle-label:hover {
    background: rgba(0,0,0,0.03);
    color: #666;
}

.toggle-input {
    display: none;
}

.toggle-slider {
    width: 28px;
    height: 16px;
    background: #ddd;
    border-radius: 16px;
    position: relative;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    top: 2px;
    left: 2px;
    transition: all 0.25s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.toggle-input:checked + .toggle-slider {
    background: #28a745;
}

.toggle-input:checked + .toggle-slider::before {
    transform: translateX(12px);
}

.toggle-text {
    font-size: 0.75rem;
    user-select: none;
}

.toggle-help {
    display: none;
}

/* Toggle désactivé pendant la génération */
.visibility-toggle.disabled {
    opacity: 0.5;
    pointer-events: none;
    user-select: none;
}

.visibility-toggle.disabled .toggle-label {
    cursor: not-allowed;
    color: #ccc;
}

.visibility-toggle.disabled .toggle-slider {
    background: #f5f5f5;
    border-color: #e0e0e0;
}

.visibility-toggle.disabled .toggle-input:checked + .toggle-slider {
    background: #a8d4a8;
}

/* Upload Zone Styles */
.upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    background: var(--bg-color);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.upload-zone:hover {
    border-color: var(--primary-color);
    background: rgba(107, 70, 193, 0.05);
}

.upload-zone.drag-over {
    border-color: var(--primary-color);
    background: rgba(107, 70, 193, 0.1);
    transform: scale(1.02);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.upload-icon {
    font-size: 2rem;
    opacity: 0.7;
}

.upload-text {
    color: var(--text-secondary);
    line-height: 1.4;
}

.upload-text strong {
    color: var(--text-primary);
    font-size: 1.1rem;
}

.upload-text span {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Progress Bar */
.upload-progress {
    display: none;
    margin-top: 1rem;
}

.upload-progress.visible {
    display: block;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.progress-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: center;
}

/* Upload Status */
.upload-status {
    margin-top: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    display: none;
}

.upload-status.visible {
    display: block;
}

.upload-status.success {
    background: rgba(72, 187, 120, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(72, 187, 120, 0.2);
}

.upload-status.error {
    background: rgba(245, 101, 101, 0.1);
    color: var(--error-color);
    border: 1px solid rgba(245, 101, 101, 0.2);
}

.upload-status.warning {
    background: rgba(236, 201, 75, 0.1);
    color: var(--warning-color);
    border: 1px solid rgba(236, 201, 75, 0.2);
}

.upload-status .status-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.upload-status .status-details {
    font-size: 0.8rem;
    opacity: 0.9;
    line-height: 1.6;
}

.upload-status .status-details strong {
    font-weight: 600;
    color: inherit;
}

.upload-status .status-details ul {
    margin: 0.5rem 0;
    padding-left: 1.25rem;
}

.upload-status .status-details li {
    margin: 0.25rem 0;
}

.upload-status .status-details br {
    margin-bottom: 0.25rem;
}

/* Text Preview Container */
.text-preview-container {
    display: none;
    margin-top: 1rem;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    animation: slideDown 0.3s ease;
}

.text-preview-container.visible {
    display: block;
}

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

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.05), rgba(159, 122, 234, 0.05));
    border-bottom: 1px solid var(--border-color);
}

.preview-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.preview-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    line-height: 1;
}

.preview-close:hover {
    background: rgba(107, 70, 193, 0.1);
    color: var(--primary-color);
}

.preview-stats {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(107, 70, 193, 0.03);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.stat-item strong {
    color: var(--primary-color);
    font-weight: 600;
}

.stat-divider {
    color: var(--border-color);
}

.preview-content {
    padding: 1rem;
    max-height: 300px;
    overflow-y: auto;
    font-family: 'Courier New', Consolas, Monaco, monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--white);
}

.preview-content::-webkit-scrollbar {
    width: 8px;
}

.preview-content::-webkit-scrollbar-track {
    background: var(--bg-color);
    border-radius: 4px;
}

.preview-content::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.preview-content::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

.preview-placeholder {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 2rem 1rem;
}

.preview-content pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: inherit;
}

.preview-footer {
    padding: 0.5rem 1rem;
    background: rgba(107, 70, 193, 0.03);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.preview-footer small {
    color: var(--text-light);
    font-size: 0.75rem;
}

/* File Info Display */
.file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: rgba(107, 70, 193, 0.05);
    border: 1px solid rgba(107, 70, 193, 0.2);
    border-radius: var(--radius-sm);
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.file-info .file-details {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.file-info .file-icon {
    font-size: 1.2rem;
}

.file-info .file-name {
    font-weight: 500;
    color: var(--text-primary);
}

.file-info .file-size {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.file-info .remove-file {
    background: none;
    border: none;
    color: var(--error-color);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.file-info .remove-file:hover {
    background: rgba(245, 101, 101, 0.1);
}

/* URL Input Styles */
.url-input-container {
    width: 100%;
}

.url-input-wrapper {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.url-input {
    flex: 1;
    min-width: 0;
}

.btn-fetch-url {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-fetch-url:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-fetch-url:disabled {
    background: #CBD5E0;
    cursor: not-allowed;
    transform: none;
}

.url-help {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0 0 1rem 0;
}

/* URL Progress Bar */
.url-progress {
    display: none;
    margin-top: 1rem;
}

.url-progress.visible {
    display: block;
}

/* URL Status Messages */
.url-status {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--border-radius);
    border-left: 4px solid;
}

.url-status.visible {
    display: block;
}

.url-status.success {
    background: rgba(72, 187, 120, 0.1);
    border-color: var(--success-color);
    color: #2F855A;
}

.url-status.error {
    background: rgba(245, 101, 101, 0.1);
    border-color: var(--error-color);
    color: #C53030;
}

.url-status.warning {
    background: rgba(236, 201, 75, 0.1);
    border-color: var(--warning-color);
    color: #975A16;
}

.url-status .status-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.url-status .status-details {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* URL Preview Container */
#urlPreviewContainer {
    margin-top: 1.5rem;
}

#urlPreviewContainer.visible {
    display: block;
}

/* Responsive URL Styles */
@media (max-width: 768px) {
    .url-input-wrapper {
        flex-direction: column;
    }
    
    .btn-fetch-url {
        width: 100%;
        justify-content: center;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    .container {
        padding: 1rem;
        overflow-x: hidden;
    }

    .generator-form {
        padding: 1.5rem;
        margin: 0 1rem 1.5rem;
        width: calc(100% - 2rem);
        box-sizing: border-box;
    }

    .input-styled,
    .select-styled,
    .textarea-styled {
        font-size: 0.9rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .btn-primary {
        width: 100%;
        justify-content: center;
    }
    
    /* Status container responsive */
    .status-container.active {
        max-width: 100%;
        padding: 0 0.5rem;
    }
    
    .cooking-main-text {
        font-size: 0.85rem;
        white-space: normal;
        text-align: center;
        line-height: 1.3;
    }
    
    .timer-text {
        font-size: 0.7rem;
        white-space: normal;
        text-align: center;
        line-height: 1.3;
    }
} 