/* ============================================
   Employee Onboarding OS - Main Stylesheet
   Modern B2B SaaS Interface
   Color Palette: Deep Blue (#1e3a5f) + Teal (#14b8a6)
   ============================================ */

/* ===== CSS RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Colors */
    --color-primary-blue: #1e3a5f;
    --color-primary-blue-dark: #152a45;
    --color-primary-blue-light: #2d5178;
    --color-teal: #14b8a6;
    --color-teal-dark: #0f9488;
    --color-teal-light: #2dd4bf;
    
    /* Neutral Colors */
    --color-background: #f8fafc;
    --color-surface: #ffffff;
    --color-border: #e2e8f0;
    --color-text-primary: #1e293b;
    --color-text-secondary: #64748b;
    --color-text-muted: #94a3b8;
    
    /* Status Colors */
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    --color-info: #3b82f6;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Transitions */
    --transition-base: all 0.2s ease;
    --transition-slow: all 0.3s ease;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-background);
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== SIDEBAR NAVIGATION ===== */
.sidebar {
    width: 280px;
    background: var(--color-primary-blue);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.sidebar-header {
    padding: var(--spacing-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: var(--font-size-xl);
    font-weight: 700;
}

.logo i {
    color: var(--color-teal);
    font-size: 1.75rem;
}

.sidebar-nav {
    flex: 1;
    padding: var(--spacing-lg) 0;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-xl);
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-base);
    font-weight: 500;
    position: relative;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-item.active {
    background: rgba(20, 184, 166, 0.2);
    color: white;
    border-right: 3px solid var(--color-teal);
}

.nav-item i {
    font-size: var(--font-size-lg);
    width: 24px;
    text-align: center;
}

.sidebar-footer {
    padding: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: var(--font-size-sm);
}

.user-info {
    flex: 1;
}

.user-name {
    font-weight: 600;
    font-size: var(--font-size-sm);
}

.user-role {
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.6);
}

/* ===== MAIN CONTENT AREA ===== */
.main-content {
    margin-left: 280px;
    flex: 1;
    padding: var(--spacing-2xl);
    max-width: 1600px;
    width: 100%;
}

.screen {
    display: none;
    animation: fadeIn 0.3s ease;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== PAGE HEADER ===== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-2xl);
}

.page-header h1 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--color-primary-blue);
    margin-bottom: var(--spacing-xs);
}

.subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
}

.header-actions {
    display: flex;
    gap: var(--spacing-md);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 0.625rem 1.25rem;
    font-size: var(--font-size-sm);
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-base);
    text-decoration: none;
    font-family: var(--font-family);
}

.btn-primary {
    background: var(--color-teal);
    color: white;
}

.btn-primary:hover {
    background: var(--color-teal-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-background);
    border-color: var(--color-primary-blue);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary-blue);
    border: 1px solid var(--color-border);
}

.btn-outline:hover {
    background: var(--color-background);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: var(--font-size-xs);
}

.btn-feedback {
    background: white;
    color: var(--color-primary-blue);
    border: 1px solid var(--color-border);
    padding: 0.5rem 1rem;
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.btn-feedback:hover {
    background: var(--color-teal);
    color: white;
    border-color: var(--color-teal);
}

.btn-link {
    background: none;
    border: none;
    color: var(--color-teal);
    padding: 0.5rem 0;
    font-size: var(--font-size-sm);
}

.btn-link:hover {
    color: var(--color-teal-dark);
    text-decoration: underline;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
    padding: 0.25rem;
}

.btn-icon:hover {
    color: var(--color-error);
}

/* ===== FILTERS ===== */
.filters {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.filter-group {
    flex: 1;
}

.filter-group label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-sm);
}

.filter-select {
    width: 100%;
    padding: 0.625rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-family: var(--font-family);
    background: white;
    cursor: pointer;
    transition: var(--transition-base);
}

.filter-select:focus {
    outline: none;
    border-color: var(--color-teal);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

/* ===== TEMPLATE CARDS (SCREEN 1) ===== */
.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: var(--spacing-xl);
}

.template-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    position: relative;
    border: 2px solid transparent;
}

.template-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-teal);
}

.template-card.featured {
    border-color: var(--color-teal);
}

.card-badge {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: var(--color-teal);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 600;
}

.card-header {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--color-primary-blue), var(--color-teal));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.card-header h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-primary-blue);
}

.card-description {
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

.card-stats {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.stat {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.stat i {
    color: var(--color-teal);
}

.card-goals {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.goal-chip {
    padding: 0.375rem 0.75rem;
    background: var(--color-background);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    color: var(--color-text-primary);
    font-weight: 500;
}

.card-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.card-actions .btn {
    flex: 1;
}

/* ===== PROGRESS OVERVIEW (SCREEN 2) ===== */
.progress-overview {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacing-xl);
}

.overview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.overview-header h2 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--color-primary-blue);
}

.progress-percentage {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-teal);
}

.progress-bar-container {
    width: 100%;
    height: 12px;
    background: var(--color-background);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--spacing-xl);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-teal), var(--color-teal-light));
    border-radius: var(--radius-lg);
    transition: width 0.5s ease;
}

.progress-milestones {
    display: flex;
    justify-content: space-between;
    gap: var(--spacing-md);
}

.milestone {
    flex: 1;
    text-align: center;
}

.milestone-marker {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-border);
    margin: 0 auto var(--spacing-sm);
    transition: var(--transition-base);
}

.milestone.completed .milestone-marker {
    background: var(--color-success);
}

.milestone.active .milestone-marker {
    background: var(--color-teal);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.2);
}

.milestone-label {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-xs);
}

.milestone-status {
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
}

.milestone.completed .milestone-status {
    color: var(--color-success);
}

.milestone.active .milestone-status {
    color: var(--color-teal);
}

/* ===== PERIOD TILES (SCREEN 2) ===== */
.period-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.period-tile {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
    transition: var(--transition-base);
}

.period-tile:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.period-tile.completed {
    border-color: var(--color-success);
}

.period-tile.active {
    border-color: var(--color-teal);
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.05), white);
}

.period-header {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.period-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--color-primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.period-tile.completed .period-icon {
    background: var(--color-success);
}

.period-tile.active .period-icon {
    background: var(--color-teal);
}

.period-header h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-primary-blue);
    margin-bottom: var(--spacing-xs);
}

.period-header p {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
}

.period-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.stat-item {
    text-align: center;
    padding: var(--spacing-md);
    background: var(--color-background);
    border-radius: var(--radius-md);
}

.stat-value {
    display: block;
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--color-primary-blue);
}

.stat-label {
    display: block;
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
    margin-top: var(--spacing-xs);
}

.expand-btn {
    width: 100%;
}

/* ===== GOALS SECTION (SCREEN 2) ===== */
.goals-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
}

.goals-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.goals-header h2 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--color-primary-blue);
}

.goals-filter {
    display: flex;
    gap: var(--spacing-sm);
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-base);
    color: var(--color-text-secondary);
}

.filter-btn:hover {
    background: var(--color-background);
}

.filter-btn.active {
    background: var(--color-teal);
    color: white;
    border-color: var(--color-teal);
}

/* ===== GOAL ITEMS (SCREEN 2) ===== */
.goal-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.goal-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--color-background);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--color-border);
    transition: var(--transition-base);
}

.goal-item:hover {
    box-shadow: var(--shadow-md);
}

.goal-item.achieved {
    border-left-color: var(--color-success);
    background: rgba(16, 185, 129, 0.05);
}

.goal-item.in-progress {
    border-left-color: var(--color-teal);
    background: rgba(20, 184, 166, 0.05);
}

.goal-item.pending {
    border-left-color: var(--color-text-muted);
}

.goal-status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-border);
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.goal-item.achieved .goal-status-indicator {
    background: var(--color-success);
}

.goal-item.in-progress .goal-status-indicator {
    background: var(--color-teal);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.goal-content {
    flex: 1;
}

.goal-main {
    margin-bottom: var(--spacing-md);
}

.goal-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.goal-title h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-primary-blue);
    flex: 1;
}

.goal-badge {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 600;
    flex-shrink: 0;
}

.goal-badge.achieved {
    background: var(--color-success);
    color: white;
}

.goal-badge.in-progress {
    background: var(--color-teal);
    color: white;
}

.goal-badge.pending {
    background: var(--color-text-muted);
    color: white;
}

.goal-description {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.6;
}

/* ===== DEFINITION OF DONE ===== */
.goal-dod {
    background: white;
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.dod-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary-blue);
}

.dod-header i {
    color: var(--color-teal);
}

.dod-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.dod-list li {
    padding-left: var(--spacing-lg);
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

.dod-list li.checked {
    color: var(--color-success);
    text-decoration: line-through;
}

.goal-meta {
    display: flex;
    gap: var(--spacing-lg);
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
}

.goal-meta i {
    color: var(--color-teal);
}

/* ===== ANALYTICS WIDGET (SCREEN 3) ===== */
.analytics-widget {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.widget-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    display: flex;
    gap: var(--spacing-md);
    transition: var(--transition-base);
}

.widget-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.widget-card.highlight {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--color-primary-blue), var(--color-primary-blue-light));
    color: white;
}

.widget-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background: rgba(20, 184, 166, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--color-teal);
    flex-shrink: 0;
}

.widget-card.highlight .widget-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.widget-content {
    flex: 1;
}

.widget-content h3 {
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    opacity: 0.9;
}

.widget-card.highlight h3 {
    color: white;
}

.widget-value {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--color-primary-blue);
    margin-bottom: var(--spacing-sm);
}

.widget-card.highlight .widget-value {
    color: white;
}

.widget-detail {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.widget-card.highlight .widget-detail {
    color: rgba(255, 255, 255, 0.9);
}

.widget-description {
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.8);
    margin-top: var(--spacing-sm);
    line-height: 1.5;
}

.trend {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-weight: 600;
}

.trend.positive {
    color: var(--color-teal-light);
}

/* ===== SPLIT VIEW (SCREEN 3) ===== */
.split-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

.view-panel {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--color-border);
}

.panel-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.panel-title h2 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-primary-blue);
}

.panel-title i {
    color: var(--color-teal);
    font-size: 1.5rem;
}

.panel-badge {
    padding: 0.375rem 0.75rem;
    background: var(--color-teal);
    color: white;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 600;
}

/* ===== EXPECTATIONS SECTION (SCREEN 3) ===== */
.expectations-section h3 {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--color-primary-blue);
    margin-bottom: var(--spacing-lg);
}

.expectation-item {
    background: var(--color-background);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    border-left: 4px solid var(--color-border);
}

.expectation-item.on-track {
    border-left-color: var(--color-success);
}

.expectation-item.upcoming {
    border-left-color: var(--color-text-muted);
}

.expectation-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
}

.expectation-header h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-primary-blue);
    margin-bottom: var(--spacing-xs);
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 600;
}

.status-badge.success {
    background: var(--color-success);
    color: white;
}

.status-badge.warning {
    background: var(--color-warning);
    color: white;
}

.status-badge.neutral {
    background: var(--color-text-muted);
    color: white;
}

.expectation-score {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-primary-blue);
}

.expectation-detail {
    margin-bottom: var(--spacing-md);
}

.expectation-detail p {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
}

.expectation-detail strong {
    color: var(--color-text-primary);
}

/* ===== NOTES SECTION (SCREEN 3) ===== */
.notes-section {
    margin-top: var(--spacing-xl);
}

.notes-section h3 {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--color-primary-blue);
    margin-bottom: var(--spacing-lg);
}

.note-item {
    background: var(--color-background);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.note-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-sm);
}

.note-author {
    font-weight: 600;
    color: var(--color-primary-blue);
    font-size: var(--font-size-sm);
}

.note-date {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
}

.note-item p {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* ===== PROGRESS TIMELINE (SCREEN 3) ===== */
.progress-timeline {
    position: relative;
}

.timeline-item {
    position: relative;
    padding-left: var(--spacing-2xl);
    padding-bottom: var(--spacing-xl);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 32px;
    bottom: 0;
    width: 2px;
    background: var(--color-border);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--font-size-xs);
}

.timeline-item.completed .timeline-marker {
    background: var(--color-success);
}

.timeline-item.active .timeline-marker {
    background: var(--color-teal);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.2);
}

.timeline-item.upcoming .timeline-marker {
    background: var(--color-text-muted);
}

.timeline-content {
    background: var(--color-background);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
}

.timeline-header h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-primary-blue);
}

.timeline-date {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
}

.timeline-goals {
    margin-bottom: var(--spacing-md);
}

.goal-summary {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.goal-count {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text-primary);
}

.goal-progress-mini {
    flex: 1;
    height: 6px;
    background: var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--color-teal);
    border-radius: var(--radius-sm);
    transition: width 0.5s ease;
}

.goal-percentage {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-teal);
}

.timeline-highlights {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.highlight-badge {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    background: white;
    color: var(--color-text-secondary);
}

.highlight-badge.current {
    background: var(--color-teal);
    color: white;
}

.highlight-badge.upcoming {
    background: var(--color-border);
}

/* ===== QUICK ACTIONS (SCREEN 3) ===== */
.quick-actions {
    margin-top: var(--spacing-xl);
}

.quick-actions h3 {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--color-primary-blue);
    margin-bottom: var(--spacing-md);
}

.action-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    width: 100%;
    padding: var(--spacing-md);
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text-primary);
    cursor: pointer;
    transition: var(--transition-base);
    margin-bottom: var(--spacing-sm);
}

.action-btn:hover {
    background: white;
    border-color: var(--color-teal);
    color: var(--color-teal);
}

.action-btn i {
    color: var(--color-teal);
}

/* ===== VIEW TOGGLE (SCREEN 3) ===== */
.view-toggle {
    display: flex;
    gap: var(--spacing-sm);
}

.toggle-btn {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-base);
}

.toggle-btn:hover {
    background: var(--color-background);
}

.toggle-btn.active {
    background: var(--color-teal);
    color: white;
    border-color: var(--color-teal);
}

/* ===== MODALS ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: var(--radius-xl);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-xl);
    border-bottom: 1px solid var(--color-border);
}

.modal-header h2 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--color-primary-blue);
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--color-background);
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: var(--transition-base);
}

.modal-close:hover {
    background: var(--color-error);
    color: white;
}

.modal-body {
    padding: var(--spacing-xl);
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-md);
    padding: var(--spacing-xl);
    border-top: 1px solid var(--color-border);
}

/* ===== EDIT SECTION (MODAL) ===== */
.edit-section {
    margin-bottom: var(--spacing-xl);
}

.edit-section h3 {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--color-primary-blue);
    margin-bottom: var(--spacing-md);
}

.goal-edit-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.goal-edit-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: var(--color-background);
    border-radius: var(--radius-md);
}

.goal-edit-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.goal-edit-item input[type="text"] {
    flex: 1;
    padding: var(--spacing-sm);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    font-family: var(--font-family);
}

.goal-edit-item input[type="text"]:focus {
    outline: none;
    border-color: var(--color-teal);
}

/* ===== FEEDBACK FORM (MODAL) ===== */
.feedback-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.form-group label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-sm);
}

.form-control {
    width: 100%;
    padding: 0.625rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-family: var(--font-family);
    transition: var(--transition-base);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-teal);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.radio-group {
    display: flex;
    gap: var(--spacing-lg);
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 500;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1400px) {
    .split-view {
        grid-template-columns: 1fr;
    }
    
    .widget-card.highlight {
        grid-column: span 1;
    }
}

@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }
    
    .main-content {
        margin-left: 240px;
    }
    
    .template-grid {
        grid-template-columns: 1fr;
    }
    
    .period-tiles {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }
    
    .main-content {
        margin-left: 200px;
        padding: var(--spacing-lg);
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .analytics-widget {
        grid-template-columns: 1fr;
    }
    
    .goals-header {
        flex-direction: column;
    }
    
    .goals-filter {
        flex-wrap: wrap;
    }
}

@media (max-width: 640px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .nav-item span {
        display: none;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }