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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #F5F5F7;
    min-height: 100vh;
    padding: 20px;
    color: #1D1D1F;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 48px;
    margin-bottom: 32px;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.5em;
    color: #1D1D1F;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.subtitle {
    color: #86868B;
    font-size: 1.1em;
    font-weight: 400;
}

.phase {
    display: none;
}

.phase.active {
    display: block;
}

.instruction {
    color: #86868B;
    margin-bottom: 24px;
    font-size: 0.95em;
    line-height: 1.5;
}

#goal-form {
    margin-top: 30px;
}

#goal-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #D2D2D7;
    border-radius: 6px;
    font-size: 1em;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.15s ease;
    background: #FFFFFF;
}

#goal-input:focus {
    outline: none;
    border-color: #007AFF;
}

#analyze-btn, #submit-constraints-btn, #generate-plan-btn {
    width: 100%;
    padding: 14px 24px;
    margin-top: 24px;
    background: #007AFF;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

#analyze-btn:hover:not(:disabled), #submit-constraints-btn:hover:not(:disabled), #generate-plan-btn:hover:not(:disabled) {
    background: #0051D5;
}

#analyze-btn:active:not(:disabled), #submit-constraints-btn:active:not(:disabled), #generate-plan-btn:active:not(:disabled) {
    background: #0040AB;
}

#analyze-btn:disabled, #submit-constraints-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #007AFF;
}

.loading {
    text-align: center;
    padding: 24px;
    color: #007AFF;
}

.hidden {
    display: none;
}

/* Plan Generation Loading */
.plan-loading {
    text-align: center;
    padding: 48px 24px;
    margin: 32px 0;
    background: #F5F5F7;
    border-radius: 8px;
    border: 1px dashed #D2D2D7;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #E5E5EA;
    border-top-color: #007AFF;
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 1.1em;
    font-weight: 500;
    color: #1D1D1F;
    margin-bottom: 8px;
}

.loading-subtext {
    color: #86868B;
    font-size: 0.9em;
}

.goal-summary {
    background: #F5F5F7;
    padding: 20px 24px;
    border-radius: 8px;
    margin-bottom: 32px;
    border-left: 3px solid #007AFF;
}

.goal-summary h3 {
    color: #1D1D1F;
    margin-bottom: 8px;
    font-weight: 600;
}

.constraint-section {
    margin-bottom: 40px;
}

.constraint-section h3 {
    color: #1D1D1F;
    margin-bottom: 8px;
    font-size: 1.25em;
    font-weight: 600;
}

.section-hint {
    color: #86868B;
    font-size: 0.9em;
    margin-bottom: 24px;
}

.constraint-question {
    margin-bottom: 20px;
    padding: 20px 24px;
    background: #FFFFFF;
    border-radius: 6px;
    border: 1px solid #D2D2D7;
    transition: border-color 0.15s ease;
}

.constraint-question:hover {
    border-color: #AEAEB2;
}

.constraint-question.critical {
    border-left: 3px solid #FF3B30;
}

.constraint-question.optional {
    border-left: 3px solid #86868B;
}

.constraint-question label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #1D1D1F;
}

.constraint-question .hint {
    font-size: 0.85em;
    color: #86868B;
    margin-bottom: 12px;
    font-style: normal;
}

.constraint-question input[type="text"],
.constraint-question input[type="number"],
.constraint-question select,
.constraint-question textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #D2D2D7;
    border-radius: 6px;
    font-size: 1em;
    font-family: inherit;
    background: #FFFFFF;
    transition: border-color 0.15s ease;
}

.constraint-question input:focus,
.constraint-question select:focus,
.constraint-question textarea:focus {
    outline: none;
    border-color: #007AFF;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.form-actions button {
    flex: 1;
}

.secondary {
    background: #F5F5F7 !important;
    color: #1D1D1F !important;
    border: 1px solid #D2D2D7 !important;
}

.secondary:hover {
    background: #E5E5EA !important;
}

.error {
    background: #FFF5F5;
    color: #D70015;
    padding: 12px 16px;
    border-radius: 6px;
    margin: 20px 0;
    border-left: 3px solid #FF3B30;
    font-size: 0.9em;
    font-weight: 400;
    line-height: 1.5;
    border: 1px solid #FFE5E5;
}

/* Probability Display - Modern Redesign */
.probability-display {
    margin: 30px 0;
}

.probability-card {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #D2D2D7;
}

.probability-card.probability-high {
    border-top: 3px solid #34C759;
}

.probability-card.probability-medium {
    border-top: 3px solid #FF9500;
}

.probability-card.probability-low {
    border-top: 3px solid #FF3B30;
}

.probability-score {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #E5E5EA;
}

.probability-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #007AFF;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
}

.probability-card.probability-high .probability-circle {
    background: #34C759;
}

.probability-card.probability-medium .probability-circle {
    background: #FF9500;
}

.probability-card.probability-low .probability-circle {
    background: #FF3B30;
}

.probability-number {
    font-size: 2.5em;
    font-weight: 600;
    color: #FFFFFF;
}

.probability-label {
    font-size: 1.1em;
    color: #1D1D1F;
    display: block;
    margin-top: 12px;
    font-weight: 500;
}

.probability-comparison {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.comparison-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    display: inline-block;
}

.comparison-badge.stronger {
    background: #d4edda;
    color: #155724;
}

.comparison-badge.weaker {
    background: #f8d7da;
    color: #721c24;
}

.base-rate-text {
    font-size: 0.85em;
    color: #6c757d;
}

/* Constraint Status Grid */
.constraint-status-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.constraint-status-item {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
}

.constraint-status-item.clickable {
    cursor: pointer;
}

.constraint-status-item.clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.constraint-status-item:hover {
    border-color: #AEAEB2;
}

/* Click hint icon */
.click-hint {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.9em;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.constraint-status-item:hover .click-hint {
    opacity: 1;
}

.constraint-status-item.adequate {
    border-color: #34C759;
    background: #F0FDF4;
}

.constraint-status-item.insufficient {
    border-color: #FF3B30;
    background: #FFF5F5;
}

.constraint-status-item.needs_development {
    border-color: #FF9500;
    background: #FFFBF0;
}

.status-icon {
    font-size: 2em;
}

.status-content {
    flex: 1;
}

.status-label {
    font-size: 0.85em;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.status-value {
    font-size: 1.3em;
    font-weight: 700;
    color: #212529;
}

.status-required {
    font-size: 0.85em;
    color: #e74c3c;
    margin-top: 5px;
    font-weight: 600;
}

/* Constraint Explanation Popup */
.constraint-popup {
    position: absolute;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 0;
    min-width: 320px;
    max-width: 400px;
    z-index: 1000;
    animation: popupSlideIn 0.2s ease;
    border: 1px solid #e9ecef;
}

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

.constraint-popup.hidden {
    display: none;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.popup-title {
    font-weight: 600;
    font-size: 1.1em;
    color: #1D1D1F;
}

.popup-close {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #86868B;
    line-height: 1;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.popup-close:hover {
    background: #e9ecef;
    color: #1D1D1F;
}

.popup-content {
    padding: 20px;
}

.popup-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    margin-bottom: 12px;
}

.popup-status.adequate {
    background: #D1FAE5;
    color: #065F46;
}

.popup-status.insufficient {
    background: #FEE2E2;
    color: #991B1B;
}

.popup-status.needs_development {
    background: #FEF3C7;
    color: #92400E;
}

.popup-explanation {
    color: #4B5563;
    line-height: 1.6;
    margin-bottom: 16px;
}

.popup-metric {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
}

.metric-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.metric-fill {
    height: 100%;
    background: linear-gradient(90deg, #34C759, #30D158);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.metric-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85em;
    color: #6B7280;
    margin-bottom: 8px;
}

/* Key Success Factors Sections */
.key-factors-section,
.resource-factors-section {
    margin: 24px 0;
}

.factors-title {
    font-size: 1em;
    font-weight: 600;
    color: #1D1D1F;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.factors-subtitle {
    font-size: 0.8em;
    font-weight: 400;
    color: #86868B;
}

.key-factors .constraint-status-item {
    border-width: 2px;
}

.key-factors .constraint-status-item.key-factor {
    background: linear-gradient(135deg, #FFF7ED 0%, #FFFBF5 100%);
    border-color: #F59E0B;
}

.key-factors .constraint-status-item.key-factor.adequate {
    background: linear-gradient(135deg, #ECFDF5 0%, #F0FDF4 100%);
    border-color: #10B981;
}

.constraint-status-item.needs_work {
    background: #FEF3C7;
    border-color: #F59E0B;
}

.constraint-status-item.neutral {
    background: #F3F4F6;
    border-color: #9CA3AF;
}

.weight-badge {
    font-size: 0.7em;
    font-weight: 500;
    color: #6B7280;
    background: rgba(0,0,0,0.05);
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 4px;
}

/* Improvement Suggestions */
.improvement-suggestions-section {
    margin-top: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #EEF2FF 0%, #F5F3FF 100%);
    border-radius: 12px;
    border: 1px solid #C7D2FE;
}

.suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.suggestion-item {
    background: white;
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid #6366F1;
}

.suggestion-action {
    font-weight: 600;
    color: #1D1D1F;
    margin-bottom: 4px;
}

.suggestion-impact {
    color: #10B981;
    font-size: 0.9em;
    margin-bottom: 8px;
}

.suggestion-difficulty {
    font-size: 0.75em;
    padding: 4px 8px;
    border-radius: 12px;
    background: #F3F4F6;
    color: #6B7280;
}

.suggestion-difficulty.easy {
    background: #D1FAE5;
    color: #065F46;
}

.suggestion-difficulty.medium {
    background: #FEF3C7;
    color: #92400E;
}

.suggestion-difficulty.hard {
    background: #FEE2E2;
    color: #991B1B;
}

.metric-percentage {
    text-align: center;
    font-weight: 600;
    color: #1D1D1F;
}

.skill-levels {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.skill-level {
    flex: 1;
    text-align: center;
    padding: 8px 4px;
    background: #e9ecef;
    border-radius: 6px;
    font-size: 0.75em;
    text-transform: capitalize;
    color: #6B7280;
    transition: all 0.2s;
}

.skill-level.active {
    background: linear-gradient(135deg, #34C759, #30D158);
    color: white;
    font-weight: 600;
}

/* Risk Factors Section */
.risk-factors-section {
    margin: 40px 0;
    padding: 25px;
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
    border-radius: 15px;
    border-left: 4px solid #e74c3c;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4em;
    color: #212529;
    margin-bottom: 20px;
    font-weight: 700;
}

.section-title .icon {
    font-size: 1.2em;
}

.risk-factors-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.risk-factor-item {
    background: white;
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid #e74c3c;
}

.risk-factor-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.risk-icon {
    font-size: 1.2em;
}

.risk-name {
    font-weight: 600;
    color: #721c24;
    font-size: 1.1em;
}

.risk-detail {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f8d7da;
}

.risk-message {
    color: #495057;
    margin-bottom: 10px;
    line-height: 1.6;
}

.risk-action {
    background: #fff3cd;
    padding: 12px;
    border-radius: 8px;
    color: #856404;
    font-size: 0.95em;
    line-height: 1.6;
}

.risk-impact {
    display: block;
    margin-top: 5px;
    font-weight: 700;
    color: #e74c3c;
}

/* Recommendations Section */
/* Calculation Breakdown Section */
.calculation-breakdown-section {
    margin: 40px 0;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 15px;
    border: 2px solid #e9ecef;
}

.breakdown-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.breakdown-base {
    text-align: center;
    padding: 20px;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 20px;
}

.breakdown-label {
    font-size: 0.9em;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.breakdown-value {
    font-size: 2.5em;
    font-weight: 800;
    color: #667eea;
    margin-bottom: 8px;
}

.breakdown-explanation {
    font-size: 0.95em;
    color: #495057;
    font-style: italic;
}

.breakdown-adjustments {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.adjustment-item {
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.adjustment-item.positive {
    background: linear-gradient(135deg, #d4edda 0%, #ffffff 100%);
    border-color: #27ae60;
}

.adjustment-item.negative {
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
    border-color: #e74c3c;
}

.adjustment-label {
    font-size: 0.85em;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 600;
}

.adjustment-value {
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 8px;
}

.adjustment-item.positive .adjustment-value {
    color: #27ae60;
}

.adjustment-item.negative .adjustment-value {
    color: #e74c3c;
}

.adjustment-explanation {
    font-size: 0.85em;
    color: #495057;
    line-height: 1.5;
}

.breakdown-formula {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 20px;
}

.formula-text {
    font-size: 1.2em;
    font-weight: 600;
    color: #212529;
    font-family: 'Courier New', monospace;
}

.breakdown-final {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    color: white;
}

.final-label {
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.final-value {
    font-size: 3em;
    font-weight: 800;
}

.recommendations-section {
    margin: 40px 0;
    padding: 25px;
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
    border-radius: 15px;
    border-left: 4px solid #667eea;
}

.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.recommendation-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.recommendation-card:hover {
    border-color: #007AFF;
}

.recommendation-card.priority-high {
    border-left-color: #e74c3c;
}

.recommendation-card.priority-medium {
    border-left-color: #f39c12;
}

.recommendation-card.priority-low {
    border-left-color: #27ae60;
}

.recommendation-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.recommendation-number {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1em;
}

.recommendation-title {
    flex: 1;
    font-size: 1.3em;
    color: #212529;
    margin: 0;
    font-weight: 700;
}

.priority-badge {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
}

.priority-badge.high {
    background: #f8d7da;
    color: #721c24;
}

.priority-badge.medium {
    background: #fff3cd;
    color: #856404;
}

.priority-badge.low {
    background: #d4edda;
    color: #155724;
}

.recommendation-description {
    color: #495057;
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 1.05em;
}

.recommendation-action {
    background: #e7f3ff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    color: #004085;
    line-height: 1.6;
    border-left: 3px solid #667eea;
}

.recommendation-impact {
    background: #d4edda;
    padding: 12px;
    border-radius: 8px;
    color: #155724;
    margin-top: 10px;
    line-height: 1.6;
    border-left: 3px solid #27ae60;
}

.recommendation-alternative {
    background: #fff3cd;
    padding: 12px;
    border-radius: 8px;
    color: #856404;
    margin-top: 10px;
    line-height: 1.6;
    border-left: 3px solid #f39c12;
}

/* ============================================
   MODERN DASHBOARD - FUTURISTIC DESIGN
   ============================================ */

/* Dashboard Container */
#dashboard {
    animation: fadeInUp 0.6s ease-out;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid #E5E5EA;
}

.dashboard-header h2 {
    font-size: 2em;
    color: #1D1D1F;
    margin: 0;
    font-weight: 600;
}

.dashboard-subtitle {
    color: #86868B;
    font-size: 1em;
    margin-top: 4px;
}

.dashboard-controls {
    display: flex;
    gap: 10px;
}

.view-toggle {
    padding: 10px 20px;
    border: 1px solid #D2D2D7;
    background: #FFFFFF;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    color: #1D1D1F;
}

.view-toggle:hover {
    border-color: #007AFF;
    color: #007AFF;
}

.view-toggle.active {
    background: #007AFF;
    border-color: #007AFF;
    color: #FFFFFF;
}

.dashboard-view {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.dashboard-view.active {
    display: block;
}

/* Timeline Container */
.timeline-container {
    position: relative;
}

.timeline-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.time-filter {
    padding: 8px 16px;
    border: 1px solid #D2D2D7;
    background: #FFFFFF;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    color: #1D1D1F;
    font-size: 0.9em;
}

.time-filter:hover {
    border-color: #007AFF;
    color: #007AFF;
}

.time-filter.active {
    background: #007AFF;
    border-color: #007AFF;
    color: #FFFFFF;
}

.timeline-content {
    position: relative;
    padding-left: 60px;
}

/* Timeline Items */
.timeline-item {
    position: relative;
    margin-bottom: 30px;
    animation: slideInLeft 0.5s ease-out;
    animation-fill-mode: both;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }

.timeline-marker {
    position: absolute;
    left: -50px;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.vision-marker {
    background: #007AFF;
    width: 48px;
    height: 48px;
}

.year-marker {
    background: #007AFF;
}

.quarter-marker {
    background: #007AFF;
}

.month-marker {
    background: #34C759;
}

.week-marker {
    background: #FF9500;
}

.marker-icon {
    font-size: 1.5em;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Timeline Cards */
.timeline-card {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 20px 24px;
    border: 1px solid #D2D2D7;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: border-color 0.15s ease;
    position: relative;
    overflow: hidden;
}

.timeline-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #007AFF;
}

.timeline-card:hover {
    border-color: #007AFF;
}

.vision-card::before {
    background: #007AFF;
}

.year-card::before {
    background: #007AFF;
}

.quarter-card::before {
    background: #007AFF;
}

.month-card::before {
    background: #34C759;
}

.week-card::before {
    background: #FF9500;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.card-title {
    font-size: 1.4em;
    font-weight: 700;
    color: #212529;
    margin: 0;
}

.vision-card .card-title {
    font-size: 1.8em;
}

.card-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vision-badge {
    background: #007AFF;
    color: white;
}

.year-badge {
    background: #007AFF;
    color: white;
}

.quarter-badge {
    background: #007AFF;
    color: white;
}

.month-badge {
    background: #34C759;
    color: white;
}

.week-badge {
    background: #FF9500;
    color: white;
}

.card-description {
    color: #495057;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 1.05em;
}

.card-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.meta-item {
    padding: 6px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.9em;
    color: #6c757d;
    font-weight: 600;
}

/* Progress Bar */
.card-progress {
    margin-top: 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: #007AFF;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.85em;
    color: #6c757d;
    font-weight: 600;
}

/* Expand Button */
.expand-btn {
    margin-top: 12px;
    padding: 8px 16px;
    background: #F5F5F7;
    border: 1px solid #D2D2D7;
    border-radius: 6px;
    font-weight: 500;
    color: #1D1D1F;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.expand-btn:hover {
    background: #007AFF;
    color: #FFFFFF;
    border-color: #007AFF;
}

.expand-icon {
    transition: transform 0.3s ease;
}

/* Collapsed Task List */
.task-list-collapsed {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0;
    margin-top: 15px;
}

.task-list-collapsed.expanded {
    max-height: 1000px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-top: 15px;
}

.task-item-small {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: white;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.task-item-small:hover {
    border-color: #007AFF;
}

.task-checkbox-small {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.task-title-small {
    flex: 1;
    font-weight: 600;
    color: #212529;
}

.task-hours-small {
    padding: 4px 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
}

/* Today View */
.today-header {
    margin-bottom: 30px;
}

.today-header h3 {
    font-size: 2em;
    color: #212529;
    margin-bottom: 20px;
}

.today-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #F5F5F7;
    border-radius: 8px;
    padding: 20px 24px;
    text-align: center;
    border: 1px solid #D2D2D7;
    transition: border-color 0.15s ease;
}

.stat-card:hover {
    border-color: #007AFF;
}

.stat-value {
    font-size: 2em;
    font-weight: 600;
    color: #007AFF;
    margin-bottom: 4px;
}

.stat-label {
    color: #86868B;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8em;
}

.today-tasks-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.today-task-card {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 16px 20px;
    border: 1px solid #D2D2D7;
    display: flex;
    gap: 16px;
    transition: border-color 0.15s ease;
    cursor: pointer;
}

.today-task-card:hover {
    border-color: #007AFF;
}

.today-task-card.completed {
    opacity: 0.7;
    background: #F0FDF4;
    border-color: #34C759;
}

.today-task-checkbox {
    width: 24px;
    height: 24px;
    cursor: pointer;
    margin-top: 2px;
}

.task-content {
    flex: 1;
}

.task-title {
    font-size: 1.2em;
    font-weight: 700;
    color: #212529;
    display: block;
    margin-bottom: 8px;
    cursor: pointer;
}

.task-desc {
    color: #6c757d;
    margin-bottom: 10px;
    line-height: 1.6;
}

.task-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.task-time {
    padding: 4px 12px;
    background: #007AFF;
    color: white;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
}

.task-day {
    color: #6c757d;
    font-size: 0.9em;
    font-weight: 600;
}

.no-tasks {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-size: 1.1em;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}



/* Plan Display */
.plan-content {
    margin: 30px 0;
}

.plan-hierarchy {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 12px;
}

.plan-level {
    margin: 20px 0;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.plan-level.vision {
    border-left-color: #764ba2;
    font-size: 1.1em;
}

.plan-level.year {
    border-left-color: #667eea;
}

.plan-level.quarter {
    border-left-color: #3498db;
    margin-left: 20px;
}

.plan-level h3, .plan-level h4, .plan-level h5 {
    margin-bottom: 10px;
    color: #333;
}

.quarterly-projects {
    margin-top: 15px;
}

/* Today's Tasks */
.today-tasks {
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
}

.today-tasks h3 {
    margin-bottom: 20px;
    color: #667eea;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.task-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.task-item label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.task-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.task-hours {
    margin-left: auto;
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85em;
}

.task-description {
    margin-left: 30px;
    color: #666;
    font-size: 0.9em;
}

.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

/* Plan Feedback Section */
.plan-feedback {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    text-align: center;
}

.plan-feedback.hidden {
    display: none;
}

.plan-feedback h3 {
    font-size: 1.5em;
    color: #212529;
    margin-bottom: 8px;
}

.feedback-subtitle {
    color: #6c757d;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.feedback-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.feedback-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.feedback-btn:hover {
    border-color: #007AFF;
}

.feedback-icon {
    font-size: 2em;
}

.feedback-text {
    font-weight: 600;
    color: #495057;
    font-size: 0.9em;
}

.feedback-dismiss {
    background: transparent;
    border: none;
    color: #6c757d;
    cursor: pointer;
    font-size: 0.85em;
    text-decoration: underline;
    padding: 5px 10px;
}

.feedback-dismiss:hover {
    color: #495057;
}

.update-plan-btn {
    padding: 10px 20px;
    background: #34C759;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.update-plan-btn:hover {
    background: #248A3D;
}

/* Success Message Styling */
#error-message.success-message {
    background: #F0FDF4;
    border-left: 3px solid #34C759;
    color: #1F7A2E;
}

/* Zoom Controls */
.zoom-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    padding: 5px 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    border: 2px solid #e9ecef;
}

.zoom-btn {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1em;
    color: #667eea;
}

.zoom-btn:hover:not(:disabled) {
    border-color: #667eea;
    background: #f0f4ff;
    transform: scale(1.05);
}

.zoom-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.zoom-level-indicator {
    font-weight: 600;
    color: #6c757d;
    font-size: 0.9em;
    min-width: 80px;
    text-align: center;
}

/* Enhanced Progress Bars */
.progress-fill.progress-none {
    background: linear-gradient(90deg, #e9ecef 0%, #dee2e6 100%);
}

.progress-fill.progress-low {
    background: linear-gradient(90deg, #f56565 0%, #e53e3e 100%);
}

.progress-fill.progress-medium {
    background: linear-gradient(90deg, #ed8936 0%, #dd6b20 100%);
}

.progress-fill.progress-high {
    background: linear-gradient(90deg, #48bb78 0%, #38a169 100%);
}

.progress-fill.progress-complete {
    background: #007AFF;
}

/* Today View Enhancements */
.today-progress-overview {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 100%);
    border-radius: 15px;
    border-left: 4px solid #667eea;
}

.progress-bar-large {
    width: 100%;
    height: 12px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill-large {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    transition: width 0.6s ease;
}

.progress-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    color: #6c757d;
    font-weight: 500;
}

.stat-card-progress {
    background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 100%);
    border: 2px solid #667eea;
}

.no-tasks-card {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 100%);
    border-radius: 20px;
    border: 2px dashed #667eea;
}

.no-tasks-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.no-tasks-card h4 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 1.5em;
}

.no-tasks-card p {
    color: #6c757d;
    font-size: 1.1em;
}

.task-completed-badge {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 600;
}

.task-item-small.task-completed {
    opacity: 0.7;
    text-decoration: line-through;
}

@keyframes taskComplete {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); background: #d4edda; }
    100% { transform: scale(1); }
}


/* ============================================
   ACCESSIBILITY ENHANCEMENTS
   ============================================ */

/* Focus states for keyboard navigation */
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #667eea;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .timeline-card {
        border: 2px solid #333;
    }
    
    .progress-bar {
        border: 1px solid #333;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Tooltip styles */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]:hover::after,
[data-tooltip]:focus::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: #333;
    color: white;
    border-radius: 6px;
    font-size: 0.85em;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-tooltip]:hover::before,
[data-tooltip]:focus::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
    z-index: 1000;
    margin-bottom: -5px;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.hidden {
    display: none;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 2001;
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 2px solid #e9ecef;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5em;
    color: #212529;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2em;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    line-height: 1;
}

.modal-close:hover,
.modal-close:focus {
    background: #f0f4ff;
    color: #667eea;
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

.modal-instruction {
    color: #6c757d;
    margin-bottom: 25px;
    font-size: 0.95em;
    line-height: 1.6;
}

.modal .form-group {
    margin-bottom: 20px;
}

.modal .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
    font-size: 0.95em;
}

.modal .form-group select,
.modal .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1em;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

.modal .form-group select:focus,
.modal .form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.modal .form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.modal .form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #e9ecef;
}

.modal .form-actions button {
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1em;
}

.modal .form-actions .secondary {
    background: #f8f9fa;
    color: #495057;
}

.modal .form-actions .secondary:hover {
    background: #e9ecef;
}

.modal .form-actions .primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.modal .form-actions .primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.modal .form-actions .primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


/* Reduced Motion Support for Modal */
@media (prefers-reduced-motion: reduce) {
    .modal-content {
        animation: none;
    }
    
    .modal-close:hover,
    .modal-close:focus {
        transform: none;
    }
}

/* OBT Card Styles */
.obt-card {
    border-left: 4px solid #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
}

.obt-justification {
    font-style: italic;
    color: #6c757d;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

.obt-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #e9ecef;
}

.btn-break-down {
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1em;
    width: 100%;
}

.btn-break-down:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-break-down:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.obt-tasks-list {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e9ecef;
}

.obt-task-item {
    padding: 12px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #e9ecef;
    transition: all 0.2s ease;
}

.obt-task-item:hover {
    background: #f0f4ff;
    border-left-color: #667eea;
}

.obt-task-item.completed {
    opacity: 0.7;
    background: #e8f5e9;
    border-left-color: #4caf50;
}

.task-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    width: 100%;
}

.task-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.task-day {
    font-weight: 600;
    color: #495057;
    min-width: 100px;
}

.task-text {
    flex: 1;
    color: #212529;
}

.obt-badge-small {
    display: inline-block;
    padding: 2px 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
    margin-left: 8px;
}

.task-hours {
    color: #6c757d;
    font-size: 0.9em;
    min-width: 50px;
    text-align: right;
}

/* OBT Marker Styles */
.obt-marker {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}


/* =========================================
   MILESTONE ROADMAP STYLES
   ========================================= */

.roadmap-container {
    padding: 20px 0;
}

/* Progress Overview */
.roadmap-progress-overview {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.progress-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.95em;
    color: #4a5568;
}

.progress-stats .stat strong {
    color: #667eea;
    font-weight: 700;
}

.stat-divider {
    color: #cbd5e0;
}

.roadmap-progress-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.roadmap-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
    width: 0;
}

/* Desktop Horizontal Roadmap Track */
.roadmap-track {
    position: relative;
    padding: 20px 10px 30px;
    margin-bottom: 24px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #667eea #e2e8f0;
}

.roadmap-track::-webkit-scrollbar {
    height: 8px;
}

.roadmap-track::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 4px;
}

.roadmap-track::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
}

.roadmap-line {
    position: absolute;
    top: 44px; /* Position at center of milestone icons */
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: translateY(-50%);
    z-index: 0;
}

.roadmap-milestones {
    display: flex;
    gap: 16px;
    position: relative;
    z-index: 1;
    min-width: max-content;
    padding: 0 10px;
}

/* Milestone Node */
.roadmap-milestone-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
    max-width: 120px;
}

.roadmap-milestone-node:hover .milestone-node-icon {
    border-color: #007AFF;
}

.roadmap-milestone-node:focus {
    outline: none;
}

.roadmap-milestone-node:focus .milestone-node-icon {
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.3);
}

.milestone-node-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 3px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1em;
    transition: all 0.3s ease;
    margin-bottom: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.milestone-future .milestone-node-icon {
    color: #a0aec0;
    border-color: #e2e8f0;
}

.milestone-current .milestone-node-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    width: 48px;
    height: 48px;
    font-size: 1.2em;
    box-shadow: 0 5px 18px rgba(102, 126, 234, 0.4);
}

.milestone-complete .milestone-node-icon {
    background: #48bb78;
    border-color: #48bb78;
    color: white;
}

.roadmap-milestone-node.active .milestone-node-icon {
    transform: scale(1.1);
}

.milestone-node-info {
    text-align: center;
}

.milestone-node-title {
    display: block;
    font-weight: 600;
    font-size: 0.8em;
    color: #2d3748;
    max-width: 120px;
    line-height: 1.2;
    margin-bottom: 4px;
    word-wrap: break-word;
    text-align: center;
}

.milestone-future .milestone-node-title {
    color: #718096;
}

.milestone-node-date {
    display: block;
    font-size: 0.75em;
    color: #718096;
}

/* Progress Ring for Current Milestone */
.milestone-progress-ring {
    position: absolute;
    top: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: conic-gradient(
        #48bb78 calc(var(--progress) * 3.6deg),
        transparent 0
    );
    opacity: 0.3;
    animation: pulse 2s infinite;
}

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

/* Mobile Roadmap List */
.roadmap-list-mobile {
    display: none;
}

/* Milestone Detail Panel */
.milestone-detail-panel {
    display: none;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

.milestone-detail-panel.active {
    display: block;
}

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

.milestone-detail {
    padding: 32px;
}

.milestone-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    gap: 24px;
}

.milestone-detail-title {
    font-size: 1.5em;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.milestone-detail-desc {
    color: #4a5568;
    font-size: 1em;
    line-height: 1.6;
}

.milestone-detail-meta {
    display: flex;
    gap: 24px;
    flex-shrink: 0;
}

.milestone-target,
.milestone-progress-detail {
    text-align: center;
    padding: 12px 20px;
    background: #f7fafc;
    border-radius: 12px;
}

.milestone-target .label,
.milestone-progress-detail .label {
    display: block;
    font-size: 0.75em;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.milestone-target .value,
.milestone-progress-detail .value {
    display: block;
    font-size: 1.1em;
    font-weight: 700;
    color: #2d3748;
}

.milestone-progress-detail .value {
    color: #667eea;
}

.milestone-progress-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 32px;
}

.milestone-progress-bar .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* OBTs Section */
.obts-section {
    background: #f8fafc;
    border-radius: 16px;
    padding: 24px;
}

.obts-heading {
    font-size: 1em;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 20px;
}

.obts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* OBT Card */
.obt-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.obt-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.obt-card.complete {
    background: #f0fff4;
    border-color: #48bb78;
}

.obt-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.obt-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    flex: 1;
}

.obt-checkbox {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #48bb78;
}

.obt-title {
    font-weight: 600;
    color: #2d3748;
    line-height: 1.4;
}

.obt-card.complete .obt-title {
    text-decoration: line-through;
    color: #718096;
}

.obt-hours {
    font-size: 0.85em;
    color: #718096;
    background: #f7fafc;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.obt-description {
    color: #718096;
    font-size: 0.9em;
    margin-bottom: 16px;
    padding-left: 32px;
}

/* Generate Tasks Button */
.btn-generate-tasks {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 12px;
}

.btn-generate-tasks:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-generate-tasks:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* OBT Tasks */
.obt-tasks {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.obt-task-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.obt-task-item:hover {
    background: #edf2f7;
}

.obt-task-item.complete {
    background: #f0fff4;
}

.obt-task-item.complete .task-text {
    text-decoration: line-through;
    color: #718096;
}

.obt-task-item .task-checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.obt-task-item .task-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #48bb78;
}

.obt-task-item .task-day {
    font-weight: 600;
    color: #4a5568;
    min-width: 80px;
}

.obt-task-item .task-text {
    color: #2d3748;
    flex: 1;
}

.obt-task-item .task-hours {
    font-size: 0.85em;
    color: #718096;
    margin-left: 12px;
}

/* Today View Updates */
.today-header {
    margin-bottom: 24px;
}

.today-milestone {
    color: #718096;
    font-size: 0.95em;
    margin-top: 8px;
}

.today-milestone strong {
    color: #667eea;
}

.today-stats {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.stat-card {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    padding: 16px 24px;
    border-radius: 12px;
    text-align: center;
    min-width: 100px;
}

.stat-card .stat-value {
    font-size: 1.8em;
    font-weight: 700;
    color: #667eea;
}

.stat-card .stat-label {
    font-size: 0.8em;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.today-tasks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.today-task-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.today-task-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.today-task-card.complete {
    background: #f0fff4;
    border-color: #48bb78;
}

.today-task-checkbox {
    width: 22px;
    height: 22px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #48bb78;
}

.today-task-card .task-content {
    flex: 1;
}

.today-task-card .task-title {
    font-weight: 600;
    color: #2d3748;
    cursor: pointer;
}

.today-task-card.complete .task-title {
    text-decoration: line-through;
    color: #718096;
}

.today-task-card .task-meta {
    display: flex;
    gap: 16px;
    margin-top: 8px;
    font-size: 0.85em;
    color: #718096;
}

.no-tasks-message {
    text-align: center;
    padding: 48px 24px;
    background: #f8fafc;
    border-radius: 16px;
}

.no-tasks-message .no-tasks-icon {
    font-size: 3em;
    margin-bottom: 16px;
}

.no-tasks-message h4 {
    color: #2d3748;
    margin-bottom: 8px;
}

.no-tasks-message p {
    color: #718096;
    margin-bottom: 20px;
}

.btn-primary {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Legacy Notice */
.legacy-notice {
    padding: 24px;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 12px;
    text-align: center;
    color: #92400e;
}

/* Today's Focus - Task Flow Styles */
.today-obt {
    color: #86868B;
    font-size: 0.9em;
    margin-top: 4px;
}

.today-obt strong {
    color: #007AFF;
}

.today-task-card.next-task {
    border-color: #007AFF;
    background: #F0F7FF;
}

.task-badge {
    background: #007AFF;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
}

.completed-tasks-section {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #E5E5EA;
}

.completed-header {
    color: #86868B;
    font-size: 0.85em;
    margin-bottom: 12px;
    font-weight: 500;
}

.completed-tasks-section .today-task-card {
    opacity: 0.6;
    padding: 12px 16px;
}

.completed-tasks-section .today-task-card .task-title {
    text-decoration: line-through;
    color: #86868B;
}

.no-tasks-message.obt-complete {
    background: #F0FDF4;
    border: 1px solid #34C759;
}

.no-tasks-message.obt-complete .no-tasks-icon {
    font-size: 3em;
}

.no-tasks-message.milestone-complete {
    background: #FFFBF0;
    border: 1px solid #FF9500;
}

.btn-primary {
    display: inline-block;
    padding: 12px 24px;
    background: #007AFF;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.btn-primary:hover {
    background: #0051D5;
}

/* ============================================
   TYPEFORM-LIKE QUESTION FLOW
   ============================================ */

/* Progress Indicator */
.typeform-progress {
    margin-bottom: 48px;
}

.progress-bar-container {
    width: 100%;
    height: 4px;
    background: #E5E5EA;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-bar-fill {
    height: 100%;
    background: #007AFF;
    border-radius: 2px;
    transition: width 0.4s ease;
    width: 0%;
}

.progress-text {
    color: #86868B;
    font-size: 0.85em;
    text-align: center;
}

/* Question Container - Large, Focused Display */
.typeform-question-container {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 48px;
    margin-bottom: 48px;
}

.typeform-question-container.fade-in {
    animation: typeformFadeIn 0.4s ease-out;
}

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

.typeform-question {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.typeform-question-label {
    display: block;
    font-size: 2.25em;
    font-weight: 600;
    color: #1D1D1F;
    line-height: 1.2;
    margin-bottom: 16px;
}

.typeform-question-hint {
    font-size: 1.1em;
    color: #86868B;
    line-height: 1.6;
    margin-bottom: 32px;
    font-weight: 400;
}

/* Large, Prominent Input Fields */
.typeform-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #D2D2D7;
    border-radius: 8px;
    font-size: 1.15em;
    font-family: inherit;
    background: #FFFFFF;
    color: #1D1D1F;
    transition: border-color 0.2s ease;
}

.typeform-input:focus {
    outline: none;
    border-color: #007AFF;
}

.typeform-input::placeholder {
    color: #AEAEB2;
}

.typeform-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    padding-right: 48px;
}

.typeform-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

/* Navigation Buttons */
.typeform-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid #E5E5EA;
    gap: 16px;
}

.typeform-btn-primary,
.typeform-btn-secondary {
    padding: 14px 32px;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
}

.typeform-btn-primary {
    background: #007AFF;
    color: #FFFFFF;
    margin-left: auto;
}

.typeform-btn-primary:hover {
    background: #0051D5;
}

.typeform-btn-secondary {
    background: transparent;
    color: #007AFF;
}

.typeform-btn-secondary:hover {
    color: #0051D5;
}

.typeform-btn-primary.hidden,
.typeform-btn-secondary.hidden {
    display: none;
}

/* Remove old constraint section styles that conflict */
.constraint-section {
    display: none;
}

.constraint-question {
    display: none;
}

/* Ensure form actions from old layout are hidden */
#constraint-collection .form-actions {
    display: none;
}

/* ==========================================
   AUTH STYLES
   ========================================== */

/* Header layout for auth */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.header-left {
    text-align: left;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (max-width: 600px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .header-left {
        text-align: center;
    }
}

/* Auth buttons */
.auth-buttons {
    display: flex;
    gap: 8px;
}

.btn-primary {
    background: #007AFF;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 0.95em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-primary:hover {
    background: #0051D5;
}

.btn-secondary {
    background: transparent;
    color: #007AFF;
    border: 1px solid #007AFF;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 0.95em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-secondary:hover {
    background: rgba(0, 122, 255, 0.1);
}

.btn-full {
    width: 100%;
}

/* User menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-menu span {
    color: #1D1D1F;
    font-size: 0.9em;
    font-weight: 500;
}

/* Auth Modal */
.auth-modal-content {
    max-width: 420px;
    padding: 40px;
}

.auth-modal-content h2 {
    font-size: 1.75em;
    margin-bottom: 8px;
    color: #1D1D1F;
}

.auth-subtitle {
    color: #86868B;
    margin-bottom: 32px;
    font-size: 0.95em;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-form label {
    font-size: 0.9em;
    font-weight: 500;
    color: #1D1D1F;
}

.auth-form input {
    padding: 12px 14px;
    border: 1px solid #D2D2D7;
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.15s ease;
}

.auth-form input:focus {
    outline: none;
    border-color: #007AFF;
}

.auth-form button {
    margin-top: 8px;
}

.auth-switch {
    text-align: center;
    margin-top: 24px;
    color: #86868B;
    font-size: 0.9em;
}

.auth-switch a {
    color: #007AFF;
    text-decoration: none;
    font-weight: 500;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.auth-error {
    background: #FFE5E5;
    color: #D32F2F;
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 16px;
    font-size: 0.9em;
}

.auth-success {
    background: #E8F5E9;
    color: #2E7D32;
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 16px;
    font-size: 0.9em;
}

/* Modal close button adjustment for auth */
.auth-modal-content .modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
}
