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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(
        135deg,
        #ff595e 0%,
        #ffca3a 20%,
        #8ac926 40%,
        #1982c4 60%,
        #6a4c93 80%,
        #ff595e 100%
    );
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
}

h1 {
    text-align: center;
    color: #3a3a3a;
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.category {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    border-left: 6px solid #ff595e;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7);
}

.category h2 {
    color: #3a3a3a;
    font-size: 1.5em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(
        90deg,
        #ff595e,
        #ffca3a,
        #8ac926,
        #1982c4,
        #6a4c93
    );
    border-image-slice: 1;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #555;
    font-size: 0.95em;
}

.help-text {
    display: grid;
    gap: 6px;
    margin-top: 6px;
    margin-bottom: 10px;
    font-size: 0.85em;
    color: #666;
    line-height: 1.4;
}

.help-text span {
    background: #f1f5f9;
    border-radius: 6px;
    padding: 6px 8px;
}

select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    background: white;
    color: #333;
    transition: all 0.3s ease;
    cursor: pointer;
}

select:hover {
    border-color: #6a4c93;
}

select:focus {
    outline: none;
    border-color: #6a4c93;
    box-shadow: 0 0 0 3px rgba(106, 76, 147, 0.2);
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    padding: 10px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: normal;
}

.checkbox-group label:hover {
    border-color: #6a4c93;
    background: #f7f0ff;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #ff595e;
}

.checkbox-group label:has(input[type="checkbox"]:checked) {
    border-color: #6a4c93;
    background: #efe7ff;
    font-weight: 600;
}

.is-hidden {
    display: none;
}

.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
}

button {
    padding: 15px 30px;
    font-size: 1.1em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    min-width: 150px;
}

.btn-primary {
    background: linear-gradient(
        135deg,
        #ff595e 0%,
        #ffca3a 30%,
        #8ac926 60%,
        #1982c4 100%
    );
    color: white;
    box-shadow: 0 4px 15px rgba(25, 130, 196, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(106, 76, 147, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #6a4c93;
    color: white;
}

.btn-secondary:hover {
    background: #5b3f83;
    transform: translateY(-2px);
}

.output-section {
    margin-top: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 15px;
    border-left: 6px solid #8ac926;
}

.output-section h2 {
    color: #2f7a1b;
    margin-bottom: 15px;
    font-size: 1.3em;
}

#outputPrompt,
#outputPromptEn {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    font-family: 'Courier New', monospace;
    resize: vertical;
    background: white;
    color: #333;
    line-height: 1.6;
}

#outputPrompt:focus,
#outputPromptEn:focus {
    outline: none;
    border-color: #8ac926;
    box-shadow: 0 0 0 3px rgba(138, 201, 38, 0.15);
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 2em;
    }

    .category {
        padding: 15px;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }

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

    button {
        width: 100%;
    }
}

textarea::-webkit-scrollbar {
    width: 10px;
}

textarea::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

textarea::-webkit-scrollbar-thumb {
    background: #6a4c93;
    border-radius: 5px;
}

textarea::-webkit-scrollbar-thumb:hover {
    background: #5b3f83;
}
