/* styles.css - Titanic Dashboard Workshop Styles */

/* CSS Variables for consistent theming */
:root {
   /*  --primary-color: #2E86AB;  */
    --primary-color: #2D3748 ;
    --secondary-color:#14B8A6;
    --accent-color: #F18F01;
    --danger-color: #C73E1D;
    --success-color: #4CAF50;
    --bg-light: #F8F9FA;
    --bg-dark: #1a1a2e;
    --text-primary: #333;
    --text-secondary: #666;
    --border-color: #E0E0E0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.2);
    --transition: all 0.3s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation Bar */
.workshop-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(90deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 15px;
}

.nav-logo {
    height: 40px;
    width: auto;
    flex-shrink: 0;
}

.nav-title {
    font-size: 1.5rem;
    /* text-transparent bg-clip-text bg-gradient-to-r from-blue-400 to-purple-400
    color: var(--primary-color); */
        background-image: linear-gradient(90deg, #60A5FA 0%, #C084FC 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: block;
  text-align: center;
  width: 100%;
    }

.progress-bar {
    flex: 1;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    margin: 0 20px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    width: 0%;
    transition: width 0.5s ease;
}

.timer {
    font-family: 'Monaco', monospace;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 120px 0 80px;
    margin-top: 60px;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    animation: fadeInUp 0.8s ease;
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 20px;
    opacity: 0.9;
}

.duration {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.8;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-reveal {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    display: inline-block;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-reveal {
    background: var(--accent-color);
    color: white;
    margin-top: 15px;
}

/* Poll Section */
.poll-section {
    padding: 60px 0;
    background: white;
}

.poll-container {
    display: grid;
    gap: 30px;
    margin: 40px 0;
}

.poll-question {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.poll-question h3 {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.poll-options {
    display: flex;
    gap: 15px;
}

.poll-btn {
    flex: 1;
    padding: 15px;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.poll-btn:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.poll-btn.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.poll-result {
    margin-top: 20px;
    padding: 15px;
    background: white;
    border-radius: 6px;
}

/* Learning Objectives */
.objectives {
    padding: 80px 0;
    background: white;
}

.objectives h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: var(--text-primary);
}

.objectives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.objective-card {
    text-align: center;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 10px;
    transition: var(--transition);
}

.objective-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.objective-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.objective-card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Materials Section */
.materials {
    padding: 60px 0;
    background: var(--bg-light);
}

.materials h2 {
    text-align: center;
    margin-bottom: 40px;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.download-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.download-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.file-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.download-btn {
    margin-top: auto;
    padding: 8px 20px;
    background: var(--primary-color);
    color: white;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Module Sections */
.module {
    padding: 80px 0;
    background: white;
    border-bottom: 1px solid var(--border-color);
}

.module:nth-child(even) {
    background: var(--bg-light);
}

.module-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
}

.module-number {
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.module-header h2 {
    flex: 1;
    margin: 0 20px;
    color: var(--text-primary);
}

.module-time {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Important First Step - CSV to Excel Conversion */
.important-step {
    background: linear-gradient(135deg, #FFF3CD 0%, #FFE5A1 100%);
    border: 3px solid var(--accent-color);
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: var(--shadow-md);
    position: relative;
}

.important-step::before {
    content: '📌';
    position: absolute;
    top: -15px;
    left: 20px;
    background: white;
    padding: 0 10px;
    font-size: 1.5rem;
}

.important-step h4 {
    color: var(--danger-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.conversion-steps {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
}

.conversion-steps ol {
    counter-reset: conversion-counter;
    list-style: none;
    padding-left: 0;
}

.conversion-steps ol > li {
    counter-increment: conversion-counter;
    margin-bottom: 20px;
    padding-left: 40px;
    position: relative;
}

.conversion-steps ol > li::before {
    content: counter(conversion-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: var(--accent-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.conversion-steps ul {
    list-style-type: none;
    padding-left: 15px;
    margin-top: 10px;
}

.conversion-steps ul li {
    padding: 5px 0;
    padding-left: 25px;
    position: relative;
}

.conversion-steps ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.important-step .excel-tip {
    background: var(--danger-color);
    color: white;
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
    border: none;
}

.important-step .excel-tip strong {
    font-size: 1.1rem;
}

/* Activity Boxes */
.activity-box, .challenge-box, .demo-section {
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    padding: 30px;
    margin: 30px 0;
}

.activity-box h4, .challenge-box h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Data Preview Table */
.data-preview-container {
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.data-preview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-preview-table thead {
    background: var(--primary-color);
    color: white;
}

.data-preview-table th {
    padding: 10px 8px;
    text-align: left;
    font-weight: 600;
    border-right: 1px solid rgba(255,255,255,0.1);
    white-space: nowrap;
}

.data-preview-table th:last-child {
    border-right: none;
}

.data-preview-table tbody tr {
    border-bottom: 1px solid var(--border-color);
}

.data-preview-table tbody tr:hover {
    background: var(--bg-light);
}

.data-preview-table td {
    padding: 8px;
    border-right: 1px solid var(--border-color);
}

.data-preview-table td:last-child {
    border-right: none;
}

.data-preview-table tbody tr:nth-child(even) {
    background: #f9f9f9;
}

/* Empty cells (missing data) */
.data-preview-table td:empty {
    background: #ffeeee;
    position: relative;
}

.data-preview-table td:empty::after {
    content: '(missing)';
    color: #999;
    font-style: italic;
    font-size: 0.85em;
}

.data-note {
    margin-top: 15px;
    padding: 15px;
    background: #FFF3CD;
    border-left: 4px solid var(--accent-color);
    border-radius: 0 6px 6px 0;
    font-size: 0.95rem;
}

/* Column Grid */
.column-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.column-item {
    padding: 15px;
    background: var(--bg-light);
    border-radius: 6px;
    text-align: center;
}

.column-item code {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.column-item span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Excel Instructions Styling */
.excel-instructions {
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.excel-instructions h5 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.excel-instructions ol {
    counter-reset: step-counter;
    list-style: none;
    padding-left: 0;
}

.excel-instructions ol > li {
    counter-increment: step-counter;
    margin-bottom: 15px;
    padding-left: 35px;
    position: relative;
}

.excel-instructions ol > li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: var(--primary-color);
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.excel-instructions ul {
    list-style-type: none;
    padding-left: 20px;
    margin-top: 8px;
}

.excel-instructions ul li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

.excel-instructions ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.excel-instructions code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.95em;
    color: #d63384;
}

.excel-instructions kbd {
    background: linear-gradient(to bottom, #f9f9f9, #e9e9e9);
    border: 1px solid #ccc;
    color: #0b1222;
    border-radius: 3px;
    padding: 2px 6px;
    font-family: Arial, sans-serif;
    font-size: 0.9em;
    box-shadow: 0 1px 0 rgba(0,0,0,0.2);
}

/* Worksheet */
.worksheet {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

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

.checklist-item h5 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.checklist-item textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    resize: vertical;
    font-family: inherit;
}

/* Step by Step Instructions */
.step {
    margin: 30px 0;
    border-left: 3px solid var(--primary-color);
    padding-left: 25px;
}

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

.step-number {
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 4px;
    margin-right: 15px;
    font-size: 0.9rem;
}

.step-content {
    color: var(--text-secondary);
}

.formula-box {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 15px 20px;
    border-radius: 6px;
    margin: 15px 0;
    font-family: 'Monaco', 'Courier New', monospace;
    overflow-x: auto;
}

.excel-tip {
    background: #FFF3CD;
    border-left: 4px solid var(--accent-color);
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 6px 6px 0;
}

/* Business Bridge */
.business-bridge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin: 40px 0;
}

.business-bridge h4 {
    margin-bottom: 15px;
}

/* Checkpoint */
.checkpoint {
    background: #D4EDDA;
    border: 2px solid var(--success-color);
    border-radius: 10px;
    padding: 25px;
    margin: 40px 0;
}

.checkpoint h4 {
    color: var(--success-color);
    margin-bottom: 15px;
}

.progress-check label {
    display: block;
    margin: 8px 0;
}

/* Myth Busters */
.myth-card {
    background: white;
    border: 2px solid var(--secondary-color);
    border-radius: 10px;
    padding: 30px;
    margin: 30px 0;
}

.myth-card h4 {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.reveal-box {
    margin-top: 20px;
}

.truth-content {
    padding: 20px;
    background: var(--bg-light);
    border-radius: 6px;
    margin-top: 15px;
}

.truth-statement {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.truth-insight {
    color: var(--text-secondary);
    font-style: italic;
}

/* Chart Challenge */
.chart-challenge {
    margin: 40px 0;
}

.challenge-item {
    background: white;
    padding: 30px;
    border-radius: 10px;
    margin: 25px 0;
    box-shadow: var(--shadow-sm);
}

.chart-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.chart-options label {
    cursor: pointer;
    padding: 10px;
    border-radius: 6px;
    transition: var(--transition);
}

.chart-options label:hover {
    background: var(--bg-light);
}

.chart-reasoning {
    background: var(--bg-light);
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
}

.build-instructions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* Dashboard Layout */
.layout-template {
    margin: 30px 0;
    text-align: center;
}

.layout-template img {
    max-width: 100%;
    border: 2px solid var(--border-color);
    border-radius: 10px;
}

/* Color Palette */
.color-palette {
    margin: 30px 0;
}

.color-swatches {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.swatch {
    padding: 20px;
    color: white;
    border-radius: 6px;
    text-align: center;
    flex: 1;
}

/* Advanced Challenges */
.challenge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.adv-challenge-card {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 10px;
    border-top: 3px solid var(--accent-color);
}

.adv-challenge-card h4 {
    color: var(--accent-color);
    margin-bottom: 10px;
}

.adv-challenge-card details {
    margin-top: 15px;
}

.adv-challenge-card summary {
    cursor: pointer;
    color: var(--primary-color);
    font-weight: 600;
}

/* Story Framework */
.story-arc {
    display: flex;
    justify-content: space-between;
    margin: 40px 0;
    position: relative;
}

.story-arc::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
    z-index: 0;
}

.arc-stage {
    background: white;
    padding: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    flex: 1;
    margin: 0 10px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.arc-stage h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Insight Builder */
.insight-builder {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.insight-builder input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin: 10px 0;
}

.story-output {
    margin-top: 30px;
    padding: 25px;
    background: var(--bg-light);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

/* Application Grid */
.application-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.application-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.application-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.application-card h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.application-card ul {
    margin-bottom: 20px;
    list-style-position: inside;
}

.application-insight {
    padding: 15px;
    background: var(--bg-light);
    border-radius: 6px;
    font-style: italic;
    color: var(--text-secondary);
}

/* Next Steps */
.next-steps {
    background: var(--bg-light);
    padding: 80px 0;
}

.next-steps h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
}

.action-plan {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.action-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    border-top: 4px solid var(--primary-color);
}

.action-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.action-card ul {
    list-style: none;
}

.action-card li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.action-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* Resources */
.resources {
    margin-top: 60px;
}

.resources h3 {
    text-align: center;
    margin-bottom: 40px;
}

.resource-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.resource-link {
    display: flex;
    align-items: center;
    padding: 25px;
    background: white;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
}

.resource-link:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.resource-icon {
    font-size: 2rem;
    margin-right: 20px;
}

.resource-link h4 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.resource-link p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Final Message */
.final-message {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 10px;
    margin-top: 40px;
}

.final-message h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.btn-social {
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-social.linkedin {
    background: #0077B5;
    color: white;
}

.btn-social.twitter {
    background: #1DA1F2;
    color: white;
}

.btn-social.email {
    background: var(--text-primary);
    color: white;
}

.btn-social:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Module Progress Tracker - Top Fixed */
.progress-tracker-top {
    position: fixed;
    top: 68px; /* Below main nav */
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 999;
    border-bottom: 2px solid var(--primary-color);
}

.tracker-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.module-progress-horizontal {
    display: flex;
    gap: 30px;
    flex: 1;
}

.progress-tracker-top .progress-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    padding: 5px 10px;
    border-radius: 20px;
}

.progress-tracker-top .progress-item:hover {
    background: var(--bg-light);
}

.progress-tracker-top .progress-icon {
    margin-right: 8px;
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.progress-tracker-top .progress-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.progress-tracker-top .progress-item.completed .progress-icon {
    color: var(--success-color);
    content: '✓';
}

.progress-tracker-top .progress-item.completed .progress-icon::before {
    content: '✓';
}

.progress-tracker-top .progress-item.active {
    background: var(--bg-light);
}

.progress-tracker-top .progress-item.active .progress-label {
    color: var(--primary-color);
    font-weight: 600;
}

.progress-tracker-top .progress-item.active .progress-icon {
    color: var(--primary-color);
}

.completion-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: var(--bg-light);
    border-radius: 20px;
}

.completion-percent {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.completion-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Adjust hero section for new top progress tracker */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 120px 0 80px;
    margin-top: 120px; /* Adjusted for both nav bars */
    text-align: center;
}

/* Adjust module sections for fixed top progress */
.module {
    scroll-margin-top: 140px; /* Account for both fixed headers */
}

/* Help Button & Panel */
.help-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 998;
    transition: var(--transition);
}

.help-btn:hover {
    transform: scale(1.1);
    background: var(--secondary-color);
}

/* Dashboard Template Visualization */
.dashboard-template {
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    overflow: hidden;
    margin: 20px 0;
    background: #f9f9f9;
}

.template-header {
    background: white;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.template-title {
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.template-metrics {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.metric-box {
    background: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.template-body {
    display: flex;
    min-height: 300px;
}

.template-sidebar {
    background: #e8e8e8;
    width: 25%;
    padding: 15px;
    border-right: 1px solid var(--border-color);
}

.slicer-zone {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.slicer {
    background: white;
    border: 1px solid var(--primary-color);
    padding: 10px;
    text-align: center;
    border-radius: 4px;
    font-size: 0.85rem;
}

.template-main {
    flex: 1;
    padding: 15px;
    background: white;
}

.chart-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.chart-box {
    background: var(--bg-light);
    border: 1px dashed var(--secondary-color);
    padding: 30px 10px;
    text-align: center;
    border-radius: 4px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.insights-box {
    background: #fff3cd;
    border: 1px solid var(--accent-color);
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    color: var(--text-secondary);
}

.template-footer {
    background: var(--bg-light);
    padding: 10px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
}

.zone-list {
    list-style-type: none;
    padding-left: 0;
}

.zone-list li {
    padding: 8px;
    margin: 5px 0;
    background: var(--bg-light);
    border-left: 3px solid var(--primary-color);
    border-radius: 0 4px 4px 0;
}

/* Reference Button */
.reference-btn {
    position: fixed;
    bottom: 30px;
    right: 100px;
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 998;
    transition: var(--transition);
}

.reference-btn:hover {
    transform: scale(1.1);
    background: var(--secondary-color);
}

/* Quick Reference Modal Styles */
.modal-xl {
    max-width: 90%;
}

.reference-section {
    padding: 20px;
}

.reference-heading {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.formula-group {
    margin-bottom: 20px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 8px;
}

.formula-title {
    color: var(--secondary-color);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.formula-code {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.formula-code code {
    font-family: 'Monaco', 'Courier New', monospace;
    color: #d63384;
    font-size: 0.95rem;
}

.copy-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
}

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

.copy-btn.copied {
    background: var(--success-color);
}

.reference-steps {
    line-height: 2;
}

.reference-steps li {
    margin-bottom: 10px;
}

.reference-list {
    list-style-type: none;
    padding-left: 0;
}

.reference-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.reference-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.checklist-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checklist-ref {
    display: flex;
    align-items: center;
    padding: 8px;
    background: var(--bg-light);
    border-radius: 4px;
    cursor: pointer;
}

.checklist-ref:hover {
    background: #e0e0e0;
}

.checklist-ref input[type="checkbox"] {
    margin-right: 10px;
}

.color-reference {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.color-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.color-box {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Bootstrap Modal Overrides for Reference */
#quickReferenceModal .modal-header {
    background: var(--primary-color);
    color: white;
}

#quickReferenceModal .modal-title {
    font-size: 1.5rem;
}

#quickReferenceModal .btn-close {
    filter: brightness(0) invert(1);
}

#quickReferenceModal .nav-tabs .nav-link {
    color: var(--text-secondary);
    font-weight: 500;
}

#quickReferenceModal .nav-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

#quickReferenceModal .table {
    font-size: 0.9rem;
}

#quickReferenceModal kbd {
    background: linear-gradient(to bottom, #f9f9f9, #e9e9e9);
    color: #0b1222;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 2px 6px;
    font-family: Arial, sans-serif;
    font-size: 0.85em;
    box-shadow: 0 1px 0 rgba(0,0,0,0.2);
}

#quickReferenceModal .accordion-button {
    background: var(--bg-light);
    color: var(--text-primary);
}

#quickReferenceModal .accordion-button:not(.collapsed) {
    background: var(--primary-color);
    color: white;
}

.help-panel {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    z-index: 997;
    max-height: 500px;
    overflow-y: auto;
}

.help-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid var(--primary-color);
    background: var(--primary-color);
    color: white;
    border-radius: 10px 10px 0 0;
}

.help-header button {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.help-content {
    padding: 20px;
}

.help-section {
    margin-bottom: 25px;
}

.help-section h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.help-section ul {
    list-style: none;
}

.help-section li {
    padding: 5px 0;
}

.help-section kbd {
    background: var(--bg-light);
    color: #0b1222;
    padding: 3px 8px;
    border-radius: 3px;
    font-family: 'Monaco', monospace;
    font-size: 0.9rem;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.section-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 30px;
}

.narrative {
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 15px 0;
}

.motivation-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 10px;
    margin-top: 30px;
}

/* Remove partner-check styles since we're individual now */
.partner-check {
    display: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 134, 171, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(46, 134, 171, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(46, 134, 171, 0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .objectives-grid,
    .download-grid,
    .column-grid,
    .checklist-grid,
    .challenge-grid,
    .application-grid,
    .feedback-prompts,
    .action-plan,
    .resource-links {
        grid-template-columns: 1fr;
    }

    .story-arc {
        flex-direction: column;
    }

    .arc-stage {
        margin: 10px 0;
    }

    .progress-tracker-top {
        display: none;
    }

    .help-panel {
        width: 90%;
        right: 5%;
    }

    .module-header {
        flex-direction: column;
        text-align: center;
    }

    .module-header h2 {
        margin: 15px 0;
    }

    .share-buttons {
        flex-direction: column;
    }

    .data-preview-container {
        font-size: 0.8rem;
    }
}

/* Print Styles */
@media print {
    .workshop-nav,
    .progress-tracker,
    .help-btn,
    .help-panel,
    .download-card,
    .btn-primary,
    .btn-secondary,
    .btn-reveal,
    .poll-btn {
        display: none;
    }

    .module {
        page-break-before: always;
    }

    body {
        font-size: 12pt;
    }

    .hero {
        padding: 40px 0;
    }
}

/* Logo styling */
        .logo-container {
            position: fixed;
            top: 10px;
            left: 10px;
            z-index: 1000;
        }

        .logo-container a {
            display: block;
        }

        .logo-container img {
            height: 40px; /* Adjust size as needed */
            width: auto;
            transition: opacity 0.3s ease;
        }

        .logo-container img:hover {
            opacity: 0.8;
        }
        @media screen and (max-width: 768px) {
            .logo-container {
                display: none;
            }
        }

/*    Certificate   */
/* Certificate Modal Styling */
#certificateNameModal .modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

#certificateNameModal .modal-header {
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    border: none;
}

#certificateNameModal .form-control {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
}

#certificateNameModal .form-control:focus {
    border-color: #2E86AB;
    box-shadow: 0 0 0 0.2rem rgba(46, 134, 171, 0.25);
}

#certificateNameModal .alert-warning {
    background-color: #fff3cd;
    border-left: 4px solid #F18F01;
    border-radius: 8px;
}

#generateCertificateBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* certificate   */
/* Certificate Notification */
.certificate-notification {
    position: fixed;
    top: 20px;
    right: -400px;
    width: 350px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 10000;
    transition: right 0.3s ease;
}

.certificate-notification.show {
    right: 20px;
}

.notification-content {
    padding: 20px;
}

.notification-content h3 {
    color: #2E86AB;
    margin-bottom: 10px;
}

.notification-content button {
    background: #2E86AB;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    width: 100%;
}

.notification-content button:hover {
    background: #1a5278;
}

/* Certificate Download Link States */
.certificate-download.disabled {
    pointer-events: none;
    position: relative;
}

.certificate-download.disabled::after {
    content: '🔒';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
}

.certificate-download:not(.disabled)::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    color: #4CAF50;
}

/* Progress Item Completed State */
.progress-item.completed {
    background: #d4edda;
    border-left: 4px solid #28a745;
}

.progress-item.completed .progress-icon {
    color: #28a745;
    font-weight: bold;
}