/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    color: #e0e0e0;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    text-align: center;
    padding: 40px 0;
}

header h1 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #00d9ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: #888;
    font-size: 1.1rem;
}

/* Form Section */
.form-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #ccc;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #00d9ff;
    box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.2);
}

.form-group input::placeholder {
    color: #666;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.preset-description {
    background: rgba(0, 217, 255, 0.1);
    border-left: 3px solid #00d9ff;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 0 8px 8px 0;
    font-size: 14px;
    color: #aaa;
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(90deg, #00d9ff, #00ff88);
    border: none;
    border-radius: 8px;
    color: #000;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 217, 255, 0.4);
}

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

.btn-secondary {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #000;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Progress Section */
.progress-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-section h2 {
    margin-bottom: 20px;
    color: #fff;
}

.progress-log {
    max-height: 400px;
    overflow-y: auto;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 13px;
}

.log-item {
    padding: 10px 12px;
    margin-bottom: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    border-left: 3px solid #444;
}

.log-item .log-icon {
    margin-right: 8px;
}

.log-status { border-left-color: #00d9ff; }
.log-tool_call { border-left-color: #f39c12; }
.log-tool_result { border-left-color: #00ff88; }
.log-thinking { border-left-color: #9b59b6; }
.log-analysis { border-left-color: #e67e22; background: rgba(230, 126, 34, 0.15); }
.log-usage { border-left-color: #3498db; background: rgba(52, 152, 219, 0.1); }
.log-done { border-left-color: #00ff88; background: rgba(0, 255, 136, 0.1); }
.log-error { border-left-color: #e74c3c; background: rgba(231, 76, 60, 0.1); }

/* Analysis content block */
.analysis-content {
    margin-top: 12px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
}

.analysis-content strong {
    color: #f39c12;
}

.analysis-content ul, .analysis-content ol {
    margin: 8px 0;
    padding-left: 20px;
}

.analysis-content li {
    margin: 4px 0;
}

.usage-stats {
    margin-top: 8px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
    font-size: 12px;
}

.usage-stats div {
    background: rgba(0, 0, 0, 0.2);
    padding: 6px 10px;
    border-radius: 4px;
}

.usage-stats strong {
    color: #00d9ff;
}

/* Report styles */
.log-report {
    border-left-color: #9b59b6;
    background: rgba(155, 89, 182, 0.1);
}

.report-container {
    margin-top: 15px;
}

.report-section {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.report-section h4 {
    margin: 0 0 12px 0;
    color: #fff;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

.report-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
}

.report-stats div {
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
}

.report-stats strong {
    color: #00ff88;
}

/* SEO Metadata section */
.seo-metadata-section {
    border: 1px solid rgba(230, 126, 34, 0.3);
}

.seo-metadata {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.seo-item {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: baseline;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

.seo-label {
    font-weight: 600;
    color: #f39c12;
    min-width: 130px;
    font-size: 13px;
}

.seo-value {
    flex: 1;
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
}

.seo-length {
    font-size: 11px;
    color: #888;
    white-space: nowrap;
}

/* Search results in report */
.search-result-block {
    margin-bottom: 15px;
}

.search-query {
    color: #00d9ff;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 13px;
}

.search-results-list {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    padding: 8px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-size: 11px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item.parsed {
    background: rgba(0, 255, 136, 0.1);
}

.search-result-item.failed {
    background: rgba(231, 76, 60, 0.1);
}

.result-status {
    width: 20px;
    text-align: center;
}

.result-position {
    color: #888;
    width: 25px;
}

.result-domain {
    color: #00d9ff;
    width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-title {
    color: #aaa;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* PAA block */
.paa-block {
    margin-top: 10px;
    padding: 10px;
    background: rgba(0, 217, 255, 0.1);
    border-radius: 4px;
    font-size: 11px;
}

.paa-block strong {
    color: #00d9ff;
}

.paa-block ul {
    margin: 8px 0 0 20px;
    padding: 0;
}

.paa-block li {
    margin-bottom: 4px;
    color: #ccc;
}

/* Parsed pages */
.parsed-page-block {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
}

.parsed-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.parsed-page-header strong {
    color: #fff;
    font-size: 13px;
}

.parsed-page-stats {
    color: #00ff88;
    font-size: 11px;
}

.parsed-page-url {
    color: #888;
    font-size: 11px;
    word-break: break-all;
    margin-bottom: 10px;
}

.parsed-page-headings {
    margin-top: 10px;
}

.parsed-page-headings > strong {
    color: #aaa;
    font-size: 11px;
}

.headings-list {
    margin-top: 6px;
    font-size: 11px;
}

.heading-item {
    padding: 3px 0;
    color: #ccc;
}

.heading-item.indent-1 {
    padding-left: 15px;
}

.heading-item.indent-2 {
    padding-left: 30px;
}

.heading-type {
    color: #f39c12;
    font-weight: 500;
    margin-right: 6px;
}

/* Failed URLs */
.report-errors {
    background: rgba(231, 76, 60, 0.1);
}

.failed-url {
    padding: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    margin-bottom: 8px;
}

.failed-url-link {
    color: #e74c3c;
    font-size: 11px;
    word-break: break-all;
}

.failed-url-error {
    color: #ff6b6b;
    font-size: 11px;
    margin-top: 4px;
}

/* Agent decisions */
.agent-decisions {
    max-height: 300px;
    overflow-y: auto;
}

.decision-block {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 8px;
}

.decision-header {
    color: #9b59b6;
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 6px;
}

.decision-text {
    color: #aaa;
    font-size: 12px;
    line-height: 1.5;
    white-space: pre-wrap;
}

.tool-input {
    margin-top: 8px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    overflow-x: auto;
    font-size: 11px;
    color: #888;
}

.thinking-content {
    margin-top: 8px;
    padding: 8px;
    background: rgba(155, 89, 182, 0.1);
    border-radius: 4px;
    font-size: 12px;
    color: #aaa;
    max-height: 150px;
    overflow-y: auto;
}

/* Result Section */
.result-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.result-header h2 {
    color: #fff;
}

.result-actions {
    display: flex;
    gap: 10px;
}

.article-preview {
    background: #fff;
    color: #333;
    padding: 40px;
    border-radius: 12px;
    font-size: 16px;
    line-height: 1.8;
}

.article-preview h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #1a1a2e;
}

.article-preview h2 {
    font-size: 1.5rem;
    margin: 30px 0 15px;
    color: #16213e;
    border-bottom: 2px solid #00d9ff;
    padding-bottom: 8px;
}

.article-preview h3 {
    font-size: 1.2rem;
    margin: 20px 0 10px;
    color: #333;
}

.article-preview p {
    margin-bottom: 15px;
}

.article-preview ul, .article-preview ol {
    margin: 15px 0;
    padding-left: 30px;
}

.article-preview li {
    margin-bottom: 8px;
}

.article-preview blockquote {
    border-left: 4px solid #00d9ff;
    padding-left: 20px;
    margin: 20px 0;
    color: #666;
    font-style: italic;
}

.article-preview table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.article-preview th, .article-preview td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.article-preview th {
    background: #f5f5f5;
}

/* Error Section */
.error-section {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
}

.error-section h2 {
    color: #e74c3c;
    margin-bottom: 15px;
}

.error-message {
    color: #ff6b6b;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    color: #666;
}

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

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Word Stats Section */
.word-stats-section {
    background: rgba(52, 152, 219, 0.1);
    border-left-color: #3498db;
}

.word-stats-main {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.word-stats-article {
    text-align: center;
    padding: 20px 30px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
    min-width: 180px;
}

.word-stats-article.word-status-good {
    background: rgba(0, 255, 136, 0.15);
    border: 2px solid #00ff88;
}

.word-stats-article.word-status-ok {
    background: rgba(241, 196, 15, 0.15);
    border: 2px solid #f1c40f;
}

.word-stats-article.word-status-warning {
    background: rgba(231, 76, 60, 0.15);
    border: 2px solid #e74c3c;
}

.word-count-big {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.word-count-label {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

.word-status {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 500;
}

.word-status-good .word-status {
    color: #00ff88;
}

.word-status-ok .word-status {
    color: #f1c40f;
}

.word-status-warning .word-status {
    color: #e74c3c;
}

.word-stats-recommendation {
    flex: 1;
}

.rec-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 5px;
}

.rec-range {
    font-size: 1.5rem;
    font-weight: 600;
    color: #00d9ff;
}

.rec-method {
    font-size: 11px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

.word-stats-competitors {
    margin-top: 15px;
}

.competitor-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
}

.stat-box {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px;
    border-radius: 8px;
    text-align: center;
}

.stat-box .stat-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #00d9ff;
}

.stat-box .stat-label {
    display: block;
    font-size: 10px;
    color: #888;
    margin-top: 4px;
}

.competitor-word-list {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.competitor-word-list > strong {
    font-size: 12px;
    color: #aaa;
}

.competitor-bars {
    margin-top: 10px;
}

.competitor-bar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.bar-position {
    width: 30px;
    font-size: 11px;
    color: #888;
    text-align: center;
}

.bar-container {
    flex: 1;
    height: 24px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #00d9ff);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.bar-fill.bar-article {
    background: linear-gradient(90deg, #00ff88, #2ecc71);
}

.bar-value {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: #fff;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.article-bar .bar-container {
    border: 1px solid #00ff88;
}

@media (max-width: 600px) {
    .word-stats-main {
        flex-direction: column;
        text-align: center;
    }

    .word-count-big {
        font-size: 2rem;
    }

    .rec-range {
        font-size: 1.2rem;
    }
}

/* ================================
   Section Editing Styles
   ================================ */

/* SEO Metadata Block in Article */
.seo-block {
    background: linear-gradient(135deg, #1a1f36 0%, #2d3555 100%);
    border-radius: 12px 12px 0 0;
    padding: 20px;
    margin-bottom: 0;
    border: 1px solid rgba(230, 126, 34, 0.3);
    border-bottom: none;
}

.seo-block-header {
    margin-bottom: 15px;
}

.seo-block-header h3 {
    margin: 0;
    color: #f39c12;
    font-size: 16px;
    font-weight: 600;
}

.seo-field {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 10px;
}

.seo-field:last-child {
    margin-bottom: 0;
}

.seo-field-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.seo-field-header label {
    font-weight: 600;
    color: #f39c12;
    font-size: 13px;
}

.seo-char-count {
    font-size: 11px;
    color: #888;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 8px;
    border-radius: 10px;
}

.btn-seo-edit {
    margin-left: auto;
    background: rgba(243, 156, 18, 0.2);
    border: 1px solid rgba(243, 156, 18, 0.3);
    color: #f39c12;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.btn-seo-edit:hover {
    background: rgba(243, 156, 18, 0.4);
    border-color: #f39c12;
}

.seo-field-value {
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
}

/* SEO Regeneration Modal */
.modal-seo {
    max-width: 500px;
}

.current-seo-value {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 15px;
}

.current-seo-value strong {
    display: block;
    color: #f39c12;
    font-size: 12px;
    margin-bottom: 8px;
}

.seo-current-text {
    color: #ccc;
    font-size: 14px;
    line-height: 1.5;
}

/* Article summary bar */
.article-summary {
    display: flex;
    gap: 20px;
    padding: 12px 20px;
    background: rgba(0, 217, 255, 0.1);
    border-radius: 0;
    border-bottom: 1px solid rgba(0, 217, 255, 0.2);
    font-size: 14px;
    color: #00d9ff;
}

/* When there's no SEO block above */
.article-preview > .article-summary:first-child {
    border-radius: 8px 8px 0 0;
}

/* Article sections container */
.article-sections {
    background: #fff;
    border-radius: 0 0 12px 12px;
}

/* Individual section */
.article-section {
    position: relative;
    border-bottom: 1px solid #eee;
}

.article-section:last-child {
    border-bottom: none;
}

/* Section toolbar (appears on hover) */
.section-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    background: linear-gradient(90deg, #f8f9fa, #fff);
    border-bottom: 1px solid #eee;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.article-section:hover .section-toolbar {
    opacity: 1;
}

.section-info {
    display: flex;
    gap: 15px;
    font-size: 12px;
}

.section-type {
    color: #666;
    font-weight: 500;
}

.section-word-count {
    color: #00d9ff;
}

.section-actions {
    display: flex;
    gap: 8px;
}

.btn-section {
    padding: 5px 12px;
    font-size: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-section:hover {
    background: #f5f5f5;
    border-color: #00d9ff;
}

.btn-edit:hover {
    background: rgba(0, 217, 255, 0.1);
    border-color: #00d9ff;
    color: #0099cc;
}

/* Section content */
.section-content {
    padding: 20px 40px 30px;
    color: #333;
}

.section-content h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #1a1a2e;
}

.section-content h2 {
    font-size: 1.5rem;
    margin: 0 0 15px;
    color: #16213e;
    border-bottom: 2px solid #00d9ff;
    padding-bottom: 8px;
}

.section-content h3 {
    font-size: 1.2rem;
    margin: 20px 0 10px;
    color: #333;
}

.section-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.section-content ul, .section-content ol {
    margin: 15px 0;
    padding-left: 30px;
}

.section-content li {
    margin-bottom: 8px;
}

.section-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.section-content th, .section-content td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.section-content th {
    background: #f5f5f5;
}

/* ================================
   Modal Styles
   ================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: #1a1a2e;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    color: #fff;
    font-size: 1.2rem;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #fff;
}

.modal-body {
    padding: 25px;
}

.section-preview {
    background: rgba(0, 217, 255, 0.1);
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 20px;
    font-size: 14px;
}

.section-preview strong {
    color: #888;
}

.section-preview span {
    color: #00d9ff;
    margin-left: 5px;
}

.regenerate-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option-group > label {
    color: #ccc;
    font-size: 14px;
    font-weight: 500;
}

.option-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
}

.option-group textarea:focus {
    outline: none;
    border-color: #00d9ff;
}

.option-group textarea::placeholder {
    color: #666;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-label, .radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #aaa;
    font-size: 14px;
    transition: color 0.2s;
}

.checkbox-label:hover, .radio-label:hover {
    color: #fff;
}

.checkbox-label input, .radio-label input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #00d9ff;
}

.length-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.length-options .radio-label {
    padding: 8px 14px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
}

.length-options .radio-label:has(input:checked) {
    background: rgba(0, 217, 255, 0.2);
    border-color: #00d9ff;
    color: #00d9ff;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-footer .btn-primary {
    width: auto;
    padding: 12px 24px;
}

.modal-footer .btn-secondary {
    padding: 12px 20px;
}

/* Modal responsive */
@media (max-width: 600px) {
    .modal-content {
        margin: 10px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .length-options {
        flex-direction: column;
    }
}
