/* ==========================================================================
   Design System Variables & Base Settings
   ========================================================================== */
:root {
    --color-bg-darkest: hsl(240, 15%, 8%);
    --color-bg-dark: hsl(240, 12%, 12%);
    --color-bg-card: hsla(240, 10%, 16%, 0.75);
    --color-bg-card-hover: hsla(240, 10%, 20%, 0.85);
    --color-border: hsl(240, 10%, 22%);
    --color-border-focus: hsl(263, 60%, 45%);
    
    /* Harmonious Accents */
    --color-primary: hsl(263, 75%, 60%);
    --color-primary-hover: hsl(263, 85%, 66%);
    --color-secondary: hsl(300, 70%, 50%);
    --color-gradient-accent: linear-gradient(135deg, hsl(263, 75%, 60%), hsl(300, 70%, 50%));
    
    /* Status Colors */
    --color-success: hsl(145, 65%, 45%);
    --color-warning: hsl(35, 90%, 50%);
    --color-danger: hsl(355, 75%, 55%);
    
    /* Text Hierarchy */
    --color-text-primary: hsl(0, 0%, 96%);
    --color-text-secondary: hsl(240, 8%, 70%);
    --color-text-muted: hsl(240, 6%, 50%);
    
    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-darkest);
}
::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

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

body {
    background-color: var(--color-bg-darkest);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    overflow: hidden;
}

/* ==========================================================================
   Layout Structure
   ========================================================================== */
#app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Sidebar Styling */
#sidebar {
    width: 380px;
    background-color: var(--color-bg-dark);
    border-right: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    flex-shrink: 0;
    padding: 24px;
    gap: 24px;
}

/* Main Workspace */
#workspace {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* ==========================================================================
   Sidebar Components
   ========================================================================== */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.brand-icon {
    font-size: 24px;
    background: var(--color-gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.brand h2 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.5px;
}
.badge {
    background-color: hsl(240, 10%, 18%);
    color: var(--color-text-secondary);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    margin-left: auto;
    border: 1px solid var(--color-border);
}

.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 24px;
}
.sidebar-section:last-child {
    border-bottom: none;
}
.sidebar-section h3 {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Inputs & Form Controls */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
label {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-secondary);
}
input[type="text"],
input[type="number"],
input[type="password"],
select,
textarea {
    background-color: hsl(240, 10%, 15%);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    padding: 10px 14px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
input[type="text"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
    border-color: var(--color-border-focus);
    box-shadow: 0 0 0 3px hsla(263, 75%, 60%, 0.15);
}
textarea {
    resize: vertical;
}

/* Password eye button wrapper */
.password-wrapper {
    display: flex;
    position: relative;
}
.password-wrapper input {
    width: 100%;
    padding-right: 45px;
}
.password-wrapper .btn-icon {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
    font-size: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color var(--transition-fast);
}
.password-wrapper .btn-icon:hover {
    background-color: hsl(240, 10%, 20%);
    color: var(--color-text-primary);
}

.helper-text {
    font-size: 11px;
    color: var(--color-text-muted);
}

/* File Upload Widget */
.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: hsla(240, 10%, 15%, 0.5);
    border: 2px dashed var(--color-border);
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    gap: 8px;
    transition: border-color var(--transition-fast), background-color var(--transition-fast);
}
.file-upload-label:hover {
    border-color: var(--color-primary);
    background: hsla(240, 10%, 15%, 0.8);
}
.file-upload-label i {
    font-size: 24px;
    color: var(--color-text-secondary);
}
.file-upload-label span {
    font-size: 13px;
    font-weight: 500;
}

#file-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: hsl(240, 10%, 18%);
    border: 1px solid var(--color-border);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
}
.file-status-hidden {
    display: none !important;
}
#file-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 260px;
}
.btn-icon-danger {
    background: transparent;
    border: none;
    color: var(--color-danger);
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
}
.btn-icon-danger:hover {
    opacity: 0.8;
}

/* ==========================================================================
   Workspace Main Panels
   ========================================================================== */
#step-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--color-bg-dark);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 40px;
}
.step-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0.4;
    transition: opacity var(--transition-normal);
}
.step-indicator.active {
    opacity: 1;
}
.step-indicator.completed {
    opacity: 0.8;
}
.step-indicator.completed .step-num {
    background: var(--color-success);
    border-color: var(--color-success);
    color: white;
}
.step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 13px;
}
.step-indicator.active .step-num {
    border-color: var(--color-primary);
    background-color: var(--color-primary);
    color: white;
}
.step-title {
    font-weight: 600;
    font-size: 14px;
}
.step-arrow {
    opacity: 0.2;
    font-size: 12px;
}

/* Generic Panel Layout */
.workspace-panel {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 32px 40px;
}
.panel-header {
    margin-bottom: 24px;
}
.panel-header h2 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.panel-header h2 i {
    color: var(--color-primary);
}
.panel-header p {
    color: var(--color-text-secondary);
    font-size: 14px;
}

.panel-content {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 8px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.flex-panel {
    justify-content: flex-start;
}

.panel-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--color-border);
    padding-top: 24px;
    margin-top: 24px;
}

/* ==========================================================================
   Buttons Setup
   ========================================================================== */
.btn-primary,
.btn-secondary,
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    outline: none;
    transition: transform var(--transition-fast), background-color var(--transition-fast), opacity var(--transition-fast);
}
.btn-primary {
    background-color: var(--color-primary);
    color: white;
}
.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-1px);
}
.btn-secondary {
    background-color: hsl(240, 10%, 18%);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
}
.btn-secondary:hover {
    background-color: hsl(240, 10%, 22%);
    transform: translateY(-1px);
}
.btn-action {
    background: var(--color-gradient-accent);
    color: white;
    box-shadow: 0 4px 15px hsla(263, 75%, 60%, 0.3);
}
.btn-action:hover:not(:disabled) {
    transform: translateY(-1px);
    opacity: 0.95;
    box-shadow: 0 6px 20px hsla(263, 75%, 60%, 0.45);
}
.btn-action:disabled {
    background: hsl(240, 10%, 16%);
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
    box-shadow: none;
    cursor: not-allowed;
}
.btn-xl {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: 12px;
}

/* ==========================================================================
   Wizard Step 1: Timeline Skeleton Editor
   ========================================================================== */
.timeline-summary-bar {
    display: flex;
    gap: 32px;
    background: hsla(240, 10%, 12%, 0.6);
    border: 1px solid var(--color-border);
    padding: 16px 24px;
    border-radius: 12px;
}
.summary-metric {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.summary-metric .label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-text-muted);
    letter-spacing: 0.5px;
}
.summary-metric .value {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
}

.warning-box {
    background-color: hsla(35, 90%, 50%, 0.1);
    border: 1px solid var(--color-warning);
    color: var(--color-warning);
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: fadeIn var(--transition-fast);
}

.timeline-controls-add {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
}

/* Timeline Block Item List styling */
.timeline-block-item {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    padding: 16px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast);
}
.timeline-block-item:hover {
    border-color: hsl(240, 10%, 30%);
    background-color: var(--color-bg-card-hover);
}

/* Drag indicator or layout decoration */
.block-drag-handle {
    color: var(--color-text-muted);
    cursor: default;
    font-size: 16px;
}

.block-duration-input {
    width: 80px;
    text-align: center;
}

.block-name-input {
    flex-grow: 1;
    font-weight: 600;
}

.block-type-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.block-type-setup {
    background-color: hsl(240, 10%, 20%);
    color: var(--color-text-secondary);
}
.block-type-dinamica {
    background-color: hsla(263, 75%, 60%, 0.15);
    color: hsl(263, 75%, 70%);
    border: 1px solid hsla(263, 75%, 60%, 0.3);
}
.block-type-explicacao {
    background-color: hsla(300, 70%, 50%, 0.15);
    color: hsl(300, 70%, 65%);
    border: 1px solid hsla(300, 70%, 50%, 0.3);
}

.btn-remove-block {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: 16px;
    padding: 8px;
    border-radius: 50%;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}
.btn-remove-block:hover {
    background-color: hsla(355, 75%, 55%, 0.15);
    color: var(--color-danger);
}

/* ==========================================================================
   Wizard Step 2: Dynamics Grid
   ========================================================================== */
.centered-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 16px;
    max-width: 500px;
    margin: 60px auto;
}
.prompt-large-icon {
    font-size: 64px;
    color: var(--color-text-muted);
    margin-bottom: 8px;
    animation: pulse 2s infinite ease-in-out;
}
.text-purple {
    color: var(--color-secondary);
}
.selected-dynamic-preview-box {
    background: hsl(240, 10%, 14%);
    border: 1px solid var(--color-border);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--color-text-secondary);
}

.dynamics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

/* Dynamic Option Card */
.dynamic-card {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    padding: 20px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 180px;
    position: relative;
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}
.dynamic-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}
.dynamic-card.selected {
    border-color: var(--color-primary);
    background-color: hsla(263, 75%, 60%, 0.08);
    box-shadow: 0 0 0 2px var(--color-primary);
}
.dynamic-card h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
}
.dynamic-card p {
    font-size: 12px;
    color: var(--color-text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

/* Ribbon badge for active card selection */
.dynamic-card-selected-ribbon {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 14px;
    color: var(--color-primary);
}

/* Selected Detailed Dynamic Viewer */
.detail-card {
    background: hsla(240, 10%, 14%, 0.6);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: slideUp var(--transition-normal);
}
.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 16px;
}
.detail-header h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
}
.detail-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
.detail-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.detail-section h4 {
    font-size: 13px;
    color: var(--color-primary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.detail-section ul {
    list-style-position: inside;
    font-size: 14px;
    color: var(--color-text-secondary);
}
.detail-section p {
    font-size: 14px;
    color: var(--color-text-secondary);
}

.badge-success {
    background-color: hsla(145, 65%, 45%, 0.15);
    color: var(--color-success);
    border: 1px solid hsla(145, 65%, 45%, 0.3);
}

/* Human-in-the-loop Refinement control box */
.refinement-box {
    margin-top: 12px;
    background-color: hsl(240, 10%, 11%);
    border: 1px solid var(--color-border);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.refine-controls {
    display: flex;
    gap: 16px;
}
.refine-controls textarea {
    flex-grow: 1;
    height: 70px;
}
.refine-controls button {
    align-self: flex-end;
    height: 48px;
}

/* ==========================================================================
   Wizard Step 3: Explanation Editing
   ========================================================================== */
#explanation-editor-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-grow: 1;
    animation: fadeIn var(--transition-normal);
}
.editor-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
#explanation-rich-text {
    width: 100%;
    flex-grow: 1;
    font-family: 'Courier New', Courier, monospace; /* Clean monospace output for code blocks, indentations */
    font-size: 14px;
    line-height: 1.6;
    padding: 20px;
    background-color: hsl(240, 10%, 11%);
}

/* ==========================================================================
   Wizard Step 4: Print Sheet & Compiled View
   ========================================================================== */
.print-sheet {
    background-color: white;
    color: hsl(240, 15%, 15%);
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    padding: 50px 60px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    font-size: 14px;
}

.sheet-header {
    border-bottom: 2px solid hsl(240, 10%, 15%);
    padding-bottom: 16px;
}
.sheet-brand {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}
.sheet-header h1 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: hsl(240, 15%, 10%);
    line-height: 1.2;
    margin-bottom: 12px;
}
.sheet-meta-grid {
    display: flex;
    gap: 24px;
    font-size: 13px;
    color: hsl(240, 10%, 35%);
}

.sheet-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.sheet-section-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid hsl(240, 10%, 85%);
    padding-bottom: 8px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: hsl(240, 15%, 20%);
}

/* Timeline visual blocks generator */
.sheet-timeline {
    display: flex;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid hsl(240, 10%, 80%);
}
.sheet-timeline-block {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: 600;
    font-size: 11px;
    text-align: center;
    padding: 0 4px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
/* Cohesive soft colors for printed timeline */
.sheet-block-setup { background-color: hsl(240, 10%, 35%); }
.sheet-block-dinamica { background-color: hsl(263, 50%, 50%); }
.sheet-block-explicacao { background-color: hsl(300, 45%, 45%); }

/* Materials Checklist */
.materials-checklist {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
    list-style: none;
}
.materials-checklist li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}
.materials-checklist input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid hsl(240, 10%, 70%);
    cursor: pointer;
}

.adaptation-note {
    background-color: hsl(240, 10%, 96%);
    border-left: 4px solid var(--color-primary);
    padding: 16px;
    border-radius: 4px;
    font-size: 13px;
    margin-top: 8px;
}
.adaptation-note strong {
    display: block;
    margin-bottom: 4px;
    color: hsl(240, 15%, 15%);
}

.sheet-text {
    font-size: 13.5px;
    color: hsl(240, 10%, 25%);
    line-height: 1.6;
}
.whitespace-pre {
    white-space: pre-wrap;
    font-family: inherit;
}

/* ==========================================================================
   Modals & Popups
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    animation: fadeIn var(--transition-fast);
}
.modal-card {
    background-color: var(--color-bg-dark);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    width: 450px;
    max-width: 90%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    animation: scaleUp var(--transition-fast);
}
.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
}
.btn-close-modal {
    background: transparent;
    border: none;
    color: var(--color-text-secondary);
    font-size: 24px;
    cursor: pointer;
}
.modal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* ==========================================================================
   Loading Indicator Widgets
   ========================================================================== */
#loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    backdrop-filter: blur(2px);
    animation: fadeIn var(--transition-fast);
}
.loader-card {
    background-color: var(--color-bg-dark);
    border: 1px solid var(--color-border);
    padding: 40px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 320px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.loader-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--color-border);
    border-top: 4px solid var(--color-primary);
    border-radius: 50%;
    animation: spin 1s infinite linear;
}
.loader-card h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
}
.loader-card p {
    font-size: 12px;
    color: var(--color-text-secondary);
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.05); opacity: 0.9; }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes scaleUp {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
@keyframes slideUp {
    from { transform: translateY(15px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.hidden {
    display: none !important;
}

.btn-reorder {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: 11px;
    padding: 2px;
    transition: color var(--transition-fast), transform var(--transition-fast);
}
.btn-reorder:hover:not(:disabled) {
    color: var(--color-primary);
}
.btn-reorder:disabled {
    color: hsl(240, 10%, 18%);
    cursor: not-allowed;
    opacity: 0.3;
}

/* ==========================================================================
   Print Overrides (Clean white document styling)
   ========================================================================== */
@media print {
    body {
        background: white !important;
        color: black !important;
        overflow: visible !important;
        font-size: 12pt;
    }
    #app-container {
        display: block !important;
        height: auto !important;
        width: auto !important;
    }
    #sidebar,
    #step-nav,
    .panel-header,
    .panel-footer,
    .nocontent,
    .modal-overlay,
    #loading-overlay {
        display: none !important;
    }
    #workspace {
        display: block !important;
        overflow: visible !important;
    }
    .workspace-panel {
        display: none !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
    }
    #panel-step-4 {
        display: block !important;
    }
    .panel-content {
        overflow: visible !important;
        display: block !important;
    }
    .print-sheet {
        box-shadow: none !important;
        padding: 10mm !important;
        margin: 0 !important;
        background: transparent !important;
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
    }
    .sheet-header {
        border-bottom: 2px solid black !important;
    }
    .sheet-section {
        margin-bottom: 24pt;
        page-break-inside: avoid;
    }
    .sheet-section-title {
        border-bottom: 1px solid #ccc !important;
        color: black !important;
    }
    .sheet-timeline {
        border: 1px solid #999 !important;
    }
    .sheet-block-setup { background-color: #777 !important; color: white !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .sheet-block-dinamica { background-color: #555 !important; color: white !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .sheet-block-explicacao { background-color: #333 !important; color: white !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    
    .adaptation-note {
        background-color: #f5f5f5 !important;
        border-left: 4px solid #555 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .materials-checklist li {
        font-size: 11pt;
    }
    .page-break-before {
        page-break-before: always;
    }
}
