.container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

textarea {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: vertical;
    font-size: 16px;
    white-space: pre-wrap;
    line-height: 1.5;
}

textarea.output-textarea.loading {
    background-color: #f9f9f9;
    color: #666;
    font-style: italic;
}

select {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    appearance: none;
    background: url('data:image/svg+xml;utf8,<svg fill="%23000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 10px center;
}

.convert-btn {
    width: 100%;
    height: 50px;
    background-color: var(--theme-palette-color-1);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    margin: 10px 0;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.convert-btn:hover {
    background-color: var(--theme-palette-color-2);
}

.convert-btn.loading {
    background-color: var(--theme-palette-color-1) !important;
    cursor: not-allowed;
    color: transparent !important;
}

.convert-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: loading-spinner 0.8s linear infinite;
}

@keyframes loading-spinner {
    to {
        transform: rotate(360deg);
    }
}

.spiciness {
    margin: 20px 0;
}

.spiciness-level-display {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.spiciness-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: #e0e0e0;
    outline: none;
    margin: 10px 0;
}

/* Slider thumb */
.spiciness-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--theme-palette-color-2);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.spiciness-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--theme-palette-color-2);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    border: none;
}

/* Slider track */
.spiciness-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
}

.spiciness-slider::-moz-range-track {
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
}

/* Active state */
.spiciness-slider:active::-webkit-slider-thumb {
    transform: scale(1.1);
}

.spiciness-slider:active::-moz-range-thumb {
    transform: scale(1.1);
}

.note {
    color: #666;
    font-size: 14px;
    margin: 5px 0;
}