/*
    FP&A Assessment styles.
    Update layout/theme here; HTML skeleton is in index.html.
*/


        * { margin: 0; padding: 0; box-sizing: border-box; }
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: #f5f7fa;
            min-height: 100vh;
        }
        .container {
            display: flex;
            max-width: 1400px;
            margin: 0 auto;
            min-height: 100vh;
            background: white;
            box-shadow: 0 0 20px rgba(0,0,0,0.1);
        }
        .nav-panel {
            width: 280px;
            background: #f8f9fa;
            border-right: 1px solid #e0e4e8;
            padding: 30px 20px;
            position: sticky;
            top: 0;
            height: 100vh;
            overflow-y: auto;
        }
        .nav-logo {
            margin-bottom: 30px;
            padding-bottom: 20px;
            border-bottom: 2px solid #e0e4e8;
        }
        .nav-logo h2 {
            font-size: 18px;
            color: #2c3e50;
            margin-bottom: 5px;
        }
        .nav-logo p {
            font-size: 12px;
            color: #7f8c8d;
            font-style: italic;
        }
        .nav-item {
            padding: 12px 15px;
            margin-bottom: 8px;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s;
            border-left: 3px solid transparent;
        }
        .nav-item:hover { background: #e8eaed; }
        .nav-item.active {
            background: #d4e3f7;
            border-left-color: #4a90e2;
        }
        .nav-item.completed {
            background: #e8f5e9;
            border-left-color: #4caf50;
        }
        .nav-item-title {
            font-size: 14px;
            font-weight: 600;
            color: #2c3e50;
            margin-bottom: 3px;
        }
        .nav-item-progress {
            font-size: 11px;
            color: #7f8c8d;
        }
        .main-content {
            flex: 1;
            background: white;
        }
        .header {
            background: white;
            padding: 25px 40px;
            border-bottom: 2px solid #e0e4e8;
            position: sticky;
            top: 0;
            z-index: 100;
        }
        .header-top {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 15px;
        }
        .header-title h1 {
            font-size: 24px;
            color: #2c3e50;
            margin-bottom: 3px;
        }
        .header-subtitle {
            font-size: 13px;
            color: #7f8c8d;
            font-style: italic;
        }
        .header-bottom {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .area-name {
            font-size: 16px;
            font-weight: 600;
            color: #4a90e2;
        }
        .progress-tracker {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .progress-label {
            font-size: 13px;
            color: #7f8c8d;
        }
        .progress-bar-container {
            width: 200px;
            height: 20px;
            background: #e0e4e8;
            border-radius: 10px;
            overflow: hidden;
        }
        .progress-bar-fill {
            height: 100%;
            background: linear-gradient(90deg, #4a90e2, #357abd);
            border-radius: 10px;
            transition: width 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 11px;
            font-weight: 600;
        }
        .content {
            padding: 40px;
            max-width: 900px;
        }
        .industry-selection {
            text-align: center;
            padding: 60px 40px;
        }
        .industry-selection h2 {
            font-size: 28px;
            color: #2c3e50;
            margin-bottom: 15px;
        }
        .industry-selection p {
            font-size: 16px;
            color: #7f8c8d;
            margin-bottom: 40px;
        }
        .industry-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
            max-width: 700px;
            margin: 0 auto;
        }
        .industry-button {
            padding: 20px;
            background: white;
            border: 2px solid #e0e4e8;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 15px;
            font-weight: 500;
            color: #2c3e50;
        }
        .industry-button:hover {
            border-color: #4a90e2;
            background: #f0f7ff;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(74, 144, 226, 0.2);
        }
        .question-container {
            display: none;
        }
        .question-container.active {
            display: block;
            animation: fadeIn 0.3s;
        }
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .question-text {
            font-size: 20px;
            color: #2c3e50;
            margin-bottom: 30px;
            line-height: 1.5;
        }
        .answers {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-bottom: 30px;
        }
        .answer-button {
            padding: 18px 24px;
            background: white;
            border: 2px solid #e0e4e8;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s;
            text-align: left;
            font-size: 15px;
            color: #2c3e50;
            line-height: 1.4;
        }
        .answer-button:hover {
            border-color: #4a90e2;
            background: #f0f7ff;
        }
        .answer-button.selected {
            background: #4a90e2;
            border-color: #4a90e2;
            color: white;
        }
        .answer-button.na-button {
            background: #f8f9fa;
            border-color: #dee2e6;
            color: #6c757d;
            font-style: italic;
        }
        .answer-button.na-button:hover {
            background: #e9ecef;
            border-color: #adb5bd;
        }
        .answer-button.na-button.selected {
            background: #6c757d;
            border-color: #6c757d;
            color: white;
        }
        .time-allocation-container {
            display: none;
        }
        .time-allocation-container.active {
            display: block;
            animation: fadeIn 0.3s;
        }
        .time-allocation-intro {
            font-size: 18px;
            color: #2c3e50;
            margin-bottom: 25px;
            line-height: 1.5;
        }
        .time-question {
            margin-bottom: 25px;
            padding: 20px;
            background: #f8f9fa;
            border-radius: 8px;
        }
        .time-question-text {
            font-size: 15px;
            font-weight: 600;
            color: #2c3e50;
            margin-bottom: 12px;
        }
        .time-options {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }
        .time-button {
            padding: 10px 20px;
            background: white;
            border: 2px solid #e0e4e8;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 14px;
            font-weight: 500;
            color: #2c3e50;
        }
        .time-button:hover {
            border-color: #4a90e2;
            background: #f0f7ff;
        }
        .time-button.selected {
            background: #4a90e2;
            border-color: #4a90e2;
            color: white;
            box-shadow: 0 2px 8px rgba(74, 144, 226, 0.4);
            font-weight: 600;
        }
        .time-button:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }
        .time-total {
            margin-top: 20px;
            padding: 15px;
            background: white;
            border: 2px solid #e0e4e8;
            border-radius: 8px;
            text-align: center;
            font-size: 16px;
            font-weight: 600;
            color: #2c3e50;
        }
        .time-total.error {
            border-color: #dc3545;
            background: #fff5f5;
            color: #dc3545;
        }
        .time-total.complete {
            border-color: #28a745;
            background: #f0fff4;
            color: #28a745;
        }
        .navigation-buttons {
            display: flex;
            justify-content: space-between;
            margin-top: 40px;
            padding-top: 30px;
            border-top: 1px solid #e0e4e8;
        }
        .nav-btn {
            padding: 12px 30px;
            border: none;
            border-radius: 6px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }
        .nav-btn.primary {
            background: #4a90e2;
            color: white;
        }
        .nav-btn.primary:hover {
            background: #357abd;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
        }
        .nav-btn.secondary {
            background: #e0e4e8;
            color: #2c3e50;
        }
        .nav-btn.secondary:hover {
            background: #d0d4d8;
        }
        .nav-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
        .review-screen {
            display: none;
            text-align: center;
            padding: 60px 40px;
        }
        .review-screen.active {
            display: block;
            animation: fadeIn 0.3s;
        }
        .share-screen {
            display: none;
            text-align: center;
            padding: 60px 40px;
        }
        .share-screen.active {
            display: block;
            animation: fadeIn 0.3s;
        }
        .share-form {
            max-width: 420px;
            margin: 20px auto 0;
            text-align: left;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        .share-form label {
            font-size: 13px;
            color: #2c3e50;
            font-weight: 600;
        }
        .share-form input {
            padding: 10px 12px;
            border: 1px solid #e0e4e8;
            border-radius: 6px;
            font-size: 14px;
        }
        .share-error {
            color: #dc3545;
            font-size: 13px;
            min-height: 18px;
        }
        .share-actions {
            display: flex;
            gap: 15px;
            justify-content: center;
            margin-top: 10px;
        }
        .review-screen h2 {
            font-size: 28px;
            color: #2c3e50;
            margin-bottom: 15px;
        }
        .review-screen p {
            font-size: 16px;
            color: #7f8c8d;
            margin-bottom: 40px;
            line-height: 1.6;
        }
        .review-buttons {
            display: flex;
            gap: 20px;
            justify-content: center;
        }
        .review-btn {
            padding: 15px 40px;
            border: none;
            border-radius: 6px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }
        .review-btn.view-results {
            background: #4a90e2;
            color: white;
        }
        .review-btn.view-results:hover {
            background: #357abd;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
        }
        .review-btn.edit {
            background: #e0e4e8;
            color: #2c3e50;
        }
        .review-btn.edit:hover {
            background: #d0d4d8;
        }
        .results-page {
            display: none;
            padding: 40px;
            max-width: 1100px;
            margin: 0 auto;
        }
        .results-page.active {
            display: block;
        }
        .results-header {
            text-align: center;
            margin-bottom: 40px;
            padding-bottom: 20px;
            border-bottom: 2px solid #e0e4e8;
        }
        .results-header h1 {
            font-size: 28px;
            color: #2c3e50;
            margin-bottom: 5px;
        }
        .results-header p {
            font-size: 14px;
            color: #7f8c8d;
            font-style: italic;
        }
        .results-section {
            margin-bottom: 40px;
            page-break-inside: avoid;
        }
        .results-section h2 {
            font-size: 20px;
            color: #2c3e50;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid #4a90e2;
        }
        .area-group {
            margin-bottom: 25px;
        }
        .area-group-title {
            font-size: 16px;
            font-weight: 600;
            color: #4a90e2;
            margin-bottom: 12px;
            padding-bottom: 8px;
            border-bottom: 1px solid #e0e4e8;
        }
        .score-row {
            display: flex;
            align-items: center;
            margin-bottom: 8px;
            gap: 15px;
        }
        .score-label {
            flex: 0 0 300px;
            font-size: 13px;
            color: #2c3e50;
            font-weight: 500;
        }
        .score-bar-container {
            flex: 1;
            height: 28px;
            background: #f0f2f5;
            border-radius: 14px;
            overflow: hidden;
            position: relative;
        }
        .score-bar-fill {
            height: 100%;
            border-radius: 14px;
            transition: width 1s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 11px;
            font-weight: 600;
            padding: 0 10px;
        }
        .score-nascent { background: #dc3545; }
        .score-developing { background: #fd7e14; }
        .score-working { background: #ffc107; }
        .score-advanced { background: #28a745; }
        .score-sophisticated { background: #007bff; }
        .score-na {
            background: #e9ecef;
            color: #6c757d;
            font-style: italic;
            justify-content: flex-start;
            padding-left: 15px;
        }
        .time-allocation-results {
            margin-top: 20px;
        }
        .time-summary {
            padding: 15px;
            background: #fff3cd;
            border-left: 4px solid #ffc107;
            margin-bottom: 20px;
            border-radius: 4px;
        }
        .time-summary strong {
            color: #856404;
            font-size: 15px;
        }
        .time-item-row {
            display: flex;
            align-items: center;
            margin-bottom: 8px;
            gap: 15px;
        }
        .time-item-label {
            flex: 0 0 300px;
            font-size: 13px;
            color: #2c3e50;
            font-weight: 500;
        }
        .time-item-bar-container {
            flex: 1;
            height: 28px;
            background: #f0f2f5;
            border-radius: 14px;
            overflow: hidden;
        }
        .time-item-bar-fill {
            height: 100%;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 11px;
            font-weight: 600;
            transition: width 1s ease;
        }
        .time-item-bar-fill.orange { background: #fd7e14; }
        .time-item-bar-fill.blue { background: #4a90e2; }
        .priorities-section {
            background: #fff8e1;
            border-left: 4px solid #ffc107;
            padding: 25px;
            border-radius: 8px;
        }
        .priority-item {
            margin-bottom: 20px;
            padding-bottom: 20px;
            border-bottom: 1px solid #ffe082;
        }
        .priority-item:last-child {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
        }
        .priority-title {
            font-size: 16px;
            font-weight: 600;
            color: #f57c00;
            margin-bottom: 8px;
        }
        .priority-description {
            font-size: 14px;
            color: #5d4037;
            line-height: 1.6;
        }
        .results-actions {
            display: flex;
            gap: 15px;
            justify-content: center;
            margin-top: 40px;
            padding-top: 30px;
            border-top: 2px solid #e0e4e8;
        }
        .action-btn {
            padding: 12px 30px;
            border: none;
            border-radius: 6px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }
        .action-btn.print {
            background: #4a90e2;
            color: white;
        }
        .action-btn.print:hover {
            background: #357abd;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
        }
        .action-btn.restart {
            background: #e0e4e8;
            color: #2c3e50;
        }
        .action-btn.restart:hover {
            background: #d0d4d8;
        }
        @media print {
            body { background: white; }
            .container {
                box-shadow: none;
                display: block;
            }
            .nav-panel { display: none; }
            .header {
                position: static;
                padding: 15px 0;
            }
            .results-page { padding: 20px; }
            .results-header h1 { font-size: 22px; }
            .results-section { margin-bottom: 20px; }
            .results-section h2 {
                font-size: 15px;
                margin-bottom: 12px;
            }
            .area-group { margin-bottom: 15px; }
            .area-group-title { font-size: 13px; }
            .score-row, .time-item-row { margin-bottom: 6px; }
            .score-label, .time-item-label {
                font-size: 11px;
                flex: 0 0 220px;
            }
            .score-bar-container, .time-item-bar-container { height: 22px; }
            .score-bar-fill, .time-item-bar-fill { 
                font-size: 9px;
                transition: none !important;
            }
            .score-bar-fill[data-width] {
                width: var(--bar-width) !important;
            }
            .time-item-bar-fill[data-width] {
                width: var(--bar-width) !important;
            }
            .priority-item {
                margin-bottom: 12px;
                padding-bottom: 12px;
            }
            .priority-title { font-size: 13px; }
            .priority-description { font-size: 11px; }
            .time-summary {
                padding: 10px;
                font-size: 12px;
            }
            .time-summary {
                background: #fff3cd !important;
                -webkit-print-color-adjust: exact;
                print-color-adjust: exact;
            }
            .priorities-section {
                background: #fff8e1 !important;
                -webkit-print-color-adjust: exact;
                print-color-adjust: exact;
            }
            .score-nascent { 
                background: #dc3545 !important;
                -webkit-print-color-adjust: exact;
                print-color-adjust: exact;
            }
            .score-developing { 
                background: #fd7e14 !important;
                -webkit-print-color-adjust: exact;
                print-color-adjust: exact;
            }
            .score-working { 
                background: #ffc107 !important;
                -webkit-print-color-adjust: exact;
                print-color-adjust: exact;
            }
            .score-advanced { 
                background: #28a745 !important;
                -webkit-print-color-adjust: exact;
                print-color-adjust: exact;
            }
            .score-sophisticated { 
                background: #007bff !important;
                -webkit-print-color-adjust: exact;
                print-color-adjust: exact;
            }
            .score-na {
                background: #e9ecef !important;
                -webkit-print-color-adjust: exact;
                print-color-adjust: exact;
            }
            .time-item-bar-fill.orange { 
                background: #fd7e14 !important;
                -webkit-print-color-adjust: exact;
                print-color-adjust: exact;
            }
            .time-item-bar-fill.blue { 
                background: #4a90e2 !important;
                -webkit-print-color-adjust: exact;
                print-color-adjust: exact;
            }
            .results-actions { display: none; }
            .results-section:nth-child(4) {
                page-break-before: always;
            }
        }
    
