/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica", "Arial", sans-serif;
    background-color: #000000;
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
}

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

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

header h1 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #ffffff, #cccccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.2rem;
    color: #cccccc;
    font-weight: 300;
}

/* Required text styling */
.required-text {
    color: #ff4444;
    font-weight: bold;
}

/* Overview Section Styles */
.overview-section {
    margin-bottom: 50px;
    padding: 40px;
    background-color: #000000;
    border: 1px solid #ffffff;
    border-radius: 33px;
}

.overview-section h2 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: #ffffff;
    font-weight: 400;
    text-align: center;
}

.overview-content > p {
    font-size: 1.1rem;
    color: #cccccc;
    text-align: center;
    margin-bottom: 35px;
    line-height: 1.6;
}

/* Collapsible Section Styles */
.collapsible-section {
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 15px 15px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: none;
}

.section-header h2 {
    margin: 0;
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    flex: 1;
}

.collapse-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.collapse-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.section-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: none;
    border-radius: 0 0 15px 15px;
    padding: 30px;
    transition: all 0.3s ease;
}

.section-content.collapsed {
    display: none;
}

/* Create Prompt Section Styles */
.create-prompt-section {
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.1) 0%, rgba(0, 255, 0, 0.05) 100%);
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 0, 0.3);
    text-align: center;
}

.create-prompt-section h2 {
    color: #00ff00;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.create-prompt-section p {
    color: #cccccc;
    font-size: 1.1rem;
    margin: 0;
}

.overview-points {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.point {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 25px;
    border: 1px solid #333333;
    border-radius: 20px;
    background-color: #111111;
    transition: all 0.3s ease;
}

.point:hover {
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.point-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ffffff;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: "Helvetica", "Arial", sans-serif;
    flex-shrink: 0;
}

.point-content {
    flex: 1;
}

.point-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #ffffff;
    font-weight: 500;
}

.point-content p {
    font-size: 0.95rem;
    color: #cccccc;
    line-height: 1.6;
    font-weight: 300;
    margin-bottom: 15px;
}

.prompt-format {
    background-color: #000000;
    border: 1px solid #333333;
    border-radius: 15px;
    padding: 15px;
    font-size: 0.9rem;
    color: #ffffff;
    font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
    line-height: 1.4;
}

/* Section Styles */
.prompt-section {
    margin-bottom: 40px;
    padding: 30px;
    background-color: #000000;
    border: 1px solid #ffffff;
    border-radius: 33px;
    position: relative;
}

.prompt-section h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #ffffff;
    font-weight: 400;
}

.prompt-section h3 {
    font-size: 1.4rem;
    margin: 25px 0 15px 0;
    color: #ffffff;
    font-weight: 400;
}

.prompt-section h4 {
    font-size: 1.1rem;
    margin: 20px 0 10px 0;
    color: #cccccc;
    font-weight: 400;
}

.section-note {
    font-size: 0.9rem;
    color: #cccccc;
    margin-bottom: 20px;
    font-style: italic;
}

/* Input Field Styles */
.input-field {
    margin-top: 15px;
}

.input-field textarea {
    width: 100%;
    min-height: 80px;
    padding: 15px;
    background-color: #000000;
    border: 1px solid #ffffff;
    border-radius: 20px;
    color: #ffffff;
    font-family: "Helvetica", "Arial", sans-serif;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.input-field textarea:focus {
    outline: none;
    border-color: #cccccc;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.input-field textarea::placeholder {
    color: #666666;
}

/* Settings Grid */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.settings-toggle {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toggle-label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    cursor: pointer;
    text-align: left;
}

.toggle-label input[type="checkbox"] {
    margin-right: 0.5rem;
    transform: scale(1.2);
    align-self: flex-start;
}

.toggle-text {
    font-weight: 500;
    color: #ffffff;
}

.toggle-note {
    font-size: 0.9rem;
    color: #cccccc;
    font-style: italic;
}

.setting-group h3 {
    margin-bottom: 15px;
    color: #ffffff;
    font-weight: 400;
}

/* Cinematic Sections */
.cinematic-section {
    margin-bottom: 40px;
}

.cinematic-section:first-of-type {
    border-top: 2px solid #333333;
    padding-top: 20px;
}

.section-title {
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: 400;
    margin-bottom: 20px;
    text-align: left;
}



/* Grid column control for different sections */
.cinematic-section:nth-of-type(1) .character-grid {
    grid-template-columns: repeat(3, 1fr);
}

.cinematic-section:nth-of-type(2) .character-grid {
    grid-template-columns: repeat(3, 1fr);
}

.cinematic-section:nth-of-type(3) .character-grid {
    grid-template-columns: repeat(2, 1fr);
}
.cinematic-section:nth-of-type(4) .character-grid { /* Composition */
    grid-template-columns: 1fr;
}

/* Subgroup Styling - Now using character-group classes */





/* Option Buttons */
.option-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.option-btn {
    background-color: #000000;
    border: 1px solid #ffffff;
    border-radius: 20px;
    color: #ffffff;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-family: "Helvetica", "Arial", sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-weight: 300;
}

.option-btn:hover {
    background-color: #ffffff;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.option-btn.selected {
    background-color: #ffffff;
    color: #000000;
    font-weight: 500;
}

/* Notes Field */
.notes-field {
    margin-top: 15px;
}

.notes-field textarea {
    width: 100%;
    min-height: 60px;
    padding: 12px;
    background-color: #000000;
    border: 1px solid #333333;
    border-radius: 15px;
    color: #cccccc;
    font-family: "Helvetica", "Arial", sans-serif;
    font-size: 0.9rem;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.notes-field textarea:focus {
    outline: none;
    border-color: #ffffff;
}

.notes-field textarea::placeholder {
    color: #666666;
}

/* Audio Grid */
.audio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 20px;
}

.audio-group {
    border: 1px solid #333333;
    border-radius: 20px;
    padding: 20px;
    background-color: #111111;
}

.audio-group h3 {
    margin-bottom: 10px;
    color: #ffffff;
    font-weight: 400;
    font-size: 1.2rem;
}

.audio-group .section-note {
    margin-bottom: 15px;
    font-size: 0.85rem;
}

.audio-group .input-field textarea {
    min-height: 60px;
    font-size: 0.9rem;
}

/* Environment & Background Grid */
.environment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.text-input-group {
    margin-bottom: 15px;
}

.text-input-group textarea {
    width: 100%;
    min-height: 60px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
}

.text-input-group textarea:focus {
    outline: none;
    border-color: #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.text-input-group textarea::placeholder {
    color: #888888;
    font-style: italic;
}

.environment-group {
    border: 1px solid #333333;
    border-radius: 20px;
    padding: 20px;
    background-color: #111111;
}

.environment-group h3 {
    margin-bottom: 15px;
    color: #ffffff;
    font-weight: 400;
    font-size: 1.2rem;
    border-bottom: 1px solid #333333;
    padding-bottom: 8px;
}

.environment-notes {
    margin-top: 30px;
    padding: 25px;
    border: 1px solid #333333;
    border-radius: 20px;
    background-color: #111111;
}

.environment-notes h3 {
    margin-bottom: 15px;
    color: #ffffff;
    font-weight: 400;
    font-size: 1.3rem;
}

/* Objects & Props Grid */
.objects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.objects-group {
    border: 1px solid #333333;
    border-radius: 20px;
    padding: 20px;
    background-color: #111111;
}

.objects-group h3 {
    margin-bottom: 10px;
    color: #ffffff;
    font-weight: 400;
    font-size: 1.2rem;
}

.objects-group .section-note {
    margin-bottom: 15px;
    font-size: 0.85rem;
}

.objects-group .input-field textarea {
    min-height: 60px;
    font-size: 0.9rem;
}

.objects-notes {
    margin-top: 30px;
    padding: 25px;
    border: 1px solid #333333;
    border-radius: 20px;
    background-color: #111111;
}

.objects-notes h3 {
    margin-bottom: 15px;
    color: #ffffff;
    font-weight: 400;
    font-size: 1.3rem;
}


/* Dialogue Examples */
.dialogue-examples {
    margin-top: 20px;
    padding: 20px;
    background-color: #111111;
    border: 1px solid #333333;
    border-radius: 15px;
}

.dialogue-examples p {
    margin-bottom: 8px;
    color: #cccccc;
    font-size: 0.9rem;
}

.dialogue-examples p:first-child {
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 12px;
}

.dialogue-examples p:last-child {
    margin-bottom: 0;
}

/* Generate Button */
.generate-section {
    text-align: center;
    margin: 40px 0;
}

.generate-btn {
    background-color: #ffffff;
    color: #000000;
    border: none;
    border-radius: 33px;
    padding: 18px 40px;
    font-size: 1.2rem;
    font-family: "Helvetica", "Arial", sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.generate-btn:hover {
    background-color: #cccccc;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.generate-btn:active {
    transform: translateY(-1px);
}

/* Output Section */
.output-section {
    margin-top: 50px;
    padding: 30px;
    background-color: #000000;
    border: 1px solid #ffffff;
    border-radius: 33px;
}

.output-section h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #ffffff;
    font-weight: 400;
}

/* Tab Styles */
.output-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.tab-btn {
    background-color: #000000;
    border: 1px solid #ffffff;
    border-radius: 20px;
    color: #ffffff;
    padding: 12px 24px;
    font-family: "Helvetica", "Arial", sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 300;
}

.tab-btn:hover {
    background-color: #333333;
}

.tab-btn.active {
    background-color: #ffffff;
    color: #000000;
    font-weight: 500;
}

/* Tab Content */
.tab-content {
    position: relative;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.output-box {
    background-color: #111111;
    border: 1px solid #333333;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 20px;
    min-height: 150px;
    font-family: "Helvetica", "Arial", sans-serif;
    line-height: 1.7;
}

.output-box p,
.output-box pre {
    color: #ffffff;
    font-size: 1rem;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.output-box pre {
    font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
    font-size: 0.9rem;
}

/* Copy Button */
.copy-btn {
    background-color: #000000;
    border: 1px solid #ffffff;
    border-radius: 20px;
    color: #ffffff;
    padding: 10px 20px;
    font-family: "Helvetica", "Arial", sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 300;
}

.copy-btn:hover {
    background-color: #ffffff;
    color: #000000;
}

.copy-btn:active {
    transform: scale(0.98);
}

/* Character Section - Updated to match other sections */
.character-section {
    margin-bottom: 40px;
    padding: 30px;
    background-color: #000000;
    border: 1px solid #ffffff;
    border-radius: 33px;
    position: relative;
}

.character-section h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #ffffff;
    font-weight: 400;
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.character-group {
    border: 1px solid #333333;
    border-radius: 20px;
    padding: 20px;
    background-color: #111111;
}

.character-group h3 {
    margin-bottom: 15px;
    color: #ffffff;
    font-weight: 400;
    font-size: 1.2rem;
}

.character-group textarea {
    width: 100%;
    min-height: 80px;
    padding: 15px;
    background-color: #000000;
    border: 1px solid #ffffff;
    border-radius: 20px;
    color: #ffffff;
    font-family: "Helvetica", "Arial", sans-serif;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.character-group textarea:focus {
    outline: none;
    border-color: #cccccc;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.character-group textarea::placeholder {
    color: #666666;
}

.character-group.full-width {
    grid-column: 1 / -1;
}

.character-group.full-width textarea {
    min-height: 120px;
}

/* Character Tabs */
.character-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.character-tab-btn {
    background-color: #000000;
    border: 1px solid #ffffff;
    border-radius: 20px;
    color: #ffffff;
    padding: 12px 20px;
    font-family: "Helvetica", "Arial", sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 300;
    white-space: nowrap;
}

.character-tab-btn:hover {
    background-color: #333333;
}

.character-tab-btn.active {
    background-color: #ffffff;
    color: #000000;
    font-weight: 500;
}

.character-tab-btn.modified {
    position: relative;
}

.character-tab-btn.modified::after {
    content: '●';
    position: absolute;
    top: 4px;
    right: 4px;
    color: #00ff00;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 0 0 3px rgba(0, 255, 0, 0.5);
}

.character-tab-btn.active.modified::after {
    color: #00ff00;
    text-shadow: 0 0 3px rgba(0, 255, 0, 0.8);
}

.character-tab-pane {
    display: none;
}

.character-tab-pane.active {
    display: block;
}

/* Crowds Section */
.crowds-section {
    margin-top: 20px;
}

.crowds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.crowds-group {
    border: 1px solid #333333;
    border-radius: 20px;
    padding: 20px;
    background-color: #111111;
}

.crowds-group h3 {
    margin-bottom: 15px;
    color: #ffffff;
    font-weight: 400;
    font-size: 1.2rem;
}

.crowds-group textarea {
    width: 100%;
    min-height: 80px;
    padding: 15px;
    background-color: #000000;
    border: 1px solid #ffffff;
    border-radius: 20px;
    color: #ffffff;
    font-family: "Helvetica", "Arial", sans-serif;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.crowds-group textarea:focus {
    outline: none;
    border-color: #cccccc;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.crowds-group textarea::placeholder {
    color: #666666;
}

.crowds-group.full-width {
    grid-column: 1 / -1;
}

.crowds-group.full-width textarea {
    min-height: 120px;
}

/* Interaction Options */
.interaction-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.interaction-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cccccc;
    font-size: 0.9rem;
    cursor: pointer;
}

.interaction-options input[type="radio"] {
    accent-color: #ffffff;
}

.interaction-options label:hover {
    color: #ffffff;
}

/* Responsive adjustments for character section */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2.2rem;
    }
    
    .overview-section {
        padding: 25px;
        margin-bottom: 40px;
    }
    
    .overview-section h2 {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }
    
    .overview-content > p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .point {
        padding: 20px;
        gap: 15px;
    }
    
    .point-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .point-content h3 {
        font-size: 1.1rem;
    }
    
    .point-content p {
        font-size: 0.9rem;
    }
    
    .prompt-format {
        font-size: 0.8rem;
        padding: 12px;
    }
    
    .prompt-section {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .settings-grid,
    .audio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .environment-grid,
    .objects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cinematic-section:nth-of-type(1) .character-grid,
    .cinematic-section:nth-of-type(2) .character-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .cinematic-section:nth-of-type(3) .character-grid,
    .cinematic-section:nth-of-type(4) .character-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    
    .option-buttons {
        gap: 8px;
    }
    
    .option-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .generate-btn {
        padding: 15px 30px;
        font-size: 1.1rem;
    }
    
    .output-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        text-align: center;
    }

    .character-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .character-group {
        padding: 1rem;
    }
    
    .character-group textarea {
        min-height: 60px;
        font-size: 0.85rem;
    }
    
    .character-tabs {
        flex-direction: column;
        gap: 8px;
    }
    
    .character-tab-btn {
        text-align: center;
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .crowds-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .overview-section {
        padding: 20px;
    }
    
    .overview-section h2 {
        font-size: 1.4rem;
    }
    
    .overview-content > p {
        font-size: 0.9rem;
    }
    
    .point {
        padding: 15px;
        gap: 12px;
    }
    
    .point-number {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .point-content h3 {
        font-size: 1rem;
    }
    
    .point-content p {
        font-size: 0.85rem;
    }
    
    .prompt-format {
        font-size: 0.75rem;
        padding: 10px;
    }
    
    .prompt-section h2 {
        font-size: 1.5rem;
    }
    
    .prompt-section h3 {
        font-size: 1.2rem;
    }
    
    .prompt-section h4 {
        font-size: 1rem;
    }
    
    .option-btn {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
    
    .character-grid {
        grid-template-columns: 1fr;
    }
    
    
    .audio-group {
        padding: 15px;
    }
}
