/* Custom Variables with Matcha Green Color Scheme */
:root {
    --primary: #86B049;           /* Matcha green as primary color */
    --primary-dark: #6A8C3A;      /* Darker matcha green for hover states */
    --secondary: #333;
    --accent: #ff6b35;            /* Orange accent color */
    --accent-dark: #e84e0f;       /* Darker orange */
    --dark: #323232;
    --light: #f8f9fa;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.15);
    --border-radius: 10px;
    --chart-green: #86B049;
    --chart-lightgreen: #9ECB5A;
    --chart-yellow: #ffd166;
    --chart-orange: #ff9746;
    --chart-red: #ff5a5a;
    --card-bg: rgba(255, 255, 255, 0.95);
}

html {
    scroll-behavior: smooth;
}

/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #444;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

.py-6 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.min-vh-80 {
    min-height: 80vh;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.section-divider {
    height: 4px;
    width: 70px;
    background-color: var(--primary);
    margin: 1rem auto 1.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    color: #666;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    border-radius: 30px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(134, 176, 73, 0.3);
    transition: var(--transition);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(134, 176, 73, 0.4);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    border-radius: 30px;
    transition: var(--transition);
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(134, 176, 73, 0.2);
}

.btn-light {
    background-color: var(--white);
    color: var(--secondary);
    border-radius: 30px;
    transition: var(--transition);
}

.btn-light:hover {
    background-color: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    color: var(--primary);
}

.btn-outline-light {
    color: var(--white);
    border-color: var(--white);
    border-radius: 30px;
    transition: var(--transition);
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* Hero Section buttons */
.hero .btn-primary {
    background-color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.hero .btn-primary:hover {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

/* Hero Buttons container for spacing */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ===== UPDATED HEADER/NAVBAR STYLES ===== */
header {
    background-color: #323232;
    padding: 0.7rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-logo {
    height: 70px;
    width: auto;
}

.brand-text {
    color: white;
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: none;
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
}

.navbar {
    padding: 0;
    display: flex;
    align-items: center;
}

.navbar-nav {
    display: flex;
    align-items: center;
}

.navbar-brand {
    padding: 0;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary);
}

.navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -1px;
    left: 50%;
    background-color: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    opacity: 0;
}

.navbar-nav .nav-link:hover::after {
    width: 60%;
    opacity: 1;
}

.navbar .btn-primary {
    background-color: var(--primary);
    border: none;
    color: white;
    border-radius: 30px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 0.5rem;
    box-shadow: 0 3px 10px rgba(134, 176, 73, 0.2);
    transition: var(--transition);
    font-size: 0.9rem;
}

.navbar .btn-primary:hover, 
.navbar .btn-primary:focus {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(134, 176, 73, 0.3);
}

.navbar-toggler {
    border: none;
    color: var(--white);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile responsive adjustments */
@media (max-width: 991.98px) {
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-collapse {
        background-color: #323232;
        padding: 1rem;
        margin-top: 0.5rem;
        border-radius: 5px;
        border-left: 3px solid var(--primary);
    }
    
    .navbar-nav .nav-link {
        padding: 0.8rem 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    .navbar .btn-primary {
        margin-top: 10px;
        width: 100%;
        text-align: center;
        margin-left: 0;
    }
    
    .brand-logo {
        height: 55px;
    }
    
    .brand-text {
        font-size: 1.4rem;
    }
    
    header {
        padding: 0.8rem 0;
    }
}

/* Hero Section */
.hero {
    padding: 150px 0 100px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('laktatbilde.jpeg') center/cover no-repeat;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.4) 100%);
    z-index: -1;
}

.hero h1 .highlight {
    color: var(--primary);
}

/* Team Page Styles */
.team-hero {
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
    background-color: #333;
    min-height: 500px;
}

.team-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('team-anime.png');
    background-size: cover; 
    background-position: center -250px;
    opacity: 0.7;
    z-index: 0;
    filter: brightness(0.8);
}

.team-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom, 
        rgba(0,0,0,0.3) 0%, 
        rgba(0,0,0,0.6) 100%
    );
    z-index: 1;
}

.team-hero > .container {
    position: relative;
    z-index: 2;
}

@media (max-width: 991.98px) {
    .team-hero {
        padding: 120px 0 60px;
        min-height: 450px;
    }
    
    .team-hero::before {
        background-position: center -200px;
    }
}

@media (max-width: 767.98px) {
    .team-hero {
        padding: 100px 0 50px;
        min-height: 380px;
    }
    
    .team-hero::before {
        background-position: center -150px;
    }
}

.team-hero-title {
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    font-size: 2.8rem;
}

.team-hero-subtitle {
    color: rgba(255,255,255,0.9);
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
    font-size: 1.2rem;
}

.team-hero-divider {
    width: 80px;
    height: 4px;
    background-color: rgba(134, 176, 73, 0.9);
    margin: 0.5rem auto 1rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.team-hero-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary);
    z-index: 3;
}

@media (max-width: 767.98px) {
    .team-hero-title {
        font-size: 2.4rem;
    }
    
    .team-hero-subtitle {
        font-size: 1.1rem;
    }
}

.team-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.team-row-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    text-align: center;
}

.team-row-divider {
    width: 60px;
    height: 3px;
    background-color: var(--primary);
    margin: 0 auto 1.5rem;
}

.team-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.team-card-image-container {
    height: 260px;
    overflow: hidden;
    position: relative;
}

.team-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    transition: transform 0.5s ease;
}

.team-card:hover .team-card-image {
    transform: scale(1.05);
}

.team-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.team-card-header {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(134, 176, 73, 0.2);
}

.team-card-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.3;
}

.team-card-title {
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0;
}

.team-card-content {
    flex-grow: 1;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

.team-card-content p {
    margin-bottom: 12px;
}

.team-card-content p:last-child {
    margin-bottom: 0;
}

.team-card-footer {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.team-social-link {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border-radius: 50%;
    color: #555;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.team-social-link:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(134, 176, 73, 0.3);
}

/* Join Our Team CTA Section */
.join-team-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}

.join-team-cta::before,
.join-team-cta::after {
    content: '';
    position: absolute;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 1;
}

.join-team-cta::before {
    width: 200px;
    height: 200px;
    top: -100px;
    right: -50px;
}

.join-team-cta::after {
    width: 150px;
    height: 150px;
    bottom: -75px;
    left: -25px;
}

.join-team-cta .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.join-team-cta h2 {
    color: white;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.join-team-cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.join-team-cta .btn-light {
    background-color: white;
    color: var(--primary);
    border-radius: 30px;
    padding: 0.7rem 1.8rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: inline-block;
}

.join-team-cta .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Footer Styles */
.footer {
    background-color: #323232;
    color: #bbb;
    padding: 3rem 0 1rem;
}

.footer-brand {
    margin-bottom: 1.5rem;
}

.footer-brand h5 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-brand h5::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background-color: var(--primary);
    bottom: 0;
    left: 0;
}

.footer-brand p {
    color: #bbb;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
    color: var(--white);
}

.footer-links h5 {
    color: white;
    font-size: 1rem;
    margin-bottom: 0.8rem;
    position: relative;
    padding-bottom: 0.3rem;
}

.footer-links h5::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
    bottom: 0;
    left: 0;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.contact-info li {
    margin-bottom: 0.8rem;
    color: #bbb;
    display: flex;
    align-items: center;
}

.contact-info li i {
    margin-right: 0.5rem;
    color: var(--primary);
}

.footer .border-top {
    border-top: 1px solid rgba(255,255,255,0.1) !important;
    padding-top: 1.5rem;
    margin-top: 2rem;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .footer {
        text-align: center;
    }

    .footer-links h5::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }

    .footer-links ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-links a:hover {
        padding-left: 0;
        color: var(--primary);
    }

    .contact-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* Remaining existing styles would continue here... */

/* Modern Lactate Display */
.modern-visualization {
    background-color: var(--white);
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.lactate-display {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.lactate-header {
    background-color: var(--white);
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.lactate-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin: 0;
    font-weight: 700;
}

.lactate-value-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.gauge-visual {
    position: relative;
    width: 80px;
    height: 80px;
}

.gauge-needle {
    position: absolute;
    width: 2px;
    height: 60px;
    background-color: var(--accent);
    top: 50%;
    left: 50%;
    transform-origin: bottom center;
    transform: translate(-50%, -100%) rotate(45deg);
    box-shadow: 0 0 8px rgba(255, 107, 53, 0.8);
    z-index: 5;
}

.gauge-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #000;
    border: 3px solid var(--accent);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.6);
    z-index: 6;
}

.lactate-value {
    font-size: 5rem;
    font-weight: 700;
    color: var(--primary);
    margin-left: 2rem;
    line-height: 1;
    text-shadow: 0 0 10px rgba(134, 176, 73, 0.3);
}

.lactate-unit {
    font-size: 1.5rem;
    opacity: 0.7;
    vertical-align: super;
    margin-left: 0.5rem;
}

.lactate-metrics {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem;
    background-color: #f8f8f8;
}

.metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

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

/* Modern Feature Cards */
.features {
    background-color: var(--light);
}

.feature-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: none;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.modern-feature-icon {
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary);
    font-size: 3rem;
    overflow: hidden;
    position: relative;
}

.minimal-gauge {
    position: relative;
    width: 100px;
    height: 100px;
}

.gauge-circle {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 6px solid var(--primary);
    top: 0;
    left: 0;
    opacity: 0.5;
}

.gauge-indicator {
    position: absolute;
    width: 80px;
    height: 40px;
    border-radius: 80px 80px 0 0;
    border: 6px solid var(--primary);
    border-bottom: none;
    top: 10px;
    left: 10px;
    transform-origin: bottom center;
    animation: pulseGauge 3s infinite alternate;
}

.wearable-img-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wearable-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.feature-card:hover .wearable-img {
    transform: scale(1.1);
}

.feature-content {
    padding: 1.5rem;
}

.feature-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--secondary);
}

.feature-content p {
    color: #666;
    margin-bottom: 0;
}

@keyframes pulseGauge {
    0% {
        transform: rotate(-30deg);
        border-color: var(--accent);
    }
    50% {
        transform: rotate(30deg);
        border-color: var(--chart-yellow);
    }
    100% {
        transform: rotate(60deg);
        border-color: var(--primary);
    }
}
/* Integration Section */
.integration {
    background-color: var(--white);
}

.integration-icon {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.arrow {
    position: absolute;
    width: 50px;
    height: 10px;
    background-color: var(--primary);
    border-radius: 10px;
}

.arrow::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 3px;
    background-color: var(--primary);
}

.arrow-right {
    transform: translateY(-10px);
}

.arrow-right::before {
    right: -5px;
    top: -3px;
    transform: rotate(45deg);
}

.arrow-left {
    transform: translateY(10px);
}

.arrow-left::before {
    left: -5px;
    top: -3px;
    transform: rotate(45deg);
}

.partners {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2.5rem;
    margin-top: 3rem;
}

.partner-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.partner {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    width: 170px;
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.partner:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.partner img {
    max-width: 100%;
    max-height: 70px;
    transition: var(--transition);
}

.partner-name {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #444;
    text-align: center;
}

/* Add-ons Section */
.addons {
    background-color: var(--light);
}

.addon-card {
    display: flex;
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

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

.addon-logo {
    width: 180px;
    min-width: 180px;
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    border-right: 1px solid #eee;
    overflow: hidden;
}

.app-screenshot {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.app-screenshot:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.addon-content {
    padding: 1.5rem;
    flex: 1;
}

.addon-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.addon-content p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.addon-features {
    list-style: none;
    margin: 0 0 1.2rem;
    padding: 0;
}

.addon-features li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #555;
}

.addon-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}
/* Dashboard Styles */
.dashboard {
    background-color: var(--white);
}

.dashboard-container {
    background-color: #f8f9fa;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: var(--primary);
    color: white;
}

.dashboard-title {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Fixed analytics tabs layout */
.dashboard-nav {
    display: flex;
    flex-wrap: wrap;
}

.nav-item {
    margin-left: 1.5rem;
    cursor: pointer;
    position: relative;
    padding-bottom: 0.3rem;
    opacity: 0.7;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 0.95rem;
}

.nav-item:hover {
    opacity: 1;
}

.nav-item.active {
    opacity: 1;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: white;
    border-radius: 3px;
}

.dashboard-content {
    padding: 1.5rem;
}

.dashboard-tab {
    display: none;
}

.dashboard-tab.active {
    display: block;
}

.dashboard-row {
    display: flex;
    margin-bottom: 1.5rem;
}

.dashboard-row:last-child {
    margin-bottom: 0;
}

.dashboard-card {
    background-color: white;
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-right: 1.5rem;
    flex: 1;
}

.dashboard-card:last-child {
    margin-right: 0;
}

.dashboard-card h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Training Details */
.training-details {
    margin-top: 1.2rem;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.detail-label {
    color: #777;
    font-size: 0.9rem;
}

.detail-value {
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
}

/* Summary Card */
.summary-stats {
    display: flex;
    justify-content: space-between;
}

.summary-stat {
    text-align: center;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

.stat-unit {
    font-size: 0.9rem;
    margin-left: 0.2rem;
    opacity: 0.7;
}

.stat-label {
    font-size: 0.8rem;
    color: #777;
}

/* Chart Card */
.chart-container {
    height: 180px;
    position: relative;
    margin-bottom: 1rem;
}

.lactate-chart {
    width: 100%;
    height: 100%;
    position: relative;
}

.chart-tooltip {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 100;
    transform: translate(-50%, -100%);
}

.chart-point {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary);
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 10;
}

.chart-point:hover {
    transform: translate(-50%, -50%) scale(1.5);
}

.chart-line {
    position: absolute;
    height: 2px;
    background-color: var(--primary);
    bottom: 40%;
    left: 0;
    right: 0;
    z-index: 5;
}

.threshold-line {
    position: absolute;
    height: 2px;
    background-color: var(--accent);
    bottom: 30%;
    left: 0;
    right: 0;
    z-index: 5;
}

.chart-legend {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-right: 1.5rem;
    font-size: 0.8rem;
    color: #777;
}

.legend-item:last-child {
    margin-right: 0;
}

.legend-color {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    margin-right: 0.5rem;
}

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

.threshold-color {
    background-color: var(--accent);
}
/* Zones Card */
.zones-container {
    display: flex;
    flex-direction: column;
}

.zone {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
}

.zone:last-child {
    margin-bottom: 0;
}

.zone-bar {
    flex: 1;
    height: 8px;
    background-color: #eee;
    border-radius: 4px;
    margin-right: 0.8rem;
    overflow: hidden;
}

.zone-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease;
}

.zone:nth-child(1) .zone-fill {
    background-color: var(--chart-lightgreen);
}

.zone:nth-child(2) .zone-fill {
    background-color: var(--primary);
}

.zone:nth-child(3) .zone-fill {
    background-color: var(--chart-yellow);
}

.zone:nth-child(4) .zone-fill {
    background-color: var(--accent);
}

.zone-label {
    width: 70px;
    font-size: 0.8rem;
    color: #666;
}

.zone-time {
    width: 50px;
    font-size: 0.8rem;
    color: #999;
    text-align: right;
}

/* Map Card */
.map-placeholder {
    height: 150px;
    background-color: #f3f3f3;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
}

.map-route {
    position: absolute;
    top: 30%;
    left: 10%;
    height: 3px;
    width: 80%;
    background-color: var(--primary);
    border-radius: 2px;
    /* Custom curved path for Oslo route */
    clip-path: path('M0,40 C20,10 40,60 60,40 C80,20 100,50 120,30 C140,10 160,50 180,30');
}

.map-marker {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    z-index: 5;
    cursor: pointer;
}

.map-marker::after {
    content: attr(data-tooltip);
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.map-marker:hover::after {
    opacity: 1;
}

.map-marker.start {
    top: 30%;
    left: 10%;
    background-color: var(--chart-green);
    box-shadow: 0 0 10px rgba(134, 176, 73, 0.5);
}

.map-marker.end {
    top: 30%;
    right: 10%;
    background-color: var(--accent);
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

.map-labels {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.map-start-label, .map-end-label {
    position: absolute;
    font-size: 0.7rem;
    font-weight: 600;
    color: #333;
}

.map-start-label {
    top: 15%;
    left: 10%;
}

.map-end-label {
    top: 15%;
    right: 10%;
}

.map-stats {
    display: flex;
    justify-content: space-around;
}

.map-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.map-stat-value {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.2rem;
}

.map-stat-label {
    font-size: 0.8rem;
    color: #777;
}
/* History Table */
.history-table {
    width: 100%;
    border-collapse: collapse;
}

.history-table th, .history-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.history-table th {
    font-weight: 600;
    color: #555;
    background-color: #f8f8f8;
}

.history-table tr:hover {
    background-color: #f5f5f5;
}

/* Heatmap */
.heatmap-container {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-top: 20px;
}

.heatmap-label {
    font-size: 0.75rem;
    color: #777;
    text-align: center;
    margin-bottom: 8px;
}

.heatmap-day {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 2px;
    background-color: #f0f0f0;
    position: relative;
    cursor: pointer;
}

.heatmap-day:hover::after {
    content: attr(data-date);
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 10px;
    white-space: nowrap;
    z-index: 100;
}

.heatmap-day.level-1 {
    background-color: #e6f2db;
}

.heatmap-day.level-2 {
    background-color: #c6e2af;
}

.heatmap-day.level-3 {
    background-color: #a6d385;
}

.heatmap-day.level-4 {
    background-color: var(--primary);
}

.heatmap-day.level-5 {
    background-color: var(--primary-dark);
}

/* Progress Chart */
.progress-chart-container {
    height: 100px;
    position: relative;
    margin: 40px 0;
}

.progress-chart {
    width: 100%;
    height: 100%;
    position: relative;
}

.progress-month {
    position: absolute;
    bottom: -25px;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: #777;
}

.progress-month:nth-child(1) {
    left: 12.5%;
}

.progress-month:nth-child(2) {
    left: 37.5%;
}

.progress-month:nth-child(3) {
    left: 62.5%;
}

.progress-month:nth-child(4) {
    left: 87.5%;
}

.progress-line {
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background-color: #eee;
    transform: translateY(-50%);
}

.progress-point {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: var(--primary);
    border-radius: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    box-shadow: 0 0 5px rgba(134, 176, 73, 0.5);
}

.progress-point:hover {
    transform: translate(-50%, -50%) scale(1.5);
}

.progress-point:hover::after {
    content: attr(data-value) ' mmol/L';
    position: absolute;
    top: -25px;
    left: 0;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 10px;
    white-space: nowrap;
}

.progress-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 40px;
}

.progress-stat {
    text-align: center;
}

/* Settings Form */
.settings-form {
    max-width: 600px;
    margin: 0 auto;
}

.settings-group {
    margin-bottom: 1.5rem;
}

.settings-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
}

.settings-group select, .settings-group input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: white;
}
/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

/* Team CTA variation */
.team-cta {
    background: var(--primary);
}

.cta-shapes .cta-shape {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    opacity: 0.2;
}

.cta-shape-1 {
    width: 400px;
    height: 400px;
    background-color: #fff;
    top: -200px;
    right: -100px;
}

.cta-shape-2 {
    width: 300px;
    height: 300px;
    background-color: #fff;
    bottom: -150px;
    left: -100px;
}

/* Footer */
.footer {
    background-color: #323232;
    color: #bbb;
}

.footer-brand h5 {
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-brand h5::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background-color: var(--primary);
    bottom: 0;
    left: 0;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
    color: var(--white);
}

.footer h5 {
    position: relative;
}

.footer h5::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
    bottom: -10px;
    left: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
    text-decoration: none;
}

.contact-info li {
    margin-bottom: 0.8rem;
    color: #bbb;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    /* Mobile footer centering */
    .footer {
        text-align: center;
    }
    
    .footer-brand h5::after,
    .footer h5::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-links,
    .contact-info {
        text-align: center;
    }
}

/* Ensure navbar stays fixed at top */
header.fixed-top {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
}

/* Responsive adjustments for various sections */
@media (max-width: 767.98px) {
    .hero {
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .lactate-value-container {
        flex-direction: column;
    }
    
    .lactate-value {
        margin-left: 0;
        margin-top: 1.5rem;
    }
    
    .lactate-metrics {
        flex-direction: column;
        gap: 1rem;
    }
    
    .addon-card {
        flex-direction: column;
    }
    
    .addon-logo {
        width: 100%;
        min-width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    
    .heatmap-container {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .partner {
        width: 140px;
        height: 120px;
    }
    
    /* Fix for dashboard nav spacing */
    .dashboard-nav {
        flex-wrap: wrap;
        justify-content: space-between;
        margin-top: 10px;
        width: 100%;
    }
    
    .nav-item {
        margin: 0 10px 10px 0;
        font-size: 0.9rem;
    }
}