/* CSS Variables for Design System */
:root {
    --brand-blue: #3869FA;
    --royal-blue: #2048D5;
    --white: #FFFFFF;
    --medium-gray: #EEF0F3;
    --accent-blue: #448CF7;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-base: 16px;
    --font-size-small: 14px;
    --font-size-large: 18px;
    --font-size-xl: 24px;
    --font-size-2xl: 32px;
    --font-size-3xl: 48px;
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 36px;
    --spacing-xl: 48px;
    --spacing-2xl: 64px;
    --spacing-3xl: 88px;
    --spacing-4xl: 112px;
    
    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    
    /* Container max-width */
    --container-max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Sticky footer setup */
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
}

h2 {
    font-size: var(--font-size-2xl);
}

h3 {
    font-size: var(--font-size-xl);
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
}

ul, ol {
    margin-bottom: var(--spacing-sm);
    padding-left: 1.5em;
}

ul li, ol li {
    margin-bottom: 0.5em;
    line-height: 1.6;
}

/* Global Section Styles */
.section-title {
    text-align: left;
    margin-bottom: var(--spacing-2xl);
    color: var(--text-dark);
}

@media (min-width: 1024px) {
    .section-title {
        text-align: center;
    }
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 48px;
}

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

.btn-accent:hover {
    background-color: #3b7de6;
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-large {
    padding: 16px 32px;
    font-size: var(--font-size-large);
    min-height: 56px;
}

/* Header Styles */
.header {
    background-color: #f9fafb;
    border-bottom: 1px solid var(--medium-gray);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background-color: rgba(249, 250, 251, 0.95);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-svg {
    height: 32px;
    width: auto;
}

/* Legacy text logo styles - kept for compatibility */
.logo-icon {
    font-size: 20px;
}

.logo-text {
    font-size: 27px;
    font-weight: 700;
}

.logo-norm {
    color: #3869FA;
    font-weight: 700;
}

.logo-scout {
    color: #3869FA;
    font-weight: 400;
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--royal-blue);
}

.nav-link.btn-accent {
    color: var(--white) !important;
}

.nav-link-subtle {
    opacity: 0.7;
    font-weight: 400;
}

.nav-link-subtle:hover {
    opacity: 1;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.mobile-menu-toggle span {
    width: 24px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 2px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--royal-blue) 0%, #1a3eb3 100%);
    color: var(--white);
    padding: var(--spacing-4xl) 0 var(--spacing-3xl);
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.hero-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--white);
}

.hero-subtitle {
    font-size: var(--font-size-large);
    margin-bottom: var(--spacing-xl);
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
}

.hero-illustration {
    display: none;
}

.blueprint-lines {
    opacity: 0.6;
}

/* ================================================
   HOW IT WORKS SECTION
   ================================================ */

.how-it-works {
    padding: var(--spacing-3xl) 0 var(--spacing-4xl) 0;
    background-color: var(--white);
}

/* Steps Grid Layout */
.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}

/* Step Card Components */
.step-card {
    text-align: center;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    background-color: var(--white);
    border: 1px solid var(--medium-gray);
    transition: all 0.3s ease;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-blue);
}

/* Step Card Links */
.step-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
    height: 100%;
}

.step-card-link:hover {
    color: inherit;
    text-decoration: none;
}

.step-card-link:hover .step-card {
    cursor: pointer;
}

/* Step Card Content */
.step-icon {
    margin-bottom: var(--spacing-md);
    display: flex;
    justify-content: center;
}

.step-title {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.step-description {
    color: var(--text-light);
    max-width: 300px;
    margin: 0 auto;
    flex-grow: 1;
}

/* Value Proposition Section */
.value-proposition {
    padding: var(--spacing-4xl) 0;
    background-color: var(--medium-gray);
    text-align: center;
}

/* Why NormScout Card */
.why-normscout-card {
    background: linear-gradient(135deg, #ffffff 0%, #f7fafd 100%);
    border-radius: 20px;
    box-shadow: 0 6px 32px rgba(56, 105, 250, 0.06);
    padding: 48px 40px;
    max-width: 700px;
    margin: 0 auto 48px auto;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    border-left: 3px solid #3869FA20;
}

.why-normscout-card:hover {
    box-shadow: 0 8px 40px rgba(56, 105, 250, 0.08);
    transform: translateY(-2px);
}

.icon-backdrop {
    position: absolute;
    top: 20px;
    left: 30px;
    opacity: 0.08;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.section-title-blue {
    color: #3869FA;
    font-weight: 700;
    margin-bottom: 24px;
    font-size: 32px;
}

.why-description {
    font-size: 19px;
    line-height: 1.65;
    color: #1a2446;
    font-weight: 400;
    text-align: center;
    margin: 0;
}

.highlight-blue {
    color: #3869FA;
    font-weight: 600;
    position: relative;
}

.highlight-blue::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #3869FA20;
    transition: all 0.3s ease;
}

.why-normscout-card:hover .highlight-blue::after {
    background: #3869FA40;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .why-normscout-card {
        padding: 32px 24px;
        margin: 0 16px 32px 16px;
        max-width: 90%;
    }

    .section-title-blue {
        font-size: 28px;
    }

    .why-description {
        font-size: 17px;
        line-height: 1.6;
    }

    .icon-backdrop {
        top: 15px;
        left: 20px;
    }
}

/* Metrics Section */
.metrics-section {
    padding: var(--spacing-3xl) 0;
    background-color: var(--white);
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    text-align: center;
}

.metric-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: var(--spacing-xl) var(--spacing-2xl);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 12px rgba(32, 72, 213, 0.08);
    border: 2px solid var(--medium-gray);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.metric-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue), var(--royal-blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(32, 72, 213, 0.15);
    border-color: var(--accent-blue);
}

.metric-card:hover::after {
    transform: scaleX(1);
}

.metric-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--royal-blue), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-xs);
    display: block;
}

.metric-label {
    color: var(--text-light);
    font-weight: 500;
    display: block;
    font-size: var(--font-size-base);
}

.cta-section {
    margin-top: var(--spacing-xl);
}

/* Pain Points Section */
.pain-points-section {
    padding: var(--spacing-4xl) 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.pain-points-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-2xl);
    margin-top: var(--spacing-3xl);
}

.pain-point-card {
    background: var(--white);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 2px solid var(--medium-gray);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pain-point-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(56, 105, 250, 0.03), rgba(32, 72, 213, 0.03));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pain-point-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: rgba(56, 105, 250, 0.3);
}

.pain-point-card:hover::before {
    opacity: 1;
}

.pain-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 50%;
    padding: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.pain-icon svg {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
}

.metric-card .pain-icon {
    width: 96px;
    height: 96px;
    margin-bottom: var(--spacing-md);
}

.pain-point-card h3 {
    font-size: var(--font-size-xl);
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.pain-point-card p {
    color: var(--text-light);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .pain-points-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

/* ================================================
   INVESTMENT SECTION
   ================================================ */

.investment-section {
    padding: var(--spacing-3xl) 0;
    background-color: #f9fafb;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.investment-headline {
    font-size: 42px;
    font-weight: 700;
    color: #3869FA;
    margin-bottom: var(--spacing-md);
    animation: fadeInUp 0.6s ease-out;
}

.investment-subtitle {
    font-size: var(--font-size-large);
    color: var(--text-dark);
    max-width: 560px;
    margin: 0 auto var(--spacing-xl);
    line-height: 1.6;
    animation: fadeInUp 0.6s ease-out 0.1s backwards;
}

.investment-invite {
    max-width: 560px;
    margin: var(--spacing-xl) auto;
    font-size: var(--font-size-base);
    color: var(--text-dark);
    line-height: 1.8;
    animation: fadeInUp 0.6s ease-out 0.3s backwards;
}

/* Testimonial Box - Enhanced Styling */
.testimonial-box {
    background: linear-gradient(135deg, #ffffff 0%, #f6f9ff 100%);
    border-radius: 18px;
    box-shadow: 0 6px 32px rgba(56, 105, 250, 0.08);
    padding: 40px 48px;
    max-width: 700px;
    margin: var(--spacing-2xl) auto;
    position: relative;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out 0.4s backwards;
    overflow: hidden;
}

.testimonial-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #3869FA 0%, #448CF7 100%);
}

.testimonial-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(56, 105, 250, 0.12);
}

.quote-icon {
    font-size: 60px;
    color: #3869FA;
    opacity: 0.15;
    float: left;
    margin-right: 20px;
    margin-top: -10px;
    font-family: Georgia, serif;
    line-height: 1;
    transition: all 0.3s ease;
}

.testimonial-box:hover .quote-icon {
    transform: scale(1.1);
    opacity: 0.2;
}

.testimonial-text {
    font-style: italic;
    color: #2b3fae;
    font-size: 22px;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

.testimonial-attribution {
    color: #8a93b3;
    font-size: 15px;
    text-align: right;
    margin-top: 20px;
    font-weight: 500;
    letter-spacing: 0.3px;
    position: relative;
    z-index: 1;
}

.testimonial-attribution::before {
    content: '';
    position: absolute;
    top: -10px;
    right: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #3869FA20);
}

.investment-cta {
    margin-top: var(--spacing-xl);
    animation: fadeInUp 0.6s ease-out 0.5s backwards;
}

.btn-investment {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 36px;
    background: linear-gradient(135deg, #448CF7 0%, #3869FA 100%);
    color: var(--white);
    font-size: var(--font-size-large);
    font-weight: 600;
    border-radius: var(--radius-md);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(56, 105, 250, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-investment::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-investment:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(56, 105, 250, 0.4);
    background: linear-gradient(135deg, #3869FA 0%, #2048D5 100%);
}

.btn-investment:hover::before {
    left: 100%;
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .investment-headline {
        font-size: 32px;
    }

    .btn-investment {
        width: 100%;
        padding: 16px 24px;
    }
}

/* ================================================
   TRY NORMSCOUT SECTION - MODERN OVERHAUL
   ================================================ */

.demo-section {
    padding: var(--spacing-4xl) 0;
    background: linear-gradient(180deg, #ffffff 0%, #f0f6ff 50%, #ffffff 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Background Pattern */
.demo-background-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(56, 105, 250, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(68, 140, 247, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* Demo Section Title */
.demo-title {
    color: #3869FA;
    font-weight: 700;
    font-size: 42px;
    margin-bottom: var(--spacing-sm);
    animation: fadeInDown 0.6s ease-out;
}

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

/* Investor Traction Stats */
.investor-traction {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin: var(--spacing-2xl) 0;
}

.traction-stat {
    text-align: center;
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border-radius: var(--radius-md);
    border: 1px solid var(--medium-gray);
}

.traction-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--royal-blue);
    margin-bottom: var(--spacing-xs);
}

.traction-label {
    display: block;
    font-size: var(--font-size-small);
    color: var(--text-light);
    font-weight: 500;
}

/* Investor CTA Box */
.investor-cta-box {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--royal-blue) 100%);
    color: var(--white);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-lg);
    text-align: center;
    margin-top: var(--spacing-2xl);
}

.investor-cta-box h3 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-md);
    color: var(--white);
    font-weight: 700;
}

.investor-cta-box p {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-xl);
    color: var(--white);
    opacity: 1;
}

.investor-cta-box .btn {
    background: var(--white);
    color: var(--royal-blue);
    font-weight: 600;
}

.investor-cta-box .btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .investor-traction {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .traction-number {
        font-size: 2rem;
    }
}

.demo-subtitle {
    font-size: 20px;
    color: #5a6c8a;
    margin-bottom: var(--spacing-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    animation: fadeInUp 0.6s ease-out 0.1s backwards;
}

/* Demo CTA Section */
.demo-cta-section {
    text-align: center;
    margin-top: var(--spacing-2xl);
    animation: fadeInUp 0.6s ease-out 0.8s backwards;
}

/* Scout Now Button */
.btn-scout-now {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #3869FA 0%, #448CF7 100%);
    color: white;
    font-size: 17px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(56, 105, 250, 0.25);
    position: relative;
    overflow: hidden;
    width: 100%;
    animation: pulseButton 2s ease-out 1.2s;
}

@keyframes pulseButton {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.btn-scout-now:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 24px rgba(56, 105, 250, 0.35);
    filter: brightness(1.1);
}

.btn-scout-now::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateY(-50%);
    transition: left 0.6s ease;
}

.btn-scout-now:hover::before {
    left: 100%;
}

.btn-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    fill: white;
}

.btn-scout-now:hover .btn-arrow {
    transform: translateX(4px);
}

/* Demo Cards Grid Layout */
.demo-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    max-width: var(--container-max-width);
    margin: var(--spacing-2xl) auto;
    padding: 0 var(--spacing-md);
    align-items: stretch;
}

/* Demo Card Components - Floating elevated style */
.demo-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafbff 100%);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(56, 105, 250, 0.08);
    border: 1px solid rgba(56, 105, 250, 0.06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: left;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Sequential animation for cards */
.demo-card:nth-child(1) {
    animation: slideInLeft 0.6s ease-out 0.2s backwards;
}

.demo-card:nth-child(2) {
    animation: slideInLeft 0.6s ease-out 0.4s backwards;
}

.demo-card:nth-child(3) {
    animation: slideInLeft 0.6s ease-out 0.6s backwards;
}

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

.demo-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 48px rgba(56, 105, 250, 0.15);
    border-color: var(--accent-blue);
}

/* Demo Card Header - Left aligned with large icon */
.demo-card-header {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    text-align: left;
    min-height: 120px;
}

/* Large animated icon */
.demo-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(56, 105, 250, 0.1) 0%, rgba(68, 140, 247, 0.05) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: iconBounce 0.6s ease-out 0.8s backwards;
}

@keyframes iconBounce {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(-180deg);
    }
    50% {
        transform: scale(1.1) rotate(10deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

.demo-icon svg {
    width: 40px;
    height: 40px;
    color: var(--brand-blue);
    fill: var(--brand-blue);
}

/* Demo Card Titles */
.demo-card-title {
    flex: 1;
}

.demo-card-title h3 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 12px;
    font-weight: 700;
    line-height: 1.3;
}

.demo-card-title h3 .step-number {
    background: linear-gradient(135deg, var(--brand-blue), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: 26px;
}

.demo-card-title p {
    color: var(--text-light);
    font-size: 16px;
    margin: 0;
    line-height: 1.6;
}

/* Demo Card Content */
.demo-card-content {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* Demo Form Inputs */
.demo-input {
    width: 100%;
    padding: var(--spacing-sm);
    border: 2px solid var(--medium-gray);
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: var(--white);
}

.demo-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(68, 140, 247, 0.1);
}

/* Validation highlight animation */
@keyframes validation-highlight {
    0% {
        border-color: var(--accent-blue);
        box-shadow: 0 0 0 0 rgba(68, 140, 247, 0.4);
    }
    50% {
        border-color: var(--accent-blue);
        box-shadow: 0 0 0 6px rgba(68, 140, 247, 0.2);
    }
    100% {
        border-color: var(--accent-blue);
        box-shadow: 0 0 0 3px rgba(68, 140, 247, 0.1);
    }
}

.validation-error {
    animation: validation-highlight 0.6s ease 2;
    border-color: var(--accent-blue) !important;
}

.demo-card-highlight {
    animation: validation-highlight 0.9s ease 1;
    border-color: var(--accent-blue) !important;
}

.demo-textarea {
    resize: vertical;
    min-height: 80px;
}

.demo-select {
    cursor: pointer;
    min-height: 48px;
}

/* Demo Button */
.demo-button {
    width: 100%;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    font-weight: 600;
    background: var(--accent-blue);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
}

.demo-button:hover {
    background-color: #3b7de6;
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.button-icon {
    font-size: 18px;
}

/* Helper Text */
.input-helper {
    font-size: var(--font-size-small);
    color: var(--text-light);
    margin-top: var(--spacing-xs);
    font-style: italic;
}

/* Demo Suggestion Chips */
.demo-suggestions {
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background-color: #f8f9fa;
    border-radius: var(--radius-md);
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    align-items: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.suggestions-label {
    font-weight: 500;
    color: var(--text-light);
    font-size: var(--font-size-small);
    margin-right: var(--spacing-xs);
}

.suggestion-chip {
    background-color: var(--white);
    border: 1px solid var(--medium-gray);
    border-radius: 999px;
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: var(--font-size-small);
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.suggestion-chip:hover {
    background-color: var(--accent-blue);
    color: var(--white);
    border-color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.suggestion-chip:active {
    transform: translateY(0);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .demo-suggestions {
        flex-direction: column;
        align-items: flex-start;
    }

    .suggestions-label {
        width: 100%;
        margin-bottom: var(--spacing-xs);
    }
}

/* ========== TEASER CHAT INTERFACE ========== */
.teaser-chat-container {
    max-width: 800px;
    margin: var(--spacing-2xl) auto;
    background: white;
    border-radius: 20px;
    padding: var(--spacing-xl);
    box-shadow: 0 10px 40px rgba(56, 105, 250, 0.12);
    border: 1px solid rgba(56, 105, 250, 0.1);
    animation: fadeInUp 0.6s ease-out 0.3s backwards;
}

.teaser-chat-messages {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: var(--spacing-lg);
    padding-right: var(--spacing-xs);
}

.teaser-chat-messages::-webkit-scrollbar {
    width: 6px;
}

.teaser-chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.teaser-chat-messages::-webkit-scrollbar-thumb {
    background: var(--brand-blue);
    border-radius: 10px;
}

.teaser-message {
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-md);
    border-radius: 12px;
    line-height: 1.6;
    animation: slideIn 0.3s ease;
}

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

.teaser-message strong {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-align: left;
}

.teaser-message p {
    margin: 0;
    text-align: left;
}

.teaser-user {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-left: var(--spacing-xl);
}

.teaser-user strong {
    color: rgba(255, 255, 255, 0.9);
}

.teaser-user p {
    color: white;
}

.teaser-assistant {
    background: #f9fafb;
    border: 1px solid var(--gray-200);
    margin-right: var(--spacing-xl);
}

.teaser-assistant strong {
    color: var(--brand-blue);
}

.teaser-assistant p {
    color: var(--text-dark);
}

.teaser-input-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.teaser-input {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 16px;
    font-family: var(--font-family);
    resize: vertical;
    min-height: 80px;
    transition: all 0.2s;
}

.teaser-input:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(56, 105, 250, 0.1);
}

.teaser-send-btn {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    white-space: nowrap;
}

#teaserProgressBtn {
    width: 100%;
    margin-top: var(--spacing-md);
}

.teaser-continue-container {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 2px solid var(--gray-200);
    text-align: center;
    animation: fadeInUp 0.5s ease;
}

.teaser-continue-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: var(--spacing-sm);
}

.teaser-continue-hint {
    font-size: var(--font-size-small);
    color: var(--text-light);
    margin: 0;
}

/* Mobile responsiveness for teaser */
@media (max-width: 768px) {
    .teaser-chat-container {
        padding: var(--spacing-md);
    }

    .teaser-message {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}


/* Footer */
.footer {
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--royal-blue) 100%);
    color: var(--white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    margin-top: auto; /* Pushes footer to bottom when content is short */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo-svg {
    height: 28px;
    width: auto;
    filter: brightness(0) invert(1); /* Makes logo white */
}

/* Legacy footer text logo styles */
.footer-brand .logo-text {
    color: var(--white);
    font-size: var(--font-size-large);
}

.footer-brand .logo-norm,
.footer-brand .logo-scout {
    color: var(--white) !important;
}

.footer-links {
    display: flex;
    gap: var(--spacing-md);
}

.footer-link {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-link:hover {
    opacity: 0.8;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Responsive Design */
@media (min-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }
    
    .hero-illustration {
        display: block;
        text-align: center;
    }
    
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .metrics-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .demo-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .demo-card-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .demo-card {
        text-align: center;
    }

    .demo-card-content {
        align-items: center;
    }
    
    .footer-content {
        flex-direction: row;
    }
    
    .footer-links {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 56px;
    }
    
    .steps-grid {
        grid-template-columns: repeat(4, 1fr);
        align-items: stretch;
    }
    
    .section-title {
        text-align: center;
    }
}

@media (max-width: 767px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero {
        text-align: center;
        padding: var(--spacing-xl) 0;
    }
    
    .hero-title {
        font-size: var(--font-size-2xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-base);
    }
    
    .demo-card {
        padding: 28px 20px;
        border-radius: 20px;
    }

    .demo-icon {
        width: 56px;
        height: 56px;
    }

    .demo-icon svg {
        width: 32px;
        height: 32px;
    }

    .demo-cards-grid {
        gap: var(--spacing-lg);
        padding: 0 var(--spacing-sm);
    }

    .btn-scout-now {
        width: 100%;
        padding: 16px 28px;
        font-size: 16px;
    }

    .demo-title {
        font-size: 32px;
    }

    .demo-subtitle {
        font-size: 16px;
        padding: 0 var(--spacing-md);
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus styles for accessibility */
.btn:focus,
.nav-link:focus,
.footer-link:focus,
.product-input:focus,
.country-selector:focus {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .step-card {
        border-width: 2px;
    }
    
    .btn-accent {
        border: 2px solid var(--accent-blue);
    }
}

/* Loading spinner animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
    flex-shrink: 0;  /* Prevent distortion */
}

/* Slide up animation for results */
@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading state for button */
.btn.loading {
    position: relative;
    color: #fff;
}

.btn.loading .spinner {
    position: relative;
    top: -1px;
}
/* ============================================================================
   AUTHENTICATION & USER MENU STYLES
   ============================================================================ */

/* User Dropdown */
.user-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-menu-btn:hover {
    border-color: #2048D5;
    box-shadow: 0 2px 8px rgba(32, 72, 213, 0.1);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-menu-btn span {
    font-size: 14px;
    color: #333;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu-btn svg {
    color: #666;
    transition: transform 0.2s ease;
}

.user-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 1000;
}

.user-menu.show {
    display: block;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s ease;
    font-size: 14px;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.user-menu-item:hover {
    background: #f5f5f5;
}

.user-menu-item.active {
    background: #f0f4ff;
    color: #2048D5;
}

.user-menu-item svg {
    flex-shrink: 0;
}

.user-menu-divider {
    margin: 8px 0;
    border: none;
    border-top: 1px solid #e0e0e0;
}

.user-menu-button {
    font-family: inherit;
}

/* Login Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

.modal-small {
    max-width: 400px;
}

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

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.modal-header {
    padding: 32px 32px 16px;
    text-align: center;
}

.modal-header h2 {
    font-size: 24px;
    margin-bottom: 8px;
    color: #333;
}

.modal-header p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.modal-body {
    padding: 16px 32px;
}

.modal-footer {
    padding: 16px 32px 32px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.modal-footer-text {
    font-size: 12px;
    color: #999;
    text-align: center;
    margin: 0;
}

/* OAuth Buttons */
.btn-oauth {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 24px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 12px;
}

.btn-oauth:hover {
    background: #f5f5f5;
    border-color: #ccc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-oauth:last-child {
    margin-bottom: 0;
}

.btn-oauth svg {
    flex-shrink: 0;
}

.btn-google:hover {
    border-color: #4285F4;
}

.btn-github:hover {
    border-color: #333;
}

/* Button Styles */
.btn-primary {
    background: #2048D5;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: #1a3aa8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(32, 72, 213, 0.2);
}

.btn-danger {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

/* ============================================================================
   DASHBOARD STYLES
   ============================================================================ */

.dashboard-container {
    min-height: calc(100vh - 80px);
    padding: 100px 0 40px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.dashboard-welcome {
    background: white;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.welcome-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.dashboard-title {
    font-size: 32px;
    margin: 0 0 8px;
    color: #333;
}

.dashboard-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.dashboard-section {
    background: white;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-title {
    font-size: 24px;
    margin: 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.count-badge {
    background: var(--primary-500);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    margin-left: 8px;
}

.workspace-filters {
    display: flex;
    gap: 8px;
}

.filter-btn {
    background: white;
    border: 1px solid #e0e0e0;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: #2048D5;
    color: #2048D5;
}

.filter-btn.active {
    background: #2048D5;
    color: white;
    border-color: #2048D5;
}

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2048D5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.empty-icon {
    color: #ccc;
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 20px;
    margin: 0 0 8px;
    color: #333;
}

.empty-state p {
    color: #666;
    margin: 0 0 24px;
}

/* Error State */
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.error-icon {
    color: #dc3545;
    margin-bottom: 16px;
}

.error-state h2 {
    font-size: 24px;
    margin: 0 0 8px;
    color: #333;
}

.error-state p {
    color: #666;
    margin: 0 0 24px;
}

/* Workspaces Grid */
.workspaces-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.workspace-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
    position: relative;
}

.workspace-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.workspace-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.workspace-number {
    display: inline-block;
    background: #f0f4ff;
    color: #2048D5;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.workspace-name {
    font-size: 18px;
    margin: 0;
    color: #333;
    word-break: break-word;
}

.workspace-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 16px;
}

.workspace-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #999;
    margin-bottom: 16px;
}

.workspace-card-actions {
    display: flex;
    gap: 8px;
}

.workspace-actions-btn {
    position: relative;
}

.icon-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s ease;
    border-radius: 4px;
}

.icon-btn:hover {
    color: #2048D5;
    background: #f5f5f5;
}

.workspace-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 160px;
    z-index: 100;
}

.workspace-menu button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 12px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: background 0.2s ease;
}

.workspace-menu button:hover {
    background: #f5f5f5;
}

.workspace-menu button.text-danger {
    color: #dc3545;
}

.workspace-menu hr {
    margin: 4px 0;
    border: none;
    border-top: 1px solid #e0e0e0;
}

/* Account Info */
.account-info {
    display: grid;
    gap: 16px;
}

.account-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.account-info-item label {
    font-size: 12px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.account-info-item span {
    font-size: 15px;
    color: #333;
}

/* Input Field */
.input-field {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.input-field:focus {
    outline: none;
    border-color: #2048D5;
    box-shadow: 0 0 0 3px rgba(32, 72, 213, 0.1);
}

.text-muted {
    color: #999;
    font-size: 14px;
}

/* ============================================================================
   WORKSPACE VIEW STYLES
   ============================================================================ */

.workspace-view-container {
    min-height: calc(100vh - 80px);
    padding: 100px 0 40px;
    background: var(--gray-50); /* FIXED Round 3: Removed dated gradient */
}

.workspace-header {
    background: white;
    border-radius: 16px;
    padding: 24px 32px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.workspace-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 8px;
}

.workspace-breadcrumb a {
    color: var(--primary-500);
    text-decoration: none;
}

.workspace-breadcrumb a:hover {
    text-decoration: underline;
}

.workspace-breadcrumb span {
    color: var(--gray-500);
}

.workspace-title {
    font-size: 28px;
    margin: 0;
    color: #333;
}

.workspace-header-actions {
    display: flex;
    gap: 8px;
}

/* OLD 2-COLUMN LAYOUT - COMMENTED OUT TO PREVENT CONFLICTS WITH NEW 3-COLUMN LAYOUT */
/* .workspace-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
}

.workspace-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
} */

.workspace-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.workspace-section .section-title {
    font-size: 20px;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2048D5; /* Brand blue instead of boring black */
    font-weight: 600;
}

.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-title-row .section-title {
    margin-bottom: 0;
}

.btn-small {
    padding: 6px 12px;
    font-size: 14px;
}

.section-content {
    color: #333;
    line-height: 1.6;
}

/* Product Description Formatting */
.product-description-content {
    max-width: none;
    padding: 12px;
    background: var(--gray-50);
    border-radius: 8px;
    line-height: 1.6;
}

.product-description-content.editing {
    outline: 2px solid #448CF7;
    outline-offset: 4px;
    border-radius: 8px;
    padding: 12px;
    background: #f8f9ff;
}

.product-description-content .desc-paragraph {
    margin-bottom: 16px;
    line-height: 1.7;
}

.product-description-content .desc-paragraph:last-child {
    margin-bottom: 0;
}

.product-description-content strong {
    color: #2048D5;
    font-weight: 600;
}

/* Markdown Formatting Styles */
.product-description-content .md-h1 {
    font-size: 28px;
    font-weight: 700;
    color: #2048D5;
    margin: 24px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(32, 72, 213, 0.2);
}

.product-description-content .md-h2 {
    font-size: 22px;
    font-weight: 600;
    color: #2048D5;
    margin: 20px 0 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(32, 72, 213, 0.15);
}

.product-description-content .md-h3 {
    font-size: 18px;
    font-weight: 600;
    color: #3869FA;
    margin: 16px 0 10px;
}

.product-description-content .md-h1:first-child,
.product-description-content .md-h2:first-child,
.product-description-content .md-h3:first-child {
    margin-top: 0;
}

.product-description-content .md-ul {
    margin-bottom: 16px;
    padding-left: 20px;
}

.product-description-content .md-li {
    margin-bottom: 8px;
    line-height: 1.7;
    color: #333;
    list-style-type: disc;
}

.product-description-content .md-paragraph {
    margin-bottom: 16px;
    line-height: 1.7;
    color: #333;
}

.product-description-content .md-paragraph:last-child {
    margin-bottom: 0;
}

.product-description-content .md-code {
    background: rgba(56, 105, 250, 0.08);
    color: #2048D5;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 0.9em;
    border: 1px solid rgba(56, 105, 250, 0.15);
}

.product-description-content .md-link {
    color: #3869FA;
    text-decoration: none;
    border-bottom: 1px solid rgba(56, 105, 250, 0.3);
    transition: all 0.2s ease;
    font-weight: 500;
}

.product-description-content .md-link:hover {
    color: #2048D5;
    border-bottom-color: #2048D5;
    background: rgba(56, 105, 250, 0.05);
}

.product-description-content .md-hr {
    border: none;
    border-top: 2px solid rgba(32, 72, 213, 0.15);
    margin: 24px 0;
}

/* Compliance Results */
.norms-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.norm-item {
    padding: 20px;
    background: #f8f9fa;
    border-left: 4px solid #2048D5;
    border-radius: 12px;
    transition: all 0.2s ease;
    display: block;
}

.norm-item.norm-clickable {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.norm-item:hover {
    background: #f0f4ff;
    box-shadow: 0 2px 8px rgba(32, 72, 213, 0.1);
}

.norm-item.norm-clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(32, 72, 213, 0.15);
    border-left-color: #3869FA;
}

.norm-link-icon {
    color: #2048D5;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.norm-item.norm-clickable:hover .norm-link-icon {
    opacity: 1;
}

.norm-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.norm-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.norm-icon {
    color: #2048D5;
    flex-shrink: 0;
}

.norm-id {
    color: #2048D5;
    font-size: 16px;
}

.norm-title {
    margin: 0;
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

.norm-subtitle {
    font-size: 13px;
    color: #666;
    font-weight: 400;
    margin-top: 2px;
}

.norm-name {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    margin-top: 6px;
    padding-left: 24px;
}

.confidence-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: auto;
}

.confidence-badge.confidence-high {
    background: #d4edda;
    color: #155724;
}

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

.confidence-badge.confidence-low {
    background: #f8d7da;
    color: #721c24;
}

.norm-description {
    margin: 8px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.norm-reasoning {
    margin: 8px 0 0 0;
    color: #555;
    font-size: 13px;
    line-height: 1.5;
    padding: 8px 12px;
    background: rgba(32, 72, 213, 0.05);
    border-radius: 6px;
}

.norm-reasoning em {
    color: #2048D5;
    font-style: normal;
    font-weight: 600;
}

.norm-badge {
    display: inline-block;
    background: #2048D5;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* Chat Section in Workspace */
.chat-messages-container {
    max-height: 500px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding: 16px;
    background: #fafbfc;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 transparent;
}

.chat-messages-container::-webkit-scrollbar {
    width: 6px;
}

.chat-messages-container::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages-container::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

.chat-messages-container::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

.chat-input-container {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.chat-input-container textarea {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    resize: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    line-height: 1.5;
    min-height: 48px;
}

.chat-input-container textarea:focus {
    outline: none;
    border-color: #2048D5;
    box-shadow: 0 0 0 3px rgba(32, 72, 213, 0.1);
}

.chat-input-container button {
    flex-shrink: 0;
    padding: 12px 20px;
    white-space: nowrap;
}

/* Spinner animation for loading state */
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Proposed Change Card */
.proposed-change-card {
    margin: 16px 0;
    padding: 16px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4ff 100%);
    border: 2px solid #2048D5;
    border-radius: 12px;
    animation: slideIn 0.3s ease;
}

.proposed-change-header {
    font-size: 16px;
    color: #2048D5;
    margin-bottom: 12px;
}

.proposed-change-preview {
    background: white;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.change-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 600;
}

.change-content {
    color: #1a1a1a;
    line-height: 1.6;
    font-size: 14px;
    max-height: 200px;
    overflow-y: auto;
}

.proposed-change-hint {
    font-size: 13px;
    color: #2048D5;
    font-style: italic;
    text-align: center;
}

/* Re-analysis Prompt Card */
.reanalysis-prompt-card {
    margin: 16px 0;
    padding: 16px;
    background: #f9fafb;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    animation: slideIn 0.3s ease;
}

.reanalysis-prompt-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.reanalysis-prompt-buttons button {
    padding: 10px 20px;
    font-size: 14px;
}

/* OLD 2-COLUMN LAYOUT - COMMENTED OUT TO PREVENT CONFLICTS WITH NEW 3-COLUMN LAYOUT */
/* Workspace Sidebar */
/* .workspace-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.sidebar-section h3 {
    font-size: 18px;
    margin: 0 0 16px;
    color: #2048D5;
    font-weight: 600;
}

.sidebar-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-item label {
    font-size: 12px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item span {
    font-size: 14px;
    color: #333;
} */

/* OLD Responsive Design for 2-column layout - commented out */
/* @media (max-width: 1024px) {
    .workspace-grid {
        grid-template-columns: 1fr;
    }

    .workspace-sidebar {
        order: -1;
    }
} */

@media (max-width: 768px) {
    .dashboard-title {
        font-size: 24px;
    }

    .welcome-header {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .workspace-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .workspace-header-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .user-menu-btn span {
        display: none;
    }

    .modal-content {
        max-width: 100%;
    }
}

/* ============================================================================
   DEVELOPE PAGE STYLES
   ============================================================================ */

/* Develope page specific background */
.develope-page body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.develope-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 120px 1.5rem 3rem;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.125rem;
    color: var(--text-light);
}

.chat-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(56, 105, 250, 0.1);
}

.chat-messages {
    max-height: 500px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
    padding-right: 0.5rem;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--brand-blue);
    border-radius: 10px;
}

.message {
    margin-bottom: 1.25rem;
    padding: 1.25rem;
    border-radius: 12px;
    line-height: 1.6;
    animation: slideIn 0.3s ease;
}

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

.message.user {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-left: 3rem;
}

.message.assistant {
    background: #f9fafb;
    border: 1px solid var(--gray-200);
    margin-right: 3rem;
}

.message strong {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.message.user strong {
    color: rgba(255,255,255,0.9);
}

.message.assistant strong {
    color: var(--brand-blue);
}

.message.user p {
    color: white;
}

.input-group {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}

.input-group input {
    flex: 1;
    padding: 1rem 1.25rem;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 1rem;
    font-family: var(--font-family);
    transition: all 0.2s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(56, 105, 250, 0.1);
}

.input-group button {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--royal-blue) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(56, 105, 250, 0.3);
}

.input-group button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 105, 250, 0.4);
}

.input-group button:active {
    transform: translateY(0);
}

.input-group button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.results-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    padding: 2.5rem;
    display: none;
    border: 1px solid rgba(56, 105, 250, 0.1);
}

.results-container.visible {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.product-description {
    background: linear-gradient(135deg, #f5f7fa 0%, #e3e8f0 100%);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--brand-blue);
}

.product-description h3 {
    color: var(--brand-blue);
    margin-bottom: 1rem;
}

.norm-item {
    background: #ffffff;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.2s;
}

.norm-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.norm-item.clickable {
    cursor: pointer;
}

.norm-item.clickable * {
    pointer-events: none;
}

.norm-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.75rem;
    gap: 1rem;
}

.norm-title {
    font-weight: 600;
    color: #1f2937;
    flex: 1;
}

.confidence-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.confidence-badge.medium {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.confidence-badge.low {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.norm-id {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.norm-reasoning {
    color: #4b5563;
    line-height: 1.6;
}

.analyze-btn {
    display: block;
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    position: relative;
    overflow: hidden;
}

.analyze-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.analyze-btn:active {
    transform: translateY(0);
}

.analyze-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.analyze-btn.analyzing {
    background: var(--gray-200);
    cursor: wait;
}

.analyze-btn-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--royal-blue) 100%);
    width: 0%;
    transition: width 0.3s ease;
    z-index: 0;
}

.analyze-btn-text {
    position: relative;
    z-index: 1;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.analyze-btn.analyzing .analyze-btn-text {
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    animation: pulse-text 2s ease-in-out infinite;
}

@keyframes pulse-text {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.85;
    }
}

.results-container h2 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.results-container h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

#normsCount {
    color: white;
    font-weight: 700;
}

/* Mobile responsiveness for develope page */
@media (max-width: 768px) {
    .develope-container {
        padding: 100px 1rem 2rem;
    }

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

    .message.user {
        margin-left: 0;
    }

    .message.assistant {
        margin-right: 0;
    }

    .chat-container {
        padding: 1.5rem;
    }
}

/* ============================================================================
   WORKSPACE UPGRADE - 3-COLUMN LAYOUT
   ============================================================================ */

/* CSS DESIGN SYSTEM VARIABLES - Added Round 3 */
:root {
    /* Primary Colors */
    --primary-500: #4a90e2;
    --primary-600: #3a7bc8;
    --primary-700: #2d5f9c;

    /* Accent Colors */
    --accent-500: #8b5cf6;
    --accent-600: #7c3aed;

    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;

    /* Gray Scale */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Typography Scale */
    --text-xs: 12px;
    --text-sm: 14px;
    --text-base: 16px;
    --text-lg: 18px;
    --text-xl: 20px;
    --text-2xl: 24px;
    --text-3xl: 32px;

    /* Spacing (8px grid) */
    --spacing-1: 8px;
    --spacing-2: 16px;
    --spacing-3: 24px;
    --spacing-4: 32px;
    --spacing-5: 40px;
}

/* Override existing workspace grid for 3-column layout */
.workspace-grid {
    display: grid;
    grid-template-columns: 280px 1fr 420px;
    gap: 0;
    max-width: 1800px; /* Prevent chat from being too wide on large screens */
    margin: 0 auto;
}

/* Left Sidebar - Workspace Navigation */
.workspace-left-sidebar {
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    background: white;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.workspace-nav-header {
    padding: 24px 20px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.workspace-nav-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: #4b5563; /* FIXED: Improved contrast for WCAG AA compliance (was #6b7280) */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.workspace-nav-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.workspace-nav-list::-webkit-scrollbar {
    width: 6px;
}

.workspace-nav-list::-webkit-scrollbar-track {
    background: transparent;
}

.workspace-nav-list::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.workspace-nav-list::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.workspace-nav-item {
    padding: 12px 12px;
    margin-bottom: 4px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: block;
    border: 2px solid transparent;
}

.workspace-nav-item:hover {
    background: #f9fafb;
}

.workspace-nav-item.active {
    background: linear-gradient(135deg, var(--accent-500) 0%, #d946ef 100%);
    border-color: transparent;
}

.workspace-nav-item.active .workspace-nav-name,
.workspace-nav-item.active .workspace-nav-number,
.workspace-nav-item.active .workspace-nav-meta {
    color: white;
}

.workspace-nav-number {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.workspace-nav-name {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.workspace-nav-meta {
    font-size: 11px;
    color: #9ca3af;
}

.workspace-nav-footer {
    padding: 16px;
    border-top: 1px solid #e5e7eb;
}

.workspace-nav-footer .btn {
    width: 100%;
    justify-content: center;
    font-size: 14px;
}

/* Section Navigation Links */
.workspace-nav-sections {
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.workspace-section-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.workspace-section-link:hover {
    background: #f9fafb;
    color: #1f2937;
}

.workspace-section-link.active {
    background: linear-gradient(135deg, var(--accent-500) 0%, #d946ef 100%);
    color: white;
    border-color: transparent;
}

.workspace-section-link svg {
    flex-shrink: 0;
}

.workspace-nav-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 8px 16px;
}

/* Workspace Header Container */
.workspace-header-container {
    padding-top: 100px;
    padding-bottom: 20px;
}

/* Main Content Area */
.workspace-main {
    padding: 32px;
    /* Removed overflow-y and max-height so main content scrolls naturally with the page */
    min-height: calc(100vh - 80px); /* Ensure minimum height for proper layout */
}

/* Tooltip system - Added Round 3 */
.tooltip-container {
    position: relative;
    display: inline-block;
}

.tooltip-text {
    visibility: hidden;
    width: 300px;
    background-color: var(--gray-900);
    color: white;
    text-align: left;
    border-radius: 6px;
    padding: 12px;
    position: absolute;
    z-index: 1000;
    top: 125%;
    right: 0;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: var(--text-sm);
    line-height: 1.5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Right Chat Panel - Sticky */
.workspace-chat-panel {
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    background: white;
    border-left: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
}

.chat-panel-header {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.chat-panel-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-agent-selector {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.chat-panel-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-panel-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-panel-messages::-webkit-scrollbar-track {
    background: #f9fafb;
}

.chat-panel-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.chat-panel-input {
    padding: 20px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.chat-panel-input textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    margin-bottom: 12px;
}

.chat-panel-input textarea:focus {
    outline: none;
    border-color: var(--accent-500);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.chat-panel-input .btn {
    width: 100%;
}

/* Product Card with Image Upload */
.product-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.product-header {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.product-image-upload {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f9fafb;
    position: relative;
    overflow: hidden;
}

.product-image-upload:hover {
    border-color: var(--accent-500);
    background: var(--gray-50);
}

.product-image-upload.has-image {
    border-style: solid;
    padding: 0;
}

.product-image-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image-placeholder {
    text-align: center;
    color: #9ca3af;
}

.product-image-placeholder svg {
    margin-bottom: 8px;
}

.product-image-placeholder p {
    font-size: 12px;
    margin: 0;
}

.upload-caption {
    font-size: 11px;
    color: var(--gray-500);
}

.product-image-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.product-image-upload:hover .product-image-remove {
    opacity: 1;
}

.product-info {
    flex: 1;
}

.product-name-input {
    font-size: 24px;
    font-weight: 600;
    border: none;
    background: transparent;
    width: 100%;
    margin-bottom: 8px;
    padding: 8px;
    border-radius: 6px;
}

.product-name-input:hover {
    background: #f9fafb;
}

.product-name-input:focus {
    outline: none;
    background: #f9fafb;
    box-shadow: 0 0 0 2px var(--accent-500);
}

.product-category-select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    margin-bottom: 16px;
    width: 100%;
    max-width: 300px;
}

.product-specs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.product-spec-item {
    background: #f9fafb;
    padding: 12px;
    border-radius: 8px;
}

.product-spec-item label {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

.product-spec-item input {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 14px;
    padding: 4px 0;
}

.product-spec-item input:focus {
    outline: none;
}

/* Compliance Results with Filters and Search */
.compliance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.compliance-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.filter-btn.active {
    background: var(--accent-500);
    border-color: var(--accent-500);
    color: white;
}

.filter-btn .filter-count {
    margin-left: 6px;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 12px;
}

.compliance-search {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.compliance-search input {
    width: 100%;
    padding: 8px 12px 8px 36px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

.compliance-search input:focus {
    outline: none;
    border-color: var(--accent-500);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.compliance-search svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.compliance-actions {
    display: flex;
    gap: 8px;
}

/* Expandable Norm Cards */
.norm-item {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.norm-item:hover {
    border-color: var(--accent-500);
    box-shadow: 0 4px 6px rgba(139, 92, 246, 0.1);
}

.norm-item.expanded {
    border-color: var(--accent-500);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

.norm-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.norm-title-row {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.norm-id {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.norm-name {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

.norm-description {
    margin-top: 12px;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
}

.norm-reasoning {
    margin-top: 12px;
    padding: 12px;
    background: #faf5ff;
    border-left: 3px solid var(--accent-500);
    border-radius: 6px;
    font-size: 13px;
    color: #6b7280;
    display: none;
}

.norm-item.expanded .norm-reasoning {
    display: block;
}

.norm-expand-icon {
    transition: transform 0.2s ease;
    color: #9ca3af;
}

.norm-item.expanded .norm-expand-icon {
    transform: rotate(180deg);
}

.confidence-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.confidence-high {
    background: #d1fae5;
    color: #065f46;
}

.confidence-medium {
    background: #fef3c7;
    color: #92400e;
}

.confidence-low {
    background: #fee2e2;
    color: #991b1b;
}

.norm-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
    display: none;
}

.norm-item.expanded .norm-actions {
    display: flex;
}

.norm-action-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.norm-action-btn:hover {
    background: #f9fafb;
    border-color: var(--accent-500);
    color: var(--accent-500);
}

/* Inline Editable Workspace Title */
.workspace-title-editable {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.workspace-title-editable:hover {
    background: #f9fafb;
    cursor: text;
}

.workspace-title-editable[contenteditable="true"] {
    background: white;
    border-color: var(--accent-500);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
    outline: none;
}

/* Loading States */
.workspace-nav-loading {
    padding: 20px;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}

.norm-filter-empty {
    padding: 40px 20px;
    text-align: center;
    color: #9ca3af;
}

.norm-filter-empty svg {
    margin-bottom: 12px;
    opacity: 0.5;
}

.norm-filter-empty p {
    margin: 0;
    font-size: 14px;
}

/* Responsive Design for Upgraded Workspace */
@media (max-width: 1440px) {
    .workspace-grid {
        grid-template-columns: 260px 1fr 360px;
    }
}

@media (max-width: 1200px) {
    .workspace-grid {
        grid-template-columns: 240px 1fr 340px;
    }

    .workspace-main {
        padding: 24px;
    }
}

@media (max-width: 1024px) {
    .workspace-grid {
        grid-template-columns: 1fr;
    }

    .workspace-left-sidebar {
        display: none;
    }

    .workspace-chat-panel {
        position: relative;
        top: 0;
        height: auto;
        min-height: 500px;
    }

    .workspace-main {
        order: -1;
    }
}

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

    .product-image-upload {
        width: 100%;
        height: 250px;
    }

    .compliance-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .compliance-search {
        max-width: 100%;
    }

    .product-specs {
        grid-template-columns: 1fr;
    }
}

/* Toast Notification System */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    font-size: 14px;
    font-weight: 500;
    max-width: 400px;
    animation: slideInRight 0.3s ease;
}

.toast-success {
    background: var(--success);
}

.toast-error {
    background: var(--error);
}

.toast-info {
    background: var(--primary-500);
}

.toast-exit {
    animation: slideOutRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Scroll-based Chat Layout Transition */
.workspace-grid {
    transition: grid-template-columns 0.4s ease, grid-template-rows 0.4s ease;
}

.workspace-left-sidebar,
.workspace-chat-panel {
    transition: all 0.4s ease;
}

/* Default state: Chat panel at top, full-width */
.workspace-grid:not(.chat-docked) {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
}

.workspace-grid:not(.chat-docked) .workspace-left-sidebar {
    display: none;
    opacity: 0;
}

.workspace-grid:not(.chat-docked) .workspace-main {
    grid-column: 1;
    grid-row: 2;
}

.workspace-grid:not(.chat-docked) .workspace-chat-panel {
    grid-column: 1;
    grid-row: 1;
    position: relative;
    top: 0;
    height: auto;
    min-height: 400px;
    max-height: 600px;
    border-left: none;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Scrolled state: 3-column layout with chat docked to right */
.workspace-grid.chat-docked {
    grid-template-columns: 280px 1fr 400px;
    grid-template-rows: 1fr;
}

.workspace-grid.chat-docked .workspace-left-sidebar {
    display: block;
    opacity: 1;
    animation: fadeIn 0.4s ease;
}

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

.workspace-grid.chat-docked .workspace-main {
    grid-column: 2;
    grid-row: 1;
}

.workspace-grid.chat-docked .workspace-chat-panel {
    grid-column: 3;
    grid-row: 1;
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    border-left: 1px solid #e5e7eb;
    border-bottom: none;
    box-shadow: none;
}
