/* Self-Discovery Workbook Styles (Version 6.0.0 - With Simplified Mode) */

#sdw-workbook-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    max-width: 768px;
    margin: 2rem auto;
    padding: 1rem;
    color: #333;
}

.sdw-header { text-align: center; margin-bottom: 1rem; }
.sdw-header h1 { font-size: 2.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.sdw-header p { font-size: 1.125rem; color: #666; }

.sdw-mode-toggle-wrapper { text-align: center; margin-bottom: 2rem; }
#sdw-mode-toggle-button {
    background: none;
    border: 1px solid #a5b4fc;
    color: #4f46e5;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}
#sdw-mode-toggle-button:hover { background-color: #e0e7ff; }

.sdw-card { background-color: #ffffff; border-radius: 8px; padding: 1.5rem; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06); margin-bottom: 1.5rem; }
.sdw-intro-text { margin-bottom: 2rem; line-height: 1.6; }
.sdw-sections-wrapper { display: flex; flex-direction: column; gap: 2rem; }
.sdw-section { margin-bottom: 1.5rem; }
.sdw-section:last-child { margin-bottom: 0; }
.sdw-section h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 1rem; border-bottom: 1px solid #eee; padding-bottom: 0.5rem; }
.sdw-items-wrapper, .sdw-objective-wrapper { display: flex; flex-direction: column; gap: 1rem; }

/* Detailed View Specifics */
.sdw-item-container { display: flex; flex-direction: column; align-items: flex-start; }
.sdw-item-main { display: flex; justify-content: space-between; align-items: center; width: 100%; gap: 1rem; }
.sdw-item-main label { display: flex; align-items: center; gap: 0.5rem; flex-grow: 1; }
.sdw-slider-wrapper { display: flex; align-items: center; gap: 0.75rem; transition: opacity 0.3s; opacity: 0.5; min-width: 220px; }
.sdw-slider-wrapper.enabled { opacity: 1; }
.sdw-slider-wrapper input[type="range"] { flex-grow: 1; }
.sdw-slider-wrapper span { font-weight: 500; width: 2ch; text-align: right; }
.sdw-reasoning-wrapper { display: none; width: 100%; padding-left: 1.75rem; margin-top: 0.75rem; }
.sdw-reasoning-wrapper.visible { display: block; }
.sdw-reasoning-wrapper textarea { width: 100%; padding: 0.5rem; border: 1px solid #ddd; border-radius: 6px; min-height: 70px; font-family: inherit; font-size: 0.95rem; color: #333; transition: border-color 0.2s; }
.sdw-reasoning-wrapper textarea:focus { outline: none; border-color: #4f46e5; }
.sdw-objective-wrapper label { display: flex; align-items: center; gap: 0.5rem; }

/* Simplified View Specifics */
#sdw-simple-view select, #sdw-simple-view textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
}
#sdw-simple-view textarea { min-height: 100px; }
#sdw-char-counter { font-size: 0.8rem; text-align: right; color: #999; margin-top: 0.25rem; }
.sdw-button-wrapper-simple { text-align: left; margin-top: 1rem; }
#sdw-rant-button { background: none; border: none; color: #4f46e5; text-decoration: underline; cursor: pointer; padding: 0; }

/* Shared Buttons */
.sdw-button-wrapper { text-align: center; margin-top: 2rem; }
#get-guidance, #save-pdf-button { background-color: #4f46e5; color: white; font-weight: 700; padding: 0.75rem 1.5rem; border: none; border-radius: 8px; cursor: pointer; transition: background-color 0.2s; }
#get-guidance:hover, #save-pdf-button:hover { background-color: #4338ca; }
#get-guidance:disabled, #save-pdf-button:disabled { background-color: #a5b4fc; cursor: not-allowed; }
#save-pdf-button { background-color: #6d28d9; margin-top: 1.5rem; }
#save-pdf-button:hover { background-color: #5b21b6; }

/* Results */
#guidance-container h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; }
#guidance-content { line-height: 1.7; }
#guidance-content strong { font-weight: 700; }
#guidance-content em { font-style: italic; }
