/* css/style.css */

.page-count-wrapper {
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.page-count-input {
    width: 70px !important;
    text-align: center;
}

.page-count-wrapper label {
    margin-left: 8px;
    white-space: nowrap;
}

.character-block .form-label {
    font-weight: 500;
    font-size: 0.9em;
    color: #555;
}

.character-block {
    background-color: #fcfcfc !important;
    border: 1px solid #eee !important;
}

.character-block .char-role-title {
    font-weight: bold;
    color: #0c63e4;
    font-size: 1.1em;
}

.story-text h5 {
    font-weight: bold;
    margin-top: 1em;
    font-size: 1.2em;
}

.scene-card .prompt-textarea {
    font-family: monospace;
    font-size: 0.9em;
    background-color: #f8f9fa;
}

#raw-blueprint-output {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    font-family: 'Courier New', monospace;
}

.accordion-button:not(.collapsed) {
    color: #0c63e4;
    background-color: #e7f1ff;
}

.spinner-border {
    width: 1rem;
    height: 1rem;
}

.char-desc-mode .row {
    margin-bottom: 0;
}

.char-ref-mode .alert {
    margin-bottom: 1rem;
}

.form-check-input:checked {
    background-color: #0c63e4;
    border-color: #0c63e4;
}

.btn-close {
    font-size: 0.75em;
}

/* NEW: Styling untuk page badges dan story scenes */
.scene-card .badge {
    font-size: 0.75em;
    font-weight: 600;
}

.scene-card .accordion-button {
    align-items: center;
}

.alert-info strong {
    color: #0c63e4;
}

.scene-card .scene-title-btn {
    flex: 1;
    text-align: left;
}

.scene-card .badge.bg-primary {
    background-color: #0c63e4 !important;
    min-width: 45px;
    text-align: center;
}

.accordion-item:last-child .accordion-collapse {
    border-bottom-right-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
}

.accordion-item:first-child .accordion-button {
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
}

/* Enhanced styling for page indicators */
.scene-card .accordion-header {
    margin-bottom: 0;
}

.scene-card .accordion-button .badge {
    margin-right: 8px;
    padding: 0.35em 0.6em;
}

/* Better spacing for scene content */
.scene-card .accordion-body {
    padding: 1.5rem;
}

.scene-card .form-text {
    font-size: 0.8em;
    margin-top: 0.25rem;
}

/* Highlight current editing scene */
.scene-card .accordion-collapse.show {
    border-left: 3px solid #0c63e4;
}

/* Better visual hierarchy */
.scene-card .form-label strong {
    color: #333;
    font-size: 0.95em;
}

.bg-light.rounded {
    background-color: #f8f9fa !important;
    border: 1px solid #e9ecef;
    padding: 1rem !important;
}

/* Enhanced styling for Step 4 */
.download-buttons-container {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1.5rem;
    border: 1px solid #dee2e6;
}

.download-buttons-container h6 {
    color: #495057;
    margin-bottom: 1rem;
    font-weight: 600;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.copy-single-prompt {
    font-size: 0.8em !important;
    border-radius: 20px !important;
}

.copy-single-prompt:hover {
    background-color: #0dcaf0 !important;
    color: white !important;
    border-color: #0dcaf0 !important;
}

#copy-success-alert {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    border: none;
}

#final-story-output pre {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    color: #333;
    font-size: 0.95em;
}

#final-json-output {
    resize: vertical;
    min-height: 250px;
}

.story-text h1, .story-text h2, .story-text h3 {
    color: #0c63e4;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
}

