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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

.navbar {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.8;
}

.logo {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.messages {
    margin-bottom: 1rem;
}

.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    color: #2c3e50;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-warning {
    background-color: #f39c12;
    color: white;
}

.btn-warning:hover {
    background-color: #e67e22;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.articles-list {
    display: grid;
    gap: 1rem;
}

.article-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s;
}

.article-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.article-card h3 {
    margin-bottom: 0.5rem;
}

.article-card h3 a {
    color: #2c3e50;
    text-decoration: none;
}

.article-card h3 a:hover {
    color: #3498db;
}

.meta {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 8px;
    color: #7f8c8d;
}

.form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 600px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c3e50;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

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

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

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.article-page {
    display: grid;
    gap: 2rem;
}

.generation-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.generation-form h2 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.versions-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.versions-section h2 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.versions-list {
    display: grid;
    gap: 1rem;
}

.version-card {
    padding: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
}

.version-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.version-meta {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.uniqueness-badge {
    background-color: #3498db;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.version-preview {
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.version-page {
    display: grid;
    gap: 2rem;
}

.version-info {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.info-row {
    display: flex;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .label {
    font-weight: 500;
    width: 150px;
    color: #7f8c8d;
}

.info-row .value {
    color: #2c3e50;
}

.uniqueness-value {
    font-weight: bold;
    color: #27ae60;
}

.version-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.version-content h2 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.content-text {
    white-space: pre-wrap;
    line-height: 1.8;
    color: #333;
    padding: 1rem;
    background: #fafafa;
    border-radius: 4px;
}

.version-actions {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.version-actions .form-group {
    margin-bottom: 1rem;
}

.prompts-page {
    display: grid;
    gap: 2rem;
}

.prompts-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.prompts-section h2 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.prompts-list {
    display: grid;
    gap: 1rem;
}

.prompt-card {
    padding: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
    transition: box-shadow 0.3s;
}

.prompt-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.prompt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.prompt-header h3 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin: 0;
}

.prompt-preview {
    color: #555;
    line-height: 1.6;
    white-space: pre-wrap;
}

.prompt-edit-page {
    display: grid;
    gap: 2rem;
}

.prompt-textarea {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.adaptation-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.adaptation-section h2 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.adaptation-form {
    display: grid;
    gap: 1.5rem;
}

.channels-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.checkbox-label:hover {
    background-color: #f5f5f5;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.adaptations-display {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.adaptations-display h2 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.channel-adaptations {
    margin-bottom: 2rem;
}

.channel-adaptations:last-child {
    margin-bottom: 0;
}

.channel-title {
    color: #3498db;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.adaptation-card {
    background: #fafafa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 1rem;
}

.adaptation-card:last-child {
    margin-bottom: 0;
}

.adaptation-meta {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.adaptation-content {
    white-space: pre-wrap;
    line-height: 1.8;
    color: #333;
}

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

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .version-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .prompt-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .channels-checkboxes {
        grid-template-columns: 1fr;
    }
}

.guide-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.guide-section {
    margin-bottom: 3rem;
}

.guide-section:last-child {
    margin-bottom: 0;
}

.guide-section h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.guide-section h3 {
    color: #34495e;
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.guide-section p {
    margin-bottom: 1rem;
    color: #555;
}

.guide-section ol,
.guide-section ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.guide-section li {
    margin-bottom: 0.5rem;
    color: #555;
}

.guide-section code {
    background: #f4f4f4;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
    color: #e83e8c;
}

.guide-section blockquote {
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

.guide-section blockquote p {
    margin: 0;
    color: #495057;
}

.faq-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid #3498db;
}

.faq-item p {
    margin-bottom: 0.5rem;
}

.faq-item p:last-child {
    margin-bottom: 0;
    color: #555;
}

@media (max-width: 768px) {
    .guide-content {
        padding: 1.5rem;
    }

    .guide-section h2 {
        font-size: 1.5rem;
    }

    .guide-section h3 {
        font-size: 1.2rem;
    }
}

