/* MVP Results Table Styles */

.results table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

#mvpResults table th,
#mvpResults table td {
    padding: 0.4rem 0.5rem;
    font-size: 0.85rem;
    vertical-align: top;
}

#mvpResults table input,
#mvpResults table select {
    width: 100%;
    padding: 0.35rem 0.45rem;
    font-size: 0.85rem;
}

#mvpResults table input[type="number"] {
    max-width: 5rem;
}

#mvpResults .dont-implement-row {
    background: #f8f9fb;
    opacity: 0.75;
}

#mvpResults .feature-label {
    display: block;
    padding: 0.35rem 0.45rem;
    font-size: 0.85rem;
    word-wrap: break-word;
}

.table-actions {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.thinking-indicator {
    display: none;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0 0.75rem;
    color: #666;
    font-size: 0.9rem;
}

.thinking-indicator.active {
    display: inline-flex;
}

.thinking-indicator .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #667eea;
    animation: pulse 1s infinite ease-in-out;
}

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

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

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-3px); }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f7f9;
}

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

/* Modern Navigation */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    position: relative;
}

.logo {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    z-index: 1001;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.75rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

/* Navigation Links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links > li {
    position: relative;
}

.nav-links > li > a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    display: block;
    transition: background-color 0.2s ease;
}

.nav-links > li > a:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: none; /* Hidden until authenticated */
}

.dropdown.visible {
    display: block;
}

.dropdown-toggle {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1rem;
    font-family: inherit;
    transition: background-color 0.2s ease;
    user-select: none;
}

.dropdown-toggle:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.dropdown-toggle::after {
    content: '▾';
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.dropdown.active .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    min-width: 220px;
    padding: 0.5rem 0;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 2000;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    left: 0;
    right: 0;
    height: 0.5rem;
}

.dropdown-menu.expanded {
    min-width: 280px;
    padding: 0.75rem 0;
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
    margin: 0;
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: #334155;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.dropdown-menu a:hover {
    background-color: #f1f5f9;
    color: #667eea;
}

.dropdown-section-title {
    padding: 0.5rem 1.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
        flex-direction: column;
        align-items: stretch;
        padding: 5rem 0 2rem;
        gap: 0;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
        transition: right 0.3s ease;
        overflow-y: auto;
    }

    .nav-links.mobile-active {
        right: 0;
    }

    .nav-links > li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links > li > a,
    .dropdown-toggle {
        padding: 1rem 1.5rem;
        border-radius: 0;
    }

    .nav-links > li > a:hover,
    .dropdown-toggle:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.2);
        border-radius: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: max-height 0.3s ease;
    }

    .dropdown-menu::before {
        display: none;
    }

    .dropdown.active .dropdown-menu {
        max-height: 500px;
    }

    .dropdown-menu a {
        padding: 0.875rem 2.5rem;
        color: white;
        font-size: 0.95rem;
    }

    .dropdown-menu a:hover {
        background-color: rgba(0, 0, 0, 0.2);
        color: white;
    }

    .dropdown-section-title {
        color: rgba(255, 255, 255, 0.7);
        padding-left: 2.5rem;
    }
}

/* Mobile Menu Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.mobile-overlay.active {
    display: block;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.hero .subtitle {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.hero .description {
    font-size: 0.9rem;
    opacity: 0.8;
    max-width: 700px;
    margin: 0 auto;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.page-header .subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Sections */
section {
    margin: 3rem 0;
}

section h2 {
    color: #667eea;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

section h3 {
    color: #764ba2;
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Module Grid */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.survey-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.survey-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.survey-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.survey-item {
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.survey-response-item {
    display: block;
}

.survey-response-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.survey-item-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.survey-item.is-open {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.survey-response-details {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
    display: none;
}

.survey-item.is-open .survey-response-details {
    display: block;
}

.survey-answer-list {
    display: grid;
    gap: 0.75rem;
}

.survey-answer-item strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #333;
}

.survey-answer-item p {
    margin: 0;
    color: #555;
}

.survey-toggle-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
}

.module-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}

.module-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.module-card h3 {
    margin-top: 0;
    color: #667eea;
}

.module-card p {
    margin: 1rem 0;
    color: #666;
}

/* Content Cards */
.content-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin: 2rem 0;
}

.content-card h3 {
    margin-top: 0;
}

/* Illustration Boxes */
.illustration-box {
    background: linear-gradient(135deg, #e0e7ff 0%, #f3e8ff 100%);
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
    border: 2px solid #667eea;
}

.illustration-box img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.illustration-text {
    font-size: 3rem;
    margin: 2rem 0;
}

.illustration-caption {
    font-style: italic;
    color: #666;
    margin-top: 1rem;
}

/* Lists */
ul, ol {
    margin: 1rem 0 1rem 2rem;
}

li {
    margin: 0.5rem 0;
}

.checklist {
    list-style: none;
    margin-left: 0;
}

.checklist li:before {
    content: "✓ ";
    color: #667eea;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Info Boxes */
.info-box {
    background: #e8f4f8;
    border-left: 4px solid #667eea;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 5px;
}

.warning-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 5px;
}

.success-box {
    background: #d4edda;
    border-left: 4px solid #28a745;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 5px;
}

/* Buttons */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    transition: transform 0.3s, box-shadow 0.3s;
    font-weight: 600;
    margin-top: 1rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Timeline */
.journey-timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 3rem 0;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 150px;
}

.timeline-dot {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.timeline-content h4 {
    color: #667eea;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: #666;
    font-size: 0.9rem;
    text-align: center;
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

/* Quote Box */
.quote-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
    font-size: 1.2rem;
    font-style: italic;
    text-align: center;
}

.quote-box cite {
    display: block;
    margin-top: 1rem;
    font-size: 1rem;
    font-style: normal;
    opacity: 0.9;
}

/* Activity Box */
.activity-box {
    background: #fff9e6;
    border: 2px dashed #ffc107;
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.activity-box h4 {
    color: #f57c00;
    margin-top: 0;
}

/* Example Box */
.example-box {
    background: #f0f7ff;
    border-left: 4px solid #2196f3;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 5px;
}

.example-box h4 {
    color: #2196f3;
    margin-top: 0;
}

/* Footer */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin: 3rem 0;
    gap: 1rem;
}

.nav-buttons .btn {
    flex: 1;
}

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

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

    .journey-timeline {
        flex-direction: column;
        gap: 2rem;
    }

    .two-column {
        grid-template-columns: 1fr;
    }

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

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    text-align: left;
}

table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

table tr:last-child td {
    border-bottom: none;
}

table tr:hover {
    background: #f8f9fa;
}
/* Authentication Styles */
.btn-small {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

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

.auth-modal {
    display: none !important;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.auth-modal.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.auth-modal-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideIn 0.3s ease-out;
}

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

.auth-close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.auth-close:hover {
    color: #333;
}

.auth-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #eee;
}

.auth-tab {
    flex: 1;
    padding: 0.75rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #999;
    transition: all 0.3s ease;
}

.auth-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.auth-form {
    margin-top: 1rem;
}

.auth-form h3 {
    margin-bottom: 1.5rem;
    color: var(--text);
    text-align: center;
}

.auth-form input {
    width: 100%;
    padding: 0.875rem;
    margin-bottom: 1rem;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Sidebar Navigation Styles */
.main-layout {
    display: flex;
    min-height: calc(100vh - 60px);
}

.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: fixed;
    left: 0;
    top: 60px;
    bottom: 0;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 999;
    display: none; /* Hidden by default, shown when authenticated */
}

.sidebar-header {
    padding: 2rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.sidebar-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: #f5576c;
    transform: translateX(5px);
}

.sidebar-item.active {
    background: rgba(255, 255, 255, 0.15);
    border-left-color: #f5576c;
}

.sidebar-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    min-width: 30px;
    text-align: center;
}

.sidebar-text {
    font-size: 1rem;
    font-weight: 500;
}

.main-content {
    flex: 1;
    margin-left: 0; /* No margin by default */
    transition: margin-left 0.3s ease;
}

/* When sidebar is visible (authenticated users) */
.sidebar.visible ~ .main-content,
.main-layout.sidebar-visible .main-content {
    margin-left: 280px;
}

/* Responsive sidebar */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: relative;
        top: 0;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .main-layout {
        flex-direction: column;
    }
}
