html,body,#root{margin:0;padding:0;height:100%;background-color:#1e1e1e;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;color:#ecf0f1}#root{display:flex;flex-direction:column}.story-book-list{max-width:800px;margin:0 auto;padding:20px}.story-book-list__header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.story-book-list__header h2{margin:0;color:#333}.story-book-list__create-btn{background-color:#4caf50;color:#fff;border:none;padding:10px 20px;border-radius:4px;cursor:pointer;font-size:14px;transition:background-color .3s}.story-book-list__create-btn:hover:not(:disabled){background-color:#45a049}.story-book-list__create-btn:disabled{background-color:#ccc;cursor:not-allowed}.story-book-list__error{background-color:#f8d7da;color:#721c24;padding:10px;border-radius:4px;margin-bottom:20px;border:1px solid #f5c6cb}.story-book-list__empty{text-align:center;color:#666;padding:40px 20px;background-color:#f9f9f9;border-radius:8px;border:2px dashed #ddd}.story-book-list__items{display:flex;flex-direction:column;gap:12px}.story-book-item{display:flex;justify-content:space-between;align-items:center;padding:16px;background-color:#fff;border:1px solid #ddd;border-radius:8px;box-shadow:0 2px 4px #0000001a;transition:box-shadow .3s}.story-book-item:hover{box-shadow:0 4px 8px #00000026}.story-book-item__content{flex:1}.story-book-item__header{display:flex;align-items:center;gap:12px;margin-bottom:8px}.story-book-item__name{margin:0;color:#333;font-size:18px;font-weight:600}.story-book-item__completed-badge{background-color:#28a745;color:#fff;font-size:12px;font-weight:600;padding:4px 8px;border-radius:12px;white-space:nowrap}.story-book-item__date{margin:0;color:#666;font-size:14px}.story-book-item__actions{display:flex;gap:8px}.story-book-item__pages-btn,.story-book-item__edit-btn,.story-book-item__delete-btn{padding:8px 16px;border:none;border-radius:4px;cursor:pointer;font-size:14px;transition:background-color .3s}.story-book-item__pages-btn:disabled,.story-book-item__edit-btn:disabled,.story-book-item__delete-btn:disabled{cursor:not-allowed;opacity:.6}.story-book-item__pages-btn{background-color:#6f42c1;color:#fff}.story-book-item__pages-btn:hover:not(:disabled){background-color:#5a2d8f}.story-book-item__edit-btn{background-color:#007bff;color:#fff}.story-book-item__edit-btn:hover:not(:disabled){background-color:#0056b3}.story-book-item__delete-btn{background-color:#dc3545;color:#fff}.story-book-item__delete-btn:hover:not(:disabled){background-color:#c82333}.story-book-form{position:fixed;top:0;left:0;right:0;bottom:0;z-index:1000;display:flex;align-items:center;justify-content:center}.story-book-form__overlay{position:absolute;top:0;left:0;right:0;bottom:0;background-color:#00000080}.story-book-form__modal{background-color:#fff;padding:24px;border-radius:8px;box-shadow:0 4px 20px #0000004d;width:90%;max-width:400px;position:relative;z-index:1001}.story-book-form__modal h3{margin:0 0 20px;color:#333}.story-book-form__field{margin-bottom:16px}.story-book-form__field label{display:block;margin-bottom:6px;color:#333;font-weight:500}.story-book-form__field input{width:100%;padding:10px;border:1px solid #ddd;border-radius:4px;font-size:14px;box-sizing:border-box}.story-book-form__field input:focus{outline:none;border-color:#007bff;box-shadow:0 0 0 2px #007bff40}.story-book-form__field input:disabled{background-color:#f5f5f5;cursor:not-allowed}.story-book-form__error{background-color:#f8d7da;color:#721c24;padding:8px 12px;border-radius:4px;margin-bottom:16px;border:1px solid #f5c6cb;font-size:14px}.story-book-form__actions{display:flex;gap:12px;justify-content:flex-end}.story-book-form__cancel-btn,.story-book-form__submit-btn{padding:10px 20px;border:none;border-radius:4px;cursor:pointer;font-size:14px;transition:background-color .3s}.story-book-form__cancel-btn:disabled,.story-book-form__submit-btn:disabled{cursor:not-allowed;opacity:.6}.story-book-form__cancel-btn{background-color:#6c757d;color:#fff}.story-book-form__cancel-btn:hover:not(:disabled){background-color:#545b62}.story-book-form__submit-btn{background-color:#007bff;color:#fff}.story-book-form__submit-btn:hover:not(:disabled){background-color:#0056b3}.dashboard{min-height:100vh;background-color:#f8f9fa}.dashboard__header{background-color:#fff;padding:20px;border-bottom:1px solid #dee2e6;box-shadow:0 2px 4px #0000001a}.dashboard__header h1{margin:0;color:#333;font-size:24px;font-weight:600}.dashboard__content{padding:20px}.nav-container{margin-top:1rem}.error-output{color:red;margin:10px 0}.story-page-editor{max-width:800px;margin:0 auto;padding:20px;font-family:Segoe UI,system-ui,sans-serif}.story-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px;padding-bottom:15px;border-bottom:2px solid #e0e0e0}.story-header h1{color:#2c3e50;margin:0;font-size:2rem}.story-header .progress-indicator{font-weight:600;color:#7f8c8d;font-size:1.1rem}.story-header .back-button{background:#95a5a6;color:#fff;border:none;padding:8px 16px;border-radius:4px;cursor:pointer;font-size:.9rem}.story-header .back-button:hover{background:#7f8c8d}.error-message{background:#e74c3c;color:#fff;padding:20px;border-radius:8px;text-align:center}.error-message p{margin-bottom:15px;font-weight:600}.error-message button{background:#fff;color:#e74c3c;border:none;padding:8px 16px;margin:0 8px;border-radius:4px;cursor:pointer;font-weight:600}.error-message button:hover{background:#f8f9fa}.story-content{margin-bottom:30px}.story-page{margin-bottom:25px;padding:20px;border-radius:8px;border-left:4px solid #3498db}.story-page .page-number{font-weight:700;color:#2c3e50;margin-bottom:10px;font-size:1.1rem}.story-page .page-text{line-height:1.6;color:#34495e;font-size:1rem;margin-bottom:10px}.story-page.previous-page{background:#ecf0f1;border-left-color:#95a5a6;opacity:.8}.story-page.current-page{background:#e8f4f8;border-left-color:#3498db}.story-page.current-page.saved{background:#d5f4e6;border-left-color:#27ae60}.story-page.current-page.saved .page-status{color:#27ae60;font-weight:600;font-size:.9rem}.generating{text-align:center;padding:40px}.generating p{margin-top:15px;color:#7f8c8d;font-style:italic}.choices .choices-prompt{font-weight:600;color:#2c3e50;margin-bottom:15px}.choices .choice-button{display:block;width:100%;margin-bottom:15px;padding:15px;text-align:left;border:2px solid #bdc3c7;background:#fff;border-radius:8px;cursor:pointer;transition:all .3s ease}.choices .choice-button:hover{border-color:#3498db;transform:translateY(-1px);box-shadow:0 4px 8px #3498db33}.choices .choice-button.selected{border-color:#3498db;background:#e8f4f8;box-shadow:0 2px 4px #3498db4d}.choices .choice-button:disabled{opacity:.6;cursor:not-allowed;transform:none}.choices .choice-button .choice-label{display:block;font-weight:600;color:#3498db;margin-bottom:8px;font-size:.9rem}.choices .choice-button .choice-text{display:block;color:#34495e;line-height:1.5}.no-choices{text-align:center;padding:40px}.no-choices button{background:#3498db;color:#fff;border:none;padding:12px 24px;border-radius:6px;cursor:pointer;font-size:1rem;font-weight:600}.no-choices button:hover{background:#2980b9}.story-controls{display:flex;justify-content:space-between;align-items:center;padding:20px 0;border-top:2px solid #e0e0e0}.navigation-buttons,.action-buttons{display:flex;gap:10px}.navigation-buttons button{background:#95a5a6;color:#fff;border:none;padding:10px 16px;border-radius:4px;cursor:pointer}.navigation-buttons button:hover:not(:disabled){background:#7f8c8d}.navigation-buttons button:disabled{opacity:.5;cursor:not-allowed}.action-buttons .undo-button{background:#f39c12;color:#fff;border:none;padding:10px 16px;border-radius:4px;cursor:pointer}.action-buttons .undo-button:hover{background:#e67e22}.action-buttons .save-button{background:#3498db;color:#fff;border:none;padding:10px 20px;border-radius:4px;cursor:pointer;font-weight:600}.action-buttons .save-button:hover:not(:disabled){background:#2980b9}.action-buttons .save-button:disabled{opacity:.6;cursor:not-allowed}.action-buttons .finish-button{background:#27ae60;color:#fff;border:none;padding:10px 20px;border-radius:4px;cursor:pointer;font-weight:600}.action-buttons .finish-button:hover:not(:disabled){background:#229954}.action-buttons .finish-button:disabled{opacity:.6;cursor:not-allowed}.workflow-status{background:#fff3cd;color:#856404;padding:12px 16px;border-radius:6px;margin-bottom:20px;font-weight:500;border-left:4px solid #ffc107}.choice-actions{margin-top:20px;text-align:center}.save-choice-button{background:#3498db;color:#fff;border:none;padding:12px 24px;border-radius:6px;cursor:pointer;font-size:1rem;font-weight:600;transition:background .3s ease}.save-choice-button:hover:not(:disabled){background:#2980b9}.save-choice-button:disabled{opacity:.6;cursor:not-allowed}.choice-saved-status{color:#27ae60;font-weight:600;margin-top:15px;font-size:.95rem}.generating-images{text-align:center;padding:40px;background:#f8f9fa;border-radius:8px;margin-top:25px}.generating-images p{margin-top:15px;color:#7f8c8d;font-style:italic}.image-selection{margin-top:30px;padding-top:25px;border-top:2px solid #e0e0e0}.image-selection .image-prompt{font-weight:600;color:#2c3e50;margin-bottom:20px;font-size:1.1rem}.image-selection .image-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}@media (max-width: 768px){.image-selection .image-grid{grid-template-columns:repeat(2,1fr)}}@media (max-width: 480px){.image-selection .image-grid{grid-template-columns:1fr}}.image-selection .image-option{border:3px solid #e0e0e0;border-radius:12px;overflow:hidden;cursor:pointer;transition:all .3s ease;background:#fff}.image-selection .image-option:hover{border-color:#3498db;transform:translateY(-2px);box-shadow:0 6px 12px #3498db33}.image-selection .image-option.selected{border-color:#3498db;box-shadow:0 4px 12px #3498db4d}.image-selection .image-option.selected .image-radio{background:#e8f4f8}.image-selection .image-option img{width:100%;height:auto;display:block;aspect-ratio:1/1;object-fit:cover}.image-selection .image-option .image-radio{padding:12px;display:flex;align-items:center;justify-content:center;gap:8px;background:#f8f9fa;border-top:1px solid #e0e0e0}.image-selection .image-option .image-radio input[type=radio]{width:18px;height:18px;cursor:pointer;accent-color:#3498db}.image-selection .image-option .image-radio input[type=radio]:disabled{cursor:not-allowed}.image-selection .image-option .image-radio label{font-weight:500;color:#2c3e50;cursor:pointer;font-size:.95rem}.image-actions{margin-top:25px;text-align:center}.save-image-button{background:#9b59b6;color:#fff;border:none;padding:12px 24px;border-radius:6px;cursor:pointer;font-size:1rem;font-weight:600;transition:background .3s ease}.save-image-button:hover:not(:disabled){background:#8e44ad}.save-image-button:disabled{opacity:.6;cursor:not-allowed}.image-saved-status{color:#9b59b6;font-weight:600;margin-top:15px;font-size:.95rem;text-align:center}.page-image{margin:20px 0;text-align:center}.page-image img{max-width:100%;max-height:400px;border-radius:8px;box-shadow:0 4px 12px #0000001a}.spinner{display:inline-block;width:1em;height:1em;border:2px solid #ccc;border-top-color:#333;border-radius:50%;animation:spin .6s linear infinite;margin-left:1rem}@keyframes spin{to{transform:rotate(360deg)}}.nav-bar{display:flex;justify-content:space-around;align-items:center;background-color:#2c3e50;padding:1rem;height:60px}.nav-bar .nav-link{color:#ecf0f1;text-decoration:none;font-weight:700;transition:color .3s}.nav-bar .nav-link:hover{color:#1abc9c}.route-content{flex:1;padding:2rem;background-color:#121212}
