/* innovationmapper.html — page-specific styles */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #0b0e13 0%, #141c28 100%);
    min-height: 100vh;
    color: #f2f5f9;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    overflow: hidden;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.header {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-title {
    font-size: 28px;
    font-weight: 700;
    margin-left: 20px;
    background: linear-gradient(135deg, #ff6b00, #ff9933);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.nav-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-tab {
    flex: 1;
    padding: 15px 20px;
    text-align: center;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #f2f5f9;
    transition: all 0.3s ease;
    position: relative;
    font-family: 'Inter', sans-serif;
}

.nav-tab:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-2px);
    color: white;
}

.nav-tab.active {
    background: linear-gradient(135deg, #2b8be6, #5468f2);
    color: white;
    box-shadow: 0 4px 15px rgba(43,139,230,0.4);
}

.nav-tab.intro { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.nav-tab.session1 { background: linear-gradient(135deg, #2b8be6 0%, #5468f2 100%); }
.nav-tab.session2 { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.nav-tab.break { background: linear-gradient(135deg, #667385 0%, #4c5562 100%); }
.nav-tab.session3 { background: linear-gradient(135deg, #435af1 0%, #0f28c7 100%); }

.tab-content {
    display: none;
    padding: 40px;
    animation: fadeIn 0.5s ease-in;
    background: rgba(255, 255, 255, 0.03);
}

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

.session-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.activity-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.activity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2b8be6, #5468f2);
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    background: rgba(255, 255, 255, 0.12);
}

.activity-card.completed {
    background: rgba(16, 185, 129, 0.15);
    border-left: 5px solid #10b981;
}

.activity-card.completed::before {
    background: linear-gradient(90deg, #10b981, #059669);
}

.activity-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #f2f5f9;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.activity-description {
    color: #c9d2dc;
    line-height: 1.6;
    margin-bottom: 15px;
}

.activity-time {
    display: inline-block;
    background: linear-gradient(135deg, #2b8be6, #5468f2);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.process-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
    gap: 15px;
}

.process-step {
    background: linear-gradient(135deg, #2b8be6 0%, #5468f2 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    position: relative;
    box-shadow: 0 4px 15px rgba(43,139,230,0.4);
}

.process-step::after {
    content: '→';
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #2b8be6;
}

.process-step:last-child::after {
    display: none;
}

.legend {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 25px;
    margin-top: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.legend h3 {
    color: #f2f5f9;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}

.legend-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.icon-input { background: #2b8be6; }
.icon-process { background: #667385; }
.icon-info { background: #f59e0b; }
.icon-linear { background: #10b981; }
.icon-indirect { background: #ef4444; }
.icon-break { background: #5468f2; }

.participants {
    background: rgba(43,139,230,0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(43,139,230,0.25);
    border-radius: 16px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(43,139,230,0.2);
}

.participants h4 {
    color: #5aa6ee;
    margin-bottom: 10px;
    font-weight: 600;
}

.location-info {
    background: rgba(84,104,242,0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(84,104,242,0.25);
    border-radius: 16px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(84,104,242,0.2);
}

.location-info h4 {
    color: #8c9bf7;
    margin-bottom: 10px;
    font-weight: 600;
}

.progress-bar {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    height: 8px;
    margin: 20px 0;
    overflow: hidden;
}

.progress {
    background: linear-gradient(90deg, #10b981, #059669);
    height: 100%;
    border-radius: 25px;
    width: 0%;
    transition: width 0.5s ease;
}

.btn-complete {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 10px;
    font-family: 'Inter', sans-serif;
}

.btn-complete:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
}

.btn-generate-outcome {
    background: linear-gradient(135deg, #5468f2 0%, #435af1 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 25px rgba(84,104,242,0.4);
}

.btn-generate-outcome:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(84,104,242,0.6);
}

.btn-generate-outcome .material-icons {
    font-size: 24px;
}

/* Buttons */
.btn {
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, #2b8be6, #5468f2);
    color: white;
    box-shadow: 0 4px 15px rgba(43,139,230,0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(43,139,230,0.4);
}

.btn-sample-data:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

/* Sample Data Modal */
.sample-data-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: flex-start;
    z-index: 1100;
    overflow-y: auto;
    padding: 40px 20px;
}
.sample-data-overlay.active { display: flex; }

.sample-data-modal {
    background: linear-gradient(135deg, #141c28 0%, #1b2432 100%);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    max-width: 1000px;
    width: 100%;
    padding: 0;
    box-shadow: 0 25px 80px rgba(0,0,0,0.6);
    animation: slideUp 0.3s ease;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.sdm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
    border-radius: 20px 20px 0 0;
}
.sdm-header h2 {
    font-size: 22px;
    background: linear-gradient(135deg, #10b981, #2b8be6);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.sdm-close {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #f2f5f9;
    width: 36px; height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.sdm-close:hover { background: rgba(239,68,68,0.3); }

.sdm-body { padding: 28px 32px; }

.sdm-section {
    margin-bottom: 28px;
}
.sdm-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #2b8be6;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sdm-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.sdm-info-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 16px;
}
.sdm-info-card .label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8c99a8;
    margin-bottom: 4px;
}
.sdm-info-card .value {
    font-size: 15px;
    font-weight: 600;
    color: #f2f5f9;
}

.sdm-initiative {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.2s;
}
.sdm-initiative:hover {
    border-color: rgba(43,139,230,0.3);
    background: rgba(255,255,255,0.06);
}
.sdm-initiative-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.sdm-initiative-name {
    font-size: 17px;
    font-weight: 700;
    color: #f2f5f9;
}
.sdm-initiative-score {
    background: linear-gradient(135deg, #2b8be6, #5468f2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    color: white;
}
.sdm-scores-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.sdm-score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255,255,255,0.04);
    border-radius: 8px;
    font-size: 13px;
}
.sdm-score-item .criteria { color: #8c99a8; }
.sdm-score-item .score {
    font-weight: 700;
    color: #10b981;
    min-width: 24px;
    text-align: center;
}

.sdm-score-bar {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    margin-top: 4px;
    overflow: hidden;
}
.sdm-score-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s ease;
}

.sdm-roadmap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.sdm-roadmap-phase {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 16px;
}
.sdm-roadmap-phase .phase-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid;
}
.sdm-roadmap-phase.now .phase-label { color: #10b981; border-color: #10b981; }
.sdm-roadmap-phase.next .phase-label { color: #2b8be6; border-color: #2b8be6; }
.sdm-roadmap-phase.later .phase-label { color: #5468f2; border-color: #5468f2; }
.sdm-roadmap-item {
    font-size: 13px;
    color: #c9d2dc;
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.sdm-roadmap-item::before {
    content: '▸';
    color: #818d9e;
}

.sdm-ranking {
    display: flex;
    gap: 14px;
    margin-bottom: 8px;
}
.sdm-rank-card {
    flex: 1;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    position: relative;
}
.sdm-rank-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    color: white;
}
.sdm-rank-badge.gold { background: linear-gradient(135deg, #f59e0b, #d97706); }
.sdm-rank-badge.silver { background: linear-gradient(135deg, #8c99a8, #687587); }
.sdm-rank-badge.bronze { background: linear-gradient(135deg, #d97706, #a04300); }
.sdm-rank-name {
    font-size: 14px;
    font-weight: 600;
    color: #f2f5f9;
    margin-top: 8px;
}
.sdm-rank-score {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, #2b8be6, #5468f2);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 4px;
}

.sdm-loaded-banner {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1200;
    box-shadow: 0 8px 30px rgba(16,185,129,0.4);
    animation: bannerSlide 0.4s ease, bannerFade 0.4s ease 3s forwards;
}
@keyframes bannerSlide { from { transform: translateX(100px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes bannerFade { to { opacity: 0; transform: translateY(-10px); } }

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 30px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f2f5f9;
    background: linear-gradient(135deg, #ff6b00, #ff9933);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-close {
    background: none;
    border: none;
    color: #f2f5f9;
    cursor: pointer;
    font-size: 24px;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.outcome-diagram {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.diagram-section {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.diagram-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #f2f5f9;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.diagram-content {
    color: #c9d2dc;
    line-height: 1.6;
}

.workshop-flow {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.flow-step {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(43,139,230,0.1);
    border-radius: 10px;
    border-left: 4px solid #2b8be6;
}

.flow-step-number {
    background: linear-gradient(135deg, #2b8be6, #5468f2);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.flow-step-content {
    flex: 1;
}

.flow-step-title {
    font-weight: 600;
    color: #f2f5f9;
    margin-bottom: 5px;
}

.flow-step-desc {
    color: #c9d2dc;
    font-size: 0.9rem;
}

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

.metric-card {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 5px;
}

.metric-label {
    color: #c9d2dc;
    font-size: 0.9rem;
}

.key-insights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.insight-card {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 10px;
    padding: 15px;
}

.insight-icon {
    color: #f59e0b;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.insight-title {
    font-weight: 600;
    color: #f2f5f9;
    margin-bottom: 8px;
}

.insight-desc {
    color: #c9d2dc;
    font-size: 0.9rem;
    line-height: 1.5;
}

.session-summary {
    background: rgba(245, 158, 11, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 5px solid #f59e0b;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.session-summary h2 {
    color: #f2f5f9;
    font-weight: 600;
    margin-bottom: 8px;
}

.session-summary p {
    color: #c9d2dc;
    font-size: 0.9rem;
}

/* Sidebar Styles */
.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 24px 0;
    box-shadow: 2px 0 25px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    overflow-y: auto;
}

.sidebar.collapsed {
    width: 80px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #ff6b00, #ff9933);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo img {
    height: 32px;
}

.logo .material-icons {
    margin-right: 12px;
    font-size: 28px;
}

.header-buttons {
    margin-top: 16px;
}

.header-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #8c99a8;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
}

.header-btn:hover {
    background: rgba(43,139,230,0.2);
    border-color: #2b8be6;
    color: #2b8be6;
}

.header-btn .material-icons {
    font-size: 18px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    background: none;
    color: white;
    width: 100%;
    text-align: left;
    position: relative;
    border-radius: 0 25px 25px 0;
    margin: 4px 0;
}

.nav-item.section-header {
    background: rgba(43,139,230,0.2);
    border-left: 4px solid #2b8be6;
    color: #2b8be6;
    font-weight: 600;
    margin: 8px 0 4px 0;
    box-shadow: 0 4px 15px rgba(43,139,230,0.2);
}

.nav-item.active-page {
    background: linear-gradient(135deg, rgba(43,139,230,0.3), rgba(84,104,242,0.3));
    border-left: 4px solid #5468f2;
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(84,104,242,0.3);
}

.nav-item .material-icons {
    margin-right: 12px;
    font-size: 20px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.sidebar.collapsed .nav-text {
    display: none;
}

.sidebar.collapsed .expand-icon {
    display: none;
}

.nav-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
}

.expand-icon {
    margin-left: auto;
    transition: transform 0.3s ease;
    font-size: 18px;
    flex-shrink: 0;
}

.nav-item.section-header.expanded .expand-icon {
    transform: rotate(90deg);
}

.nav-item.section-header.expanded {
    background: #26303f;
}

.nav-item.expanded {
    background: #26303f;
}

.nav-item.expanded .expand-icon {
    transform: rotate(90deg);
}

.nav-subitems {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #26303f;
    backdrop-filter: blur(10px);
}

.nav-subitems.expanded {
    max-height: 1000px;
}

.sidebar.collapsed .nav-subitems {
    display: none;
}

.nav-subitems .nav-item {
    background: transparent;
    padding-left: 52px;
    font-weight: 400;
    margin: 2px 0;
}

.nav-subitems .nav-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(8px);
}

.nav-subitems .nav-item.active-page {
    background: rgba(84,104,242,0.2);
    border-left: 3px solid #5468f2;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,0.02);
}

@media (max-width: 768px) {
    .nav-tabs {
        flex-direction: column;
    }

    .session-grid {
        grid-template-columns: 1fr;
    }

    .process-flow {
        flex-direction: column;
    }

    .process-step::after {
        content: '↓';
        right: 50%;
        bottom: -25px;
        top: auto;
        transform: translateX(50%);
    }

    .header h1 {
        font-size: 2rem;
    }

    .container {
        margin: 10px;
        border-radius: 16px;
    }

    .tab-content {
        padding: 20px;
    }
}

/* Modern Chatbot Styles */
.chatbot-container {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 1000;
}

.chatbot-trigger {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #2b8be6, #5468f2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(43,139,230,0.4);
    transition: all 0.3s ease;
    border: none;
    color: white;
    animation: chatbotPulse 3s infinite;
}

.chatbot-trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(43,139,230,0.5);
}

.chatbot-trigger .material-icons {
    font-size: 32px;
}

.chatbot-window {
    position: fixed;
    bottom: 122px;
    right: 32px;
    width: 380px;
    height: calc(100vh - 210px);
    max-height: calc(100vh - 210px);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    display: none;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.chatbot-header {
    background: linear-gradient(135deg, #2b8be6, #5468f2);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 60px;
    position: relative;
}

.chatbot-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.quick-action {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #8c99a8;
}

.quick-action:hover {
    background: rgba(43,139,230,0.2);
    border-color: #2b8be6;
    color: #2b8be6;
}

.chatbot-video {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    flex-shrink: 0;
    z-index: 1;
    opacity: 1;
    visibility: visible;
}

.chatbot-video:hover {
    background: rgba(16, 185, 129, 0.3);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.chatbot-video .material-icons {
    color: #10b981;
    font-size: 20px;
}

/* Ensure video button is always visible */
.chatbot-header .chatbot-video {
    position: relative;
    z-index: 10;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.chatbot-messages {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.1);
}

.message {
    margin-bottom: 20px;
    animation: messageSlideIn 0.4s ease;
}

.message.user {
    display: flex;
    justify-content: flex-end;
}

.chatbot-input-area {
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.claude-api-bar { display: flex; align-items: center; gap: 12px; }
.claude-api-bar label { font-size: 0.75rem; color: rgba(255,255,255,0.6); white-space: nowrap; }
.claude-api-bar input { flex: 1; min-width: 180px; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; color: #c9d2dc; padding: 8px 12px; font-size: 13px; }
.claude-api-bar input:focus { border-color: #5468f2; outline: none; }
.claude-api-bar input::placeholder { color: rgba(255,255,255,0.35); }
.claude-api-bar button { background: linear-gradient(135deg, #2b8be6, #5468f2); color: white; border: none; border-radius: 8px; padding: 8px 14px; font-size: 13px; cursor: pointer; }
.claude-api-bar button:hover { opacity: 0.9; }
.claude-api-bar button.connected { background: linear-gradient(135deg, #059669, #10b981); }
.claude-api-bar.hidden { display: none !important; }

.message.bot .message-content.ai-styled .ai-response {
    line-height: 1.7;
    color: #ffffff;
    font-size: 13px;
}

.quick-action {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #8c99a8;
}

.quick-action:hover {
    background: rgba(43,139,230,0.2);
    border-color: #2b8be6;
    color: #2b8be6;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.typing-dots {
    display: flex;
    gap: 6px;
    margin-left: 12px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: #8c99a8;
    border-radius: 50%;
    animation: typingDot 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingDot {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .chatbot-window {
        width: 320px;
        height: calc(100vh - 190px);
        max-height: calc(100vh - 190px);
        right: 16px;
        bottom: 80px;
    }

    .chatbot-container {
        bottom: 16px;
        right: 16px;
    }

    .chatbot-header {
        padding: 16px;
        gap: 4px;
        min-height: 50px;
    }

    .chatbot-video,
    .chatbot-glossary,
    .chatbot-close {
        width: 32px;
        height: 32px;
        padding: 6px;
    }

    .issues-tracker-window {
        width: 320px;
        max-height: 85vh;
        min-height: 400px;
        right: 50px;
    }

    .issues-tracker-container {
        top: 50%;
        right: 0;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .chatbot-window {
        width: 280px;
        height: calc(100vh - 190px);
        max-height: calc(100vh - 190px);
    }

    .chatbot-header {
        padding: 12px;
        gap: 2px;
        min-height: 45px;
    }

    .chatbot-video,
    .chatbot-glossary,
    .chatbot-close {
        width: 28px;
        height: 28px;
        padding: 4px;
    }

    .chatbot-video .material-icons,
    .chatbot-glossary .material-icons,
    .chatbot-close .material-icons {
        font-size: 16px;
    }

    .issues-tracker-window {
        width: 280px;
        max-height: 80vh;
        min-height: 350px;
        right: 40px;
    }

    .issues-tracker-form {
        max-height: calc(80vh - 80px);
        padding: 16px;
    }

    .issues-tracker-trigger {
        width: 50px;
        height: 50px;
    }

    .issues-tracker-trigger .material-icons {
        font-size: 20px;
    }
}

.issues-tracker-form {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.1);
    max-height: calc(90vh - 80px);
}

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

.form-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.form-success {
    text-align: center;
    padding: 40px 20px;
    color: #10b981;
}

.form-success .material-icons {
    font-size: 48px;
    margin-bottom: 16px;
}

.form-success h3 {
    margin-bottom: 8px;
    color: #f2f5f9;
}

.form-success p {
    color: #8c99a8;
    font-size: 14px;
}

.hidden {
    display: none;
}

/* ─── AI Recommendation Modal ─── */
.recommend-modal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.75); backdrop-filter: blur(8px);
    z-index: 2000; align-items: center; justify-content: center;
}

.recommend-modal {
    background: linear-gradient(135deg, #0b0e13 0%, #141c28 100%);
    border: 1px solid rgba(84,104,242,0.3);
    border-radius: 20px; padding: 0; width: 700px; max-width: 95vw;
    max-height: 90vh; display: flex; flex-direction: column;
    box-shadow: 0 25px 60px rgba(0,0,0,0.5), 0 0 40px rgba(84,104,242,0.15);
    overflow: hidden;
}
.recommend-modal-header {
    background: linear-gradient(135deg, #5468f2, #4255d9);
    padding: 20px 24px; display: flex; align-items: center; justify-content: space-between;
    color: white;
}
.recommend-modal-header h3 { font-size: 18px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.recommend-modal-header h3 .material-icons { font-size: 24px; }
.recommend-modal-close {
    background: rgba(255,255,255,0.15); border: none; color: white; cursor: pointer;
    padding: 8px; border-radius: 50%; width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.recommend-modal-close:hover { background: rgba(255,255,255,0.25); }
.recommend-modal-body { padding: 24px; overflow-y: auto; flex: 1; }
.recommend-input-row {
    display: flex; gap: 12px; align-items: center; margin-bottom: 20px;
}
.recommend-input {
    flex: 1; padding: 14px 20px;
    background: rgba(255,255,255,0.05); border: 2px solid rgba(84,104,242,0.3);
    border-radius: 14px; font-size: 15px; color: #f2f5f9;
    outline: none; transition: all 0.3s; font-family: 'Inter', sans-serif;
}
.recommend-input:focus { border-color: #5468f2; background: rgba(84,104,242,0.1); box-shadow: 0 0 0 4px rgba(84,104,242,0.15); }
.recommend-input::placeholder { color: #838f9f; }
.recommend-ai-btn {
    width: 50px; height: 50px; border-radius: 50%;
    border: 2px solid rgba(84,104,242,0.5);
    background: linear-gradient(135deg, rgba(84,104,242,0.3), rgba(66,85,217,0.4));
    color: #b8c1fa; cursor: pointer; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: all 0.3s;
}
.recommend-ai-btn:hover {
    background: linear-gradient(135deg, rgba(84,104,242,0.5), rgba(66,85,217,0.6));
    border-color: #8c9bf7; color: white; transform: scale(1.08);
    box-shadow: 0 0 20px rgba(84,104,242,0.5);
}
.recommend-ai-btn.loading { pointer-events: none; animation: sparkle-pulse 1.2s ease-in-out infinite; }
.recommend-ai-btn .material-icons { font-size: 24px; }
.recommend-results {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px; padding: 24px; min-height: 120px; color: #c9d2dc;
    line-height: 1.7; font-size: 14px;
    max-height: 55vh; overflow-y: auto; scroll-behavior: smooth;
}

.recommend-apply-btn.loading::after {
    content: ''; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.3);
    border-top-color: rgba(201,209,220,.14); border-radius: 50%; animation: applyBtnSpin 0.8s linear infinite; margin-left: 6px;
}

.recommend-chip {
    padding: 8px 16px; background: rgba(84,104,242,0.1);
    border: 1px solid rgba(84,104,242,0.25); border-radius: 20px;
    font-size: 12px; cursor: pointer; transition: all 0.3s; color: #8c9bf7;
}
.recommend-chip:hover { background: rgba(84,104,242,0.25); border-color: #5468f2; color: #b8c1fa; }
@media print {
    body * { visibility: hidden; }
    #recommendResults, #recommendResults * { visibility: visible; }
    #recommendResults {
        position: absolute; left: 0; top: 0; width: 100%;
        background: #fff !important; color: #141c28 !important;
        border: none !important; padding: 30px !important;
        font-size: 13px !important; line-height: 1.6 !important;
    }
    #recommendResults h2 { color: #0c21a6 !important; border-bottom: 2px solid #5468f2 !important; }
    #recommendResults h3 { color: #1431ed !important; }
    #recommendResults p, #recommendResults li { color: #1c2430 !important; }
    #recommendResults strong { color: #000 !important; }
    #recommendResults ul li::marker { color: #4255d9 !important; }
    .recommend-print-btn { display: none !important; }
}

.sample-data-btn {
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.3);
}

.sample-data-btn:hover {
    background: linear-gradient(135deg, #45a049, #5bb974);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.sample-data-btn .material-icons {
    font-size: 1.1rem;
}
