/* Telegram Web App Theme Variables */
:root {
    --tg-theme-bg-color: #ffffff;
    --tg-theme-text-color: #000000;
    --tg-theme-hint-color: #999999;
    --tg-theme-link-color: #2481cc;
    --tg-theme-button-color: #2481cc;
    --tg-theme-button-text-color: #ffffff;
    --tg-theme-secondary-bg-color: #f1f1f1;
    --primary: #2481cc;
    --primary-hover: #1a6ba8;
    --secondary: #6c757d;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --light: #f8f9fa;
    --dark: #343a40;
    --border-radius: 8px;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.15);
}

@media (prefers-color-scheme: dark) {
    :root {
        --tg-theme-bg-color: #212121;
        --tg-theme-text-color: #ffffff;
        --tg-theme-hint-color: #707579;
        --tg-theme-secondary-bg-color: #181818;
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--tg-theme-bg-color);
    color: var(--tg-theme-text-color);
    line-height: 1.6;
    padding-bottom: 20px;
    scroll-behavior: smooth;
}

.app-container {
    padding-bottom: 40px;
}

/* Увеличиваем отступ только когда модель выбрана и есть фиксированная кнопка */
.app-container.has-selected-model {
    padding-bottom: 180px;
}

/* Loading Screen */
.loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: var(--tg-theme-bg-color);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--tg-theme-secondary-bg-color);
    border-top-color: var(--tg-theme-button-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Header */
.header {
    background: linear-gradient(135deg, var(--tg-theme-button-color) 0%, #1a6ba8 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}

.header h1 {
    font-size: 24px;
    margin: 0;
}

.user-balance {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
}

.balance-label {
    opacity: 0.9;
}

.balance-value {
    font-weight: 600;
    font-size: 16px;
}

/* Tabs */
.tabs {
    display: flex;
    background-color: var(--tg-theme-secondary-bg-color);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    overflow-x: auto;
}

.tab-btn {
    flex: 1;
    padding: 14px 16px;
    background: none;
    border: none;
    color: var(--tg-theme-hint-color);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.tab-btn.active {
    color: var(--tg-theme-button-color);
    border-bottom-color: var(--tg-theme-button-color);
}

.tab-content {
    padding: 24px;
    animation: fadeIn 0.3s;
}

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

/* Model Selection */
.model-selection h2 {
    margin-bottom: 16px;
    font-size: 20px;
}

.model-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid var(--tg-theme-button-color);
    background: transparent;
    color: var(--tg-theme-button-color);
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn.active {
    background: var(--tg-theme-button-color);
    color: white;
}

.models-grid {
    display: flex;
    flex-direction: row;
    gap: 16px;
    margin-bottom: 32px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    padding-top: 8px;
    /* Скрываем скроллбар, но оставляем функциональность */
    scrollbar-width: thin;
    scrollbar-color: var(--tg-theme-button-color) var(--tg-theme-secondary-bg-color);
    scroll-padding-top: 20px;
    scroll-padding-bottom: 20px;
}

.models-grid::-webkit-scrollbar {
    height: 6px;
}

.models-grid::-webkit-scrollbar-track {
    background: var(--tg-theme-secondary-bg-color);
    border-radius: 3px;
}

.models-grid::-webkit-scrollbar-thumb {
    background: var(--tg-theme-button-color);
    border-radius: 3px;
}

.models-grid::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

.model-card {
    background: var(--tg-theme-secondary-bg-color);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
    text-align: center;
    flex: 0 0 auto;
    min-width: 180px;
    max-width: 180px;
    position: relative;
}

.model-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.model-card.selected {
    border-color: var(--tg-theme-button-color);
    background: rgba(36, 129, 204, 0.1);
    scroll-margin-top: 20px;
    scroll-margin-bottom: 20px;
}

.model-card.featured {
    position: relative;
}

.model-card.featured:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.model-card.featured.selected {
    border-color: var(--tg-theme-button-color);
    background: rgba(36, 129, 204, 0.1);
}

.model-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.model-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.featured-star-corner {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 20px;
    z-index: 10;
    animation: star-pulse 1.5s ease-in-out infinite;
}

@keyframes star-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.9;
    }
}

.model-cost {
    font-size: 13px;
    font-weight: 600;
    color: var(--tg-theme-button-color);
}

/* Generation Form */
.generation-form {
    background: var(--tg-theme-secondary-bg-color);
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
    margin-bottom: 180px;
    position: relative;
    overflow: visible !important;
    min-height: 200px;
}

.generation-form h2 {
    margin-bottom: 16px;
    font-size: 20px;
}

/* Model Description */
.model-description {
    margin-bottom: 24px;
    padding: 16px 20px;
    background: rgba(40, 167, 69, 0.1);
    border: 2px solid rgba(40, 167, 69, 0.4);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.15);
}

.model-description p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--tg-theme-text-color);
}

@media (prefers-color-scheme: dark) {
    .model-description {
        background: rgba(40, 167, 69, 0.15);
        border-color: rgba(40, 167, 69, 0.5);
    }
}

/* Uploaded Image Preview */
.uploaded-image-preview {
    margin-bottom: 20px;
    padding: 15px;
    background: var(--tg-theme-secondary-bg-color);
    border-radius: 10px;
    border: 2px solid rgba(36, 129, 204, 0.2);
    position: relative;
    z-index: 1;
}

.upload-image-section {
    margin-bottom: 20px;
    padding: 15px;
    background: var(--tg-theme-secondary-bg-color);
    border-radius: 10px;
    border: 2px dashed rgba(36, 129, 204, 0.3);
    text-align: center;
}

.uploaded-image-preview h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    color: var(--tg-theme-text-color);
}

.uploaded-image-preview img {
    max-width: 100%;
    max-height: 400px;
    width: auto;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.uploaded-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.uploaded-image-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.uploaded-image-item img {
    max-width: 100%;
    max-height: 200px;
    width: auto;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

.input-mode-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.toggle-btn {
    padding: 8px 16px;
    border: 1px solid rgba(0,0,0,0.1);
    background: var(--tg-theme-bg-color);
    color: var(--tg-theme-text-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.toggle-btn.active {
    background: var(--tg-theme-button-color);
    color: white;
    border-color: var(--tg-theme-button-color);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--tg-theme-text-color);
}

.form-textarea,
.form-input,
.form-select {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: var(--border-radius);
    font-size: 15px;
    background: var(--tg-theme-bg-color);
    color: var(--tg-theme-text-color);
    font-family: inherit;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.field-description {
    font-size: 12px;
    color: var(--tg-theme-hint-color);
    margin-top: 4px;
}

.toggle-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-weight: 600;
    margin-bottom: 8px;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    position: relative;
}

.form-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #d0d0d0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

@media (prefers-color-scheme: dark) {
    .form-slider {
        background: #4a4a4a;
    }
}

.form-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #d0d0d0;
    border: none;
}

@media (prefers-color-scheme: dark) {
    .form-slider::-webkit-slider-runnable-track {
        background: #4a4a4a;
    }
}

.form-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--tg-theme-button-color);
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin-top: -7px;
    position: relative;
    z-index: 1;
}

.form-slider::-moz-range-track {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #d0d0d0;
    border: none;
}

@media (prefers-color-scheme: dark) {
    .form-slider::-moz-range-track {
        background: #4a4a4a;
    }
}

.form-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--tg-theme-button-color);
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.slider-value {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
    color: var(--tg-theme-button-color);
}

/* Parameter Controls */
.param-group {
    margin-bottom: 20px;
}

.param-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.param-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.param-btn {
    padding: 10px 20px;
    border: 1px solid rgba(0,0,0,0.1);
    background: var(--tg-theme-bg-color);
    color: var(--tg-theme-text-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.param-btn:hover {
    background: var(--tg-theme-secondary-bg-color);
    border-color: var(--tg-theme-button-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.param-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    transition: all 0.1s ease;
}

.param-btn.active {
    background: var(--tg-theme-button-color);
    color: white;
    border-color: var(--tg-theme-button-color);
    box-shadow: 0 2px 8px rgba(36, 129, 204, 0.3);
}

.param-btn.active:hover {
    background: var(--primary-hover);
    box-shadow: 0 3px 10px rgba(36, 129, 204, 0.4);
    transform: translateY(-1px);
}

.param-btn.clicked {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

@keyframes buttonPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.97);
    }
    100% {
        transform: scale(1);
    }
}

.param-btn:not(.active):active {
    animation: buttonPulse 0.2s ease;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--tg-theme-button-color);
}

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


/* Form Actions */
.form-actions {
    display: flex !important;
    gap: 12px;
    justify-content: space-between;
    margin-top: 40px !important;
    padding: 24px 0 !important;
    border-top: 2px solid rgba(36, 129, 204, 0.2);
    background: var(--tg-theme-bg-color);
    position: sticky !important;
    bottom: 0 !important;
    z-index: 1000 !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    clear: both;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
}

.form-actions::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to bottom, transparent, var(--tg-theme-secondary-bg-color));
    pointer-events: none;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--tg-theme-button-color);
    color: var(--tg-theme-button-text-color);
}

.btn-primary:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-1px);
}

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

/* Переопределение для кнопки генерации - она управляет своим состоянием */
.btn-generate.btn-primary {
    background: rgba(36, 129, 204, 0.3) !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

.btn-generate.btn-primary:disabled {
    opacity: 1 !important;
}

.btn-secondary {
    background: var(--tg-theme-secondary-bg-color);
    color: var(--tg-theme-text-color);
    border: 1px solid rgba(0,0,0,0.1);
}

.btn-secondary:hover {
    background: rgba(0,0,0,0.05);
}

.btn-generate {
    flex: 1;
    min-width: 200px;
    font-size: 18px;
    padding: 16px 32px;
    font-weight: 700;
    transition: all 0.3s ease;
    /* По умолчанию - затемненное состояние */
    background: rgba(36, 129, 204, 0.3) !important;
    color: rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 2px 6px rgba(36, 129, 204, 0.1);
    cursor: not-allowed;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1001 !important;
    width: 100%;
    box-sizing: border-box;
    margin: 0 !important;
    border: 2px solid rgba(36, 129, 204, 0.3) !important;
    min-height: 56px;
}

/* Активное состояние - когда все поля заполнены */
.btn-generate-active {
    background: var(--tg-theme-button-color);
    color: var(--tg-theme-button-text-color);
    box-shadow: 0 4px 12px rgba(36, 129, 204, 0.3);
    cursor: pointer;
}

.btn-generate-active:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(36, 129, 204, 0.4);
    opacity: 0.95;
}

.btn-generate-active:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(36, 129, 204, 0.3);
}

.btn-generate:disabled {
    opacity: 1;
    cursor: not-allowed;
}

.btn-generate:disabled.btn-generate-active {
    opacity: 0.7;
}

.generate-button-wrapper {
    flex: 1;
    display: flex !important;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    visibility: visible !important;
}

.button-hint {
    font-size: 12px;
    color: var(--tg-theme-hint-color, #999);
    text-align: center;
    margin: 8px 0 0 0;
    padding: 8px 12px;
    background: rgba(255, 193, 7, 0.1);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.generation-hint {
    margin-top: 12px;
    padding: 12px;
    background: rgba(36, 129, 204, 0.1);
    border-radius: var(--border-radius);
    font-size: 14px;
    color: var(--tg-theme-hint-color, #999);
    text-align: center;
    border-left: 3px solid var(--tg-theme-button-color);
}

/* Tasks */
.tasks-container h2 {
    margin-bottom: 16px;
    font-size: 20px;
}

.task-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-card {
    background: var(--tg-theme-secondary-bg-color);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s;
}

.task-card:hover {
    box-shadow: var(--shadow);
}

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

.task-model {
    font-weight: 600;
    font-size: 15px;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-processing {
    background: #d1ecf1;
    color: #0c5460;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

.status-failed {
    background: #f8d7da;
    color: #721c24;
}

.task-prompt {
    font-size: 14px;
    color: var(--tg-theme-hint-color);
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.task-cost {
    font-size: 13px;
    font-weight: 600;
    color: var(--tg-theme-link-color);
    margin-bottom: 12px;
    padding: 6px 0;
}

.task-times {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
    font-size: 12px;
}

.task-time-item {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    color: var(--tg-theme-hint-color);
}

.time-label {
    font-weight: 600;
    color: var(--tg-theme-text-color);
}

.time-value {
    color: var(--tg-theme-text-color);
}

.time-ago {
    color: var(--tg-theme-hint-color);
    font-size: 11px;
}

.task-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--tg-theme-hint-color);
}

.task-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.task-actions .btn-task-action {
    flex: 1;
    padding: 10px 8px;
    font-size: 12px;
    line-height: 1.3;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    word-wrap: break-word;
    white-space: normal;
}

.task-actions .btn-task-action:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--tg-theme-hint-color);
}

/* Responsive */
@media (max-width: 480px) {
    .models-grid {
        gap: 12px;
    }
    
    .model-card {
        min-width: 160px;
        max-width: 160px;
        padding: 12px;
    }
    
    .form-actions {
        flex-direction: column;
        display: flex !important;
        position: sticky !important;
        bottom: 0 !important;
    }
    
    .btn-generate {
        width: 100% !important;
        display: block !important;
        visibility: visible !important;
    }
    
    .btn {
        width: 100%;
    }
    
    .generation-form {
        margin-bottom: 200px;
    }
    
    .uploaded-image-preview img {
        max-height: 300px;
    }
}

/* Fixed Generate Button */
.fixed-generate-button {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--tg-theme-bg-color);
    padding: 16px 24px;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    border-top: 2px solid rgba(36, 129, 204, 0.2);
}

.btn-generate-fixed {
    width: 100%;
    font-size: 18px;
    padding: 16px 32px;
    font-weight: 700;
    transition: all 0.3s ease;
    background: rgba(36, 129, 204, 0.3) !important;
    color: rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 2px 6px rgba(36, 129, 204, 0.1);
    cursor: not-allowed;
    border: 2px solid rgba(36, 129, 204, 0.3) !important;
    min-height: 56px;
    margin-bottom: 8px;
}

.btn-generate-fixed.btn-generate-active {
    background: var(--tg-theme-button-color) !important;
    color: var(--tg-theme-button-text-color) !important;
    box-shadow: 0 4px 12px rgba(36, 129, 204, 0.3);
    cursor: pointer;
    border-color: var(--tg-theme-button-color) !important;
}

.btn-generate-fixed.btn-generate-active:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(36, 129, 204, 0.4);
    opacity: 0.95;
}

.btn-generate-fixed:disabled {
    opacity: 1;
    cursor: not-allowed;
}

.btn-generate-fixed:disabled.btn-generate-active {
    opacity: 0.7;
}

.button-hint-fixed {
    font-size: 11px;
    color: var(--tg-theme-hint-color, #999);
    text-align: center;
    margin: 0;
    padding: 4px 8px;
    background: rgba(255, 193, 7, 0.1);
    border-radius: var(--border-radius);
}

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

::-webkit-scrollbar-track {
    background: var(--tg-theme-secondary-bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--tg-theme-hint-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--tg-theme-button-color);
}
