/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background: url('https://www.shutterstock.com/image-illustration/kidney-biology-health-care-concept-260nw-2390541981.jpg') center/cover fixed no-repeat;
    background-color: #f0f5fc;
    min-height: 100vh;
}

body {
    font-family: 'Poppins', sans-serif;
    background: transparent;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
.main-header {
    background: linear-gradient(135deg, #ffffff 0%, #f0f5fc 100%);
    box-shadow: 0 8px 32px rgba(26, 93, 176, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(26, 93, 176, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo-wrapper:hover {
    transform: scale(1.05);
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1a5db0 0%, #0d4a8a 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(26, 93, 176, 0.3);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.project-name {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1a5db0 0%, #0d4a8a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 5px;
}

.main-nav ul li {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border-radius: 8px;
    display: block;
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, #1a5db0 0%, #0d4a8a 100%);
    border-radius: 3px;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(26, 93, 176, 0.1);
    color: #1a5db0;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 30px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a5db0 0%, #0d4a8a 100%);
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.medical-hero {
    background: linear-gradient(135deg, #0f3a6f 0%, #1a5db0 50%, #0d4a8a 100%);
    background-attachment: scroll;
}

.medical-overlay {
    background: rgba(0, 0, 0, 0.25) !important;
}

.medical-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 30px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    animation: slideInDown 0.8s ease-out;
}

.animated-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.08;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.kidney-animation-container {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kidney-svg {
    width: 200px;
    height: 200px;
    animation: kidneyBeatSubtle 2s ease-in-out infinite;
}

@keyframes kidneyBeatSubtle {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.pulse-ring-subtle {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: pulseSubtle 3s ease-out infinite;
}

@keyframes pulseSubtle {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.hero-text-wrapper {
    max-width: 900px;
    animation: slideInUp 0.8s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 0.8s ease-out;
    line-height: 1.2;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.95);
    animation: fadeInDown 0.8s ease-out 0.2s both;
    font-weight: 300;
    letter-spacing: 1px;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    animation: fadeInDown 0.8s ease-out 0.4s both;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Flow Diagram */
.flow-diagram {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 50px 0;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: float 3s ease-in-out infinite;
}

.flow-step:nth-child(3n+2) {
    animation-delay: 0.3s;
}

.flow-step:nth-child(3n) {
    animation-delay: 0.6s;
}

.flow-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.flow-step:hover .flow-icon {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.flow-step p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    min-width: 80px;
}

.flow-arrow {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
    animation: flowPulse 1.5s ease-in-out infinite;
}

@keyframes flowPulse {
    0%, 100% { opacity: 0.5; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(5px); }
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #1a5db0 0%, #0d4a8a 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(26, 93, 176, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(26, 93, 176, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    background-color: white;
    color: #1a5db0;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-glow {
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(26, 93, 176, 0.3);
    }
    50% {
        box-shadow: 0 6px 40px rgba(26, 93, 176, 0.6);
    }
}

.btn-large {
    padding: 16px 45px;
    font-size: 1.1rem;
}

/* Statistics Section - Medical Metrics */
.statistics {
    padding: 60px 0;
    background: transparent;
    position: relative;
}

.medical-metrics {
    background: transparent;
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: #1a5db0;
    margin-bottom: 60px;
    font-weight: 700;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #1a5db0 0%, #0d4a8a 100%);
    border-radius: 2px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.metric-card {
    background: white;
    padding: 40px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #1a5db0;
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1a5db0, #0d4a8a, #1a5db0);
    animation: slideRight 2s ease-in-out infinite;
}

@keyframes slideRight {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.metric-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(26, 93, 176, 0.15);
}

.metric-value {
    font-size: 2.8rem;
    font-weight: 700;
    color: #1a5db0;
    margin-bottom: 8px;
}

.metric-label {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 12px;
    font-weight: 600;
}

.metric-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.stat-card {
    background: linear-gradient(135deg, #f0f5fc 0%, #ffffff 100%);
    border: 2px solid rgba(26, 93, 176, 0.1);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a5db0 0%, #0d4a8a 100%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: -1;
}

.stat-card:hover::before {
    left: 0;
    opacity: 0.05;
}

.stat-card:hover {
    transform: translateY(-8px);
    border-color: #1a5db0;
    box-shadow: 0 15px 40px rgba(26, 93, 176, 0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1a5db0 0%, #0d4a8a 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    margin: 0 auto 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 93, 176, 0.3);
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(26, 93, 176, 0.4);
}

.stat-card h3 {
    color: #1a5db0;
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.stat-card p {
    color: #666;
    font-size: 0.95rem;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: transparent;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #1a5db0;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #1a5db0 0%, #0d4a8a 100%);
    border-radius: 2px;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
    margin-top: 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 35px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-12px);
    border-color: #1a5db0;
    box-shadow: 0 15px 50px rgba(26, 93, 176, 0.2);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #1a5db0 0%, #0d4a8a 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(26, 93, 176, 0.3);
}

.feature-card:hover .feature-icon {
    transform: scale(1.15);
    box-shadow: 0 12px 35px rgba(26, 93, 176, 0.4);
}

.feature-card h3 {
    color: #1a5db0;
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 600;
}

.feature-card p {
    color: #666;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* How It Works Section */
.how-it-works {
    padding: 80px 0;
    background: transparent;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.step-item {
    flex: 1;
    min-width: 220px;
    text-align: center;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1a5db0 0%, #0d4a8a 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 15px;
    box-shadow: 0 6px 20px rgba(26, 93, 176, 0.3);
    animation: float 3s ease-in-out infinite;
}

.step-item:nth-child(3n+2) .step-number {
    animation-delay: 0.3s;
}

.step-item:nth-child(3n) .step-number {
    animation-delay: 0.6s;
}

.step-icon {
    font-size: 50px;
    color: #1a5db0;
    margin: 15px 0;
    transition: all 0.3s ease;
}

.step-item:hover .step-icon {
    transform: scale(1.15);
    color: #0d4a8a;
}

.step-item h3 {
    color: #1a5db0;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.step-item p {
    color: #666;
    font-size: 0.95rem;
}

.step-connector {
    flex: 0.5;
    height: 4px;
    background: linear-gradient(to right, #1a5db0, #0d4a8a);
    border-radius: 2px;
    display: none;
}

@media (min-width: 1024px) {
    .steps-container {
        flex-wrap: nowrap;
    }
    
    .step-item {
        flex: 0 1 auto;
    }
    
    .step-connector {
        display: block;
    }
}

/* Result Page Styles */
.result-header {
    background: linear-gradient(135deg, #0f3a6f 0%, #1a5db0 50%, #0d4a8a 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.medical-gradient {
    background: linear-gradient(135deg, #0f3a6f 0%, #1a5db0 50%, #0d4a8a 100%);
}

.result-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(76, 175, 80, 0.2);
    color: #4cb050;
    padding: 12px 24px;
    border-radius: 30px;
    margin-bottom: 20px;
    border: 1px solid rgba(76, 175, 80, 0.4);
    font-weight: 600;
    font-size: 0.95rem;
}

.result-header h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.result-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

.result-main {
    padding: 80px 0;
    background: transparent;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.result-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(26, 93, 176, 0.1);
    transition: all 0.3s ease;
}

.result-card:hover {
    box-shadow: 0 15px 40px rgba(26, 93, 176, 0.15);
    transform: translateY(-5px);
}

.card-header {
    margin-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.card-header h2 {
    font-size: 1.5rem;
    color: #1a5db0;
    margin-bottom: 5px;
}

.card-subtitle {
    color: #999;
    font-size: 0.9rem;
}

.eGFR-display {
    text-align: center;
    margin: 30px 0;
}

.eGFR-value {
    font-size: 4rem;
    font-weight: 700;
    color: #1a5db0;
    margin-bottom: 10px;
}

.eGFR-scale {
    margin: 30px 0;
}

.scale-bar {
    display: flex;
    height: 30px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.scale-section {
    flex: 1;
}

.normal-range {
    background: linear-gradient(90deg, #4cb050, #7cb342);
}

.risk-range {
    background: linear-gradient(90deg, #ffa726, #fdd835);
}

.ckd-range {
    background: linear-gradient(90deg, #ef5350, #e53935);
}

.scale-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.eGFR-interpretation {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(124, 179, 66, 0.1) 100%);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #4cb050;
    margin-top: 25px;
}

.interpretation-text {
    color: #2e7d32;
    font-weight: 500;
    line-height: 1.6;
}

.status-badge-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 40px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15) 0%, rgba(124, 179, 66, 0.1) 100%);
    border-radius: 15px;
    margin: 25px 0;
    font-size: 1.8rem;
    color: #2e7d32;
    font-weight: 700;
}

.status-badge-large i {
    font-size: 2.5rem;
}

.status-details {
    margin-top: 25px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    color: #666;
    font-weight: 500;
}

.detail-value {
    color: #1a5db0;
    font-weight: 600;
    font-size: 1.1rem;
}

.risk-low {
    color: #2e7d32;
}

.risk-medium {
    color: #f57c00;
}

.risk-high {
    color: #c62828;
}

.stage-normal {
    color: #2e7d32;
}

.stage-risk {
    color: #f57c00;
}

.stage-ckd {
    color: #c62828;
}

.metrics-card .metrics-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
}

.metric-row:last-child {
    border-bottom: none;
}

.metric-name {
    color: #666;
    font-weight: 500;
}

.metric-value {
    color: #1a5db0;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Recommendations Section */
.recommendations-section {
    padding: 80px 0;
    background: transparent;
}

.section-heading {
    font-size: 2.2rem;
    color: #1a5db0;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 700;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.recommendation-card {
    background: linear-gradient(135deg, #f8f9fc 0%, #ffffff 100%);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(26, 93, 176, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.recommendation-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(26, 93, 176, 0.15);
    border-color: #1a5db0;
}

.rec-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1a5db0 0%, #0d4a8a 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    margin: 0 auto 20px;
}

.recommendation-card h3 {
    color: #1a5db0;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.recommendation-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Analysis Details */
.analysis-details {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fc 0%, #ffffff 100%);
}

.analysis-tabs {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    color: #1a5db0;
    margin-bottom: 25px;
    font-size: 1.4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px;
    background: linear-gradient(135deg, #f0f5fc 0%, #ffffff 100%);
    border-radius: 10px;
    border-left: 4px solid #1a5db0;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 16px rgba(26, 93, 176, 0.1);
}

.feature-name {
    color: #666;
    font-weight: 500;
    flex: 1;
}

.feature-value {
    color: #1a5db0;
    font-weight: 700;
    font-size: 1.1rem;
    text-align: right;
}

/* Result Actions */
.result-actions {
    padding: 50px 0;
    background: white;
    text-align: center;
}

.result-actions .container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    color: #1a5db0;
    border: 2px solid #1a5db0;
}

.btn-outline:hover {
    background: #1a5db0;
    color: white;
    transform: translateY(-3px);
}

/* Test Header */
.test-header {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.test-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.test-status {
    display: flex;
    align-items: center;
}

.status-indicator {
    display: inline-block;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin-right: 10px;
}

.status-indicator.idle {
    background-color: #6c757d;
}

.status-indicator.testing {
    background-color: #ffc107;
    animation: pulse 1.5s infinite;
}

.status-indicator.completed {
    background-color: #28a745;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.device-info p {
    margin: 5px 0;
    font-weight: 500;
}

/* Sensor Data Section */
.sensor-data {
    padding: 50px 0;
    background-color: rgba(248, 249, 250, 0.9);
}

.sensor-data h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #1a5db0;
}

.sensor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.sensor-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.sensor-card h3 {
    color: #1a5db0;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.sensor-values {
    display: grid;
    gap: 15px;
}

.value-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.value-item:last-child {
    border-bottom: none;
}

.label {
    font-weight: 500;
}

.value {
    font-weight: 600;
    font-size: 1.2rem;
    color: #1a5db0;
}

.unit {
    font-size: 0.9rem;
    color: #6c757d;
    margin-left: 5px;
}

/* Progress Section */
.progress-section {
    padding: 50px 0;
    background-color: transparent;
}

.progress-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #1a5db0;
}

.progress-container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin: 0 auto;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.progress-info p {
    font-weight: 500;
}

.progress-bar {
    height: 20px;
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-fill {
    height: 100%;
    background-color: #1a5db0;
    width: 0%;
    transition: width 0.5s;
}

.progress-percent {
    text-align: center;
    font-weight: 600;
    font-size: 1.2rem;
    color: #1a5db0;
}

/* Graphs Section */
.graphs-section {
    padding: 50px 0;
    background-color: transparent;
}

.graphs-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #1a5db0;
}

.graph-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.graph-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.graph-card h3 {
    color: #1a5db0;
    margin-bottom: 20px;
    text-align: center;
}

/* History Section */
.history-section {
    padding: 50px 0;
    background: transparent;
}

.history-section h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #1a5db0;
}

.history-table-container {
    overflow-x: auto;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.history-table th,
.history-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.history-table th {
    background-color: #1a5db0;
    color: white;
    font-weight: 600;
}

.history-table tr:last-child td {
    border-bottom: none;
}

.history-table tr:hover {
    background-color: #f8f9fa;
}

.status-normal {
    background-color: #d4edda;
    color: #155724;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.status-warning {
    background-color: #fff3cd;
    color: #856404;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.status-critical {
    background-color: #f8d7da;
    color: #721c24;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-view-report {
    background-color: #1a5db0;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-view-report:hover {
    background-color: #0d4a8a;
}

/* Report Page */
.report-header {
    padding: 40px 0;
    background-color: rgba(26, 93, 176, 0.9);
    color: white;
    text-align: center;
}

.report-header h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.report-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.meta-item .label {
    font-weight: 600;
    margin-right: 10px;
}

.prediction-panel {
    padding: 50px 0;
    background-color: white;
}

.prediction-panel h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #1a5db0;
}

.prediction-content {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin: 0 auto;
}

.prediction-main {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.egfr-value {
    text-align: center;
}

.egfr-value .label {
    display: block;
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 10px;
}

.egfr-value .value {
    font-size: 3rem;
    font-weight: 700;
    color: #1a5db0;
}

.egfr-value .unit {
    font-size: 1rem;
    color: #6c757d;
}

.kidney-status .status-normal,
.kidney-status .status-warning,
.kidney-status .status-critical {
    font-size: 1.5rem;
    padding: 10px 25px;
    border-radius: 30px;
}

.prediction-details {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.detail-item .label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    color: #6c757d;
}

.detail-item .value {
    font-size: 1.3rem;
    font-weight: 600;
}

.risk-low {
    color: #28a745;
    font-weight: 600;
}

.risk-medium {
    color: #ffc107;
    font-weight: 600;
}

.risk-high {
    color: #dc3545;
    font-weight: 600;
}

.recommendations-panel {
    padding: 50px 0;
    background-color: #f8f9fa;
}

.recommendations-panel h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #1a5db0;
}

.recommendations-content {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin: 0 auto;
}

.primary-recommendation h3,
.secondary-recommendations h3,
.next-test h3 {
    color: #1a5db0;
    margin-bottom: 15px;
}

.primary-recommendation p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

.secondary-recommendations ul {
    list-style-position: inside;
    margin-bottom: 25px;
}

.secondary-recommendations li {
    margin-bottom: 10px;
}

.summary-section {
    padding: 50px 0;
    background-color: transparent;
}

.summary-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #1a5db0;
}

.summary-content {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.summary-item {
    text-align: center;
    margin: 10px;
}

.summary-item .label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    color: #6c757d;
}

.summary-item .value {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a5db0;
}

.graph-snapshots {
    padding: 50px 0;
    background-color: #f8f9fa;
}

.graph-snapshots h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #1a5db0;
}

.snapshot-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.snapshot-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.snapshot-card h3 {
    color: #1a5db0;
    margin-bottom: 20px;
    text-align: center;
}

.action-buttons {
    padding: 50px 0;
    text-align: center;
}

.action-buttons .btn {
    margin: 0 10px;
}

/* About Page */
.about-section {
    padding: 50px 0;
    background: transparent;
}

.about-section h1 {
    text-align: center;
    margin-bottom: 40px;
    color: #1a5db0;
}

.about-content {
    background: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.problem-statement,
.solution,
.system-architecture,
.technologies,
.hackathon-info {
    margin-bottom: 40px;
}

.problem-statement h2,
.solution h2,
.system-architecture h2,
.technologies h2,
.hackathon-info h2 {
    color: #1a5db0;
    margin-bottom: 20px;
}

.architecture-diagram {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.component {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    min-width: 150px;
}

.esp32 {
    background-color: #e8f4fd;
    border: 2px solid #1a5db0;
}

.backend {
    background-color: #fff3cd;
    border: 2px solid #ffc107;
}

.ml {
    background-color: #d1ecf1;
    border: 2px solid #17a2b8;
}

.frontend {
    background-color: #d4edda;
    border: 2px solid #28a745;
}

.arrow {
    font-size: 2rem;
    color: #6c757d;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.tech-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
}

.tech-card h3 {
    color: #1a5db0;
    margin-bottom: 15px;
    text-align: center;
}

.tech-card ul {
    list-style-position: inside;
}

.tech-card li {
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .project-name {
        font-size: 1.2rem;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .nav-link {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .statistics .container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .step-connector {
        display: none;
    }
    
    .test-header .container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .report-meta {
        flex-direction: column;
        gap: 15px;
    }
    
    .prediction-main {
        flex-direction: column;
        gap: 20px;
    }
    
    .prediction-details {
        flex-direction: column;
        gap: 20px;
    }
    
    .summary-content {
        flex-direction: column;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .cta-section p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .sensor-grid {
        grid-template-columns: 1fr;
    }
    
    .graph-container {
        grid-template-columns: 1fr;
    }
    
    .snapshot-container {
        grid-template-columns: 1fr;
    }
    
    .architecture-diagram {
        flex-direction: column;
    }
    
    .arrow {
        transform: rotate(90deg);
    }
    
    .statistics .container {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .logo-wrapper {
        gap: 8px;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }
    
    .project-name {
        font-size: 1rem;
    }
}

/* Report Page Styles */
.report-section {
    padding: 80px 0;
}

.alt-bg {
    background: linear-gradient(135deg, #f8f9fc 0%, #ffffff 100%);
}

.report-title h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.report-title p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.report-meta-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.meta-box {
    background: rgba(255, 255, 255, 0.15);
    padding: 18px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.meta-label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.meta-value {
    display: block;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
}

.summary-box {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: center;
}

.summary-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.summary-content p {
    color: #333;
    line-height: 1.7;
    font-size: 0.95rem;
}

.summary-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.stat {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f0f5fc 0%, #ffffff 100%);
    border-radius: 12px;
    border-left: 4px solid #1a5db0;
}

.stat-number {
    font-size: 2.2rem;
    color: #1a5db0;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-label {
    color: #666;
    font-weight: 500;
    font-size: 0.9rem;
}

.data-analysis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.analysis-column h3 {
    color: #1a5db0;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.data-table {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.table-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.table-row:last-child {
    border-bottom: none;
}

.table-label {
    color: #666;
    font-weight: 500;
}

.table-value {
    color: #1a5db0;
    font-weight: 700;
}

.features-table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.table-header {
    background: linear-gradient(135deg, #1a5db0 0%, #0d4a8a 100%);
    color: white;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    padding: 20px;
    font-weight: 600;
    gap: 20px;
}

.table-rows {
    display: flex;
    flex-direction: column;
}

.table-row-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
    gap: 20px;
    align-items: center;
    transition: all 0.3s ease;
}

.table-row-item:hover {
    background: linear-gradient(135deg, rgba(26, 93, 176, 0.05) 0%, rgba(13, 74, 138, 0.05) 100%);
}

.table-row-item:last-child {
    border-bottom: none;
}

.col {
    color: #333;
    font-weight: 500;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-badge.good {
    background: rgba(76, 175, 80, 0.2);
    color: #2e7d32;
}

.status-badge.warning {
    background: rgba(255, 152, 0, 0.2);
    color: #f57c00;
}

.status-badge.critical {
    background: rgba(244, 67, 54, 0.2);
    color: #c62828;
}

.model-insights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.insight-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(26, 93, 176, 0.1);
}

.insight-card h3 {
    color: #1a5db0;
    margin-bottom: 18px;
    font-size: 1.1rem;
}

.insight-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.insight-list li {
    color: #333;
    padding-left: 20px;
    position: relative;
    font-size: 0.95rem;
}

.insight-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #1a5db0;
    font-weight: bold;
}

.confidence-meter {
    padding: 20px 0;
}

.confidence-bar {
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
}

.confidence-fill {
    height: 100%;
    background: linear-gradient(90deg, #4cb050, #7cb342);
    border-radius: 6px;
}

.confidence-text {
    text-align: center;
    color: #1a5db0;
    font-weight: 600;
}

.clinical-notes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.note-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #1a5db0;
}

.note-box h3 {
    color: #1a5db0;
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.note-box h3 i {
    font-size: 1.3rem;
}

.note-box p {
    color: #333;
    line-height: 1.7;
    margin-bottom: 15px;
}

.note-box p:last-child {
    margin-bottom: 0;
}

.note-box ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.note-box li {
    color: #333;
    padding-left: 20px;
    position: relative;
}

.note-box li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #1a5db0;
    font-weight: bold;
}

.report-actions {
    padding: 60px 0;
    background: white;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* ========== LIVE TEST PAGE STYLES ========== */

.live-test-hero {
    background: linear-gradient(135deg, #1a5db0 0%, #0d4a8a 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 40px;
}

.live-test-hero h2 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 40px;
    opacity: 0;
    animation: slideInDown 0.8s ease-out forwards;
    display: block;
    line-height: 1.4;
}

.live-test-hero p {
    font-size: 1.1rem;
    opacity: 0;
    margin-bottom: 30px;
    margin-top: 0;
    animation: slideInUp 0.8s ease-out 0.5s forwards;
    display: block;
    line-height: 1.6;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 0.95;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 0.95;
        transform: translateY(0);
    }
}

.test-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.test-controls .btn {
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #2e7d32;
    color: white;
}

.btn-primary:hover {
    background: #27652a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 125, 50, 0.3);
}

.btn-secondary {
    background: #ef5350;
    color: white;
}

.btn-secondary:hover {
    background: #e53935;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 83, 80, 0.3);
}

.btn-success {
    background: #1a5db0;
    color: white;
    padding: 14px 35px;
    font-size: 1.05rem;
}

.btn-success:hover {
    background: #0d4a8a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 93, 176, 0.3);
}

/* Test Status Section */
.test-status-section {
    margin: 40px 0;
}

.test-status-section .container {
    max-width: 1100px;
}

.status-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.status-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #1a5db0;
    animation: slideUp 0.6s ease;
}

.status-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.status-header i {
    color: #1a5db0;
    font-size: 1.1rem;
}

.status-badge {
    background: linear-gradient(135deg, #4cb050 0%, #2e7d32 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-block;
    text-align: center;
    font-size: 1rem;
}

.status-badge.running {
    background: linear-gradient(135deg, #1a5db0 0%, #0d4a8a 100%);
}

.status-badge.complete {
    background: linear-gradient(135deg, #4cb050 0%, #2e7d32 100%);
}

.status-value {
    font-size: 2rem;
    font-weight: 600;
    color: #1a5db0;
}

/* Progress Section */
.progress-section {
    background: linear-gradient(135deg, #f0f5fc 0%, #f8f9fc 100%);
    padding: 40px 20px;
    margin: 40px 0;
    border-radius: 12px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.progress-header h3 {
    font-size: 1.3rem;
    color: #333;
    font-weight: 600;
}

.progress-percentage {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a5db0;
}

.progress-bar-large {
    height: 12px;
    background: #e0e8f5;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.progress-bar-large .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1a5db0 0%, #2e7d32 100%);
    transition: width 0.3s ease;
}

.progress-stages {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.stage.active {
    opacity: 1;
}

.stage i {
    font-size: 1.3rem;
    color: #1a5db0;
}

.stage span {
    font-size: 0.85rem;
    color: #666;
    text-align: center;
}

/* Live Metrics Grid */
.live-metrics {
    margin: 40px 0;
}

.live-metrics h3 {
    font-size: 1.3rem;
    color: #333;
    font-weight: 600;
    margin-bottom: 25px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.metric-card-live {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #1a5db0;
    animation: slideUp 0.6s ease;
}

.metric-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value-large {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a5db0;
    margin: 10px 0;
    font-family: 'Courier New', monospace;
}

.metric-unit {
    font-size: 0.9rem;
    color: #999;
    font-weight: 500;
}

.metric-bar {
    height: 6px;
    background: #e0e8f5;
    border-radius: 3px;
    margin-top: 12px;
    overflow: hidden;
}

.metric-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #1a5db0 0%, #0d4a8a 100%);
    transition: width 0.5s ease;
}

/* Graphs Section */
.graphs-section {
    margin: 50px 0;
}

.graphs-section h3 {
    font-size: 1.3rem;
    color: #333;
    font-weight: 600;
    margin-bottom: 25px;
}

.graphs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 25px;
}

.graph-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e8f5;
    animation: slideUp 0.6s ease;
}

.graph-card h4 {
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
    margin-bottom: 20px;
}

.graph-card canvas {
    max-height: 300px;
}

/* Next Steps Section */
.next-steps {
    text-align: center;
    padding: 40px 20px;
    margin: 40px 0;
}

.next-steps .btn {
    margin: 0 10px;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .live-test-hero h2 {
        font-size: 1.8rem;
    }

    .test-controls {
        flex-direction: column;
    }

    .test-controls .btn {
        width: 100%;
        justify-content: center;
    }

    .progress-stages {
        flex-wrap: wrap;
    }

    .stage {
        flex: 0 1 calc(50% - 10px);
        margin-bottom: 15px;
    }

    .graphs-grid {
        grid-template-columns: 1fr;
    }

    .metric-value-large {
        font-size: 2rem;
    }

    .status-cards {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* ========== HISTORY PAGE STYLES ========== */

.history-hero {
    background: linear-gradient(135deg, #1a5db0 0%, #0d4a8a 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 40px;
}

.history-hero h2 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.history-hero p {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* History Summary Section */
.history-summary {
    margin: 40px 0;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.summary-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #1a5db0;
    display: flex;
    gap: 20px;
    align-items: center;
    animation: slideUp 0.6s ease;
}

.summary-icon {
    font-size: 2.2rem;
    color: #1a5db0;
    width: 60px;
    text-align: center;
}

.summary-content {
    flex: 1;
}

.summary-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.summary-value {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1a5db0;
}

/* History Graph Section */
.history-graph {
    margin: 50px 0;
}

.history-graph .container {
    max-width: 900px;
}

.graph-card.large {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e8f5;
    animation: slideUp 0.6s ease;
}

.graph-card.large h3 {
    font-size: 1.2rem;
    color: #333;
    font-weight: 600;
    margin-bottom: 20px;
}

.graph-card.large canvas {
    max-height: 350px;
    margin-bottom: 20px;
}

.trend-info {
    background: #f0f5fc;
    border-left: 4px solid #2e7d32;
    padding: 15px;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #333;
}

.trend-info i {
    color: #2e7d32;
    margin-right: 8px;
}

/* Clinical Records Section */
.clinical-records {
    margin: 50px 0;
}

.clinical-records h3 {
    font-size: 1.3rem;
    color: #333;
    font-weight: 600;
    margin-bottom: 25px;
}

.records-table-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    animation: slideUp 0.6s ease;
}

.medical-table {
    width: 100%;
    border-collapse: collapse;
}

.medical-table thead {
    background: linear-gradient(135deg, #1a5db0 0%, #0d4a8a 100%);
    color: white;
}

.medical-table th {
    padding: 18px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.medical-table tbody tr {
    border-bottom: 1px solid #e0e8f5;
    transition: background-color 0.3s ease;
}

.medical-table tbody tr:hover {
    background-color: #f8f9fc;
}

.medical-table td {
    padding: 18px;
    font-size: 0.95rem;
}

.medical-table tbody tr:first-child td {
    padding-top: 20px;
}

.medical-table tbody tr:last-child {
    border-bottom: none;
}

.medical-table tbody tr:last-child td {
    padding-bottom: 20px;
}

/* Status Badges in History */
.status-normal, .status-warning, .status-critical {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-normal {
    background-color: #c8e6c9;
    color: #2e7d32;
}

.status-warning {
    background-color: #ffe0b2;
    color: #f57c00;
}

.status-critical {
    background-color: #ffcdd2;
    color: #c62828;
}

/* Confidence Badge */
.confidence-badge {
    font-weight: 600;
    color: #1a5db0;
}

/* Details Button */
.btn-details {
    background: #1a5db0;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-details:hover {
    background: #0d4a8a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 93, 176, 0.3);
}

/* History Export Section */
.history-export {
    text-align: center;
    padding: 40px 20px;
    margin: 40px 0;
}

.export-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.export-actions .btn {
    padding: 12px 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .history-hero h2 {
        font-size: 1.8rem;
    }

    .summary-card {
        flex-direction: column;
        text-align: center;
    }

    .medical-table {
        font-size: 0.85rem;
    }

    .medical-table th,
    .medical-table td {
        padding: 12px;
    }

    .export-actions {
        flex-direction: column;
    }

    .export-actions .btn {
        width: 100%;
    }
}

/* ========== ABOUT PAGE STYLES ========== */

.about-hero {
    background: linear-gradient(135deg, #1a5db0 0%, #0d4a8a 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 40px;
}

.about-hero h2 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.about-hero p {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* About Sections */
.about-section {
    padding: 50px 20px;
}

.about-section h3 {
    font-size: 1.8rem;
    color: #333;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
}

/* Problem & Solution Boxes */
.problem-box, .solution-box {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 30px;
    align-items: flex-start;
    border-left: 5px solid #1a5db0;
    animation: slideUp 0.6s ease;
}

.solution-box {
    border-left-color: #2e7d32;
}

.problem-icon, .solution-icon {
    font-size: 3rem;
    flex-shrink: 0;
    width: 80px;
    text-align: center;
}

.problem-icon {
    color: #ef5350;
}

.solution-icon {
    color: #2e7d32;
}

.problem-content, .solution-content {
    flex: 1;
}

.problem-content h3, .solution-content h3 {
    font-size: 1.5rem;
    color: #333;
    font-weight: 600;
    margin-bottom: 15px;
}

.problem-content p, .solution-content p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 10px;
}

.problem-content ul, .solution-content ul {
    list-style: none;
    padding: 0;
}

.problem-content ul li, .solution-content ul li {
    padding: 8px 0;
    color: #666;
    display: flex;
    align-items: center;
    gap: 12px;
}

.problem-content li i, .solution-content li i {
    color: #1a5db0;
    font-size: 1.1rem;
}

/* Architecture Section */
.architecture-section {
    background: linear-gradient(135deg, #f0f5fc 0%, #f8f9fc 100%);
}

.architecture-flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: center;
}

.flow-box {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    position: relative;
    animation: slideUp 0.6s ease;
}

.flow-number {
    background: #1a5db0;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 15px;
}

.flow-box h4 {
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
    margin-bottom: 10px;
}

.flow-box p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 12px;
}

.flow-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.flow-items small {
    color: #999;
    font-size: 0.8rem;
}

.flow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a5db0;
    font-size: 1.5rem;
}

/* Tech Grid */
.tech-section {
    background: white;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.tech-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-top: 4px solid #1a5db0;
    animation: slideUp 0.6s ease;
}

.tech-icon {
    font-size: 2.5rem;
    color: #1a5db0;
    margin-bottom: 15px;
}

.tech-card h4 {
    font-size: 1.2rem;
    color: #333;
    font-weight: 600;
    margin-bottom: 15px;
}

.tech-card ul {
    list-style: none;
    padding: 0;
}

.tech-card ul li {
    padding: 8px 0;
    color: #666;
    border-bottom: 1px solid #f0f5fc;
    font-size: 0.9rem;
}

.tech-card ul li:last-child {
    border-bottom: none;
}

/* Innovations Grid */
.innovations-section {
    background: linear-gradient(135deg, #f0f5fc 0%, #f8f9fc 100%);
}

.innovations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.innovation-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #2e7d32;
    animation: slideUp 0.6s ease;
}

.innovation-card h4 {
    font-size: 1.1rem;
    color: #1a5db0;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.innovation-card h4 i {
    color: #2e7d32;
    font-size: 1.3rem;
}

.innovation-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Impact Stats */
.impact-section {
    background: linear-gradient(135deg, #1a5db0 0%, #0d4a8a 100%);
    color: white;
    text-align: center;
}

.impact-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.impact-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.impact-number {
    font-size: 3rem;
    font-weight: 700;
    color: #4cb050;
    margin-bottom: 10px;
}

.impact-card p {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* Hackathon Section */
.hackathon-section {
    background: white;
}

.hackathon-content h3 {
    text-align: left;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.hackathon-content p {
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

.hackathon-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.hackathon-features div {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fc;
    border-radius: 8px;
    border-left: 4px solid #2e7d32;
}

.hackathon-features i {
    font-size: 1.5rem;
    color: #2e7d32;
}

.hackathon-features span {
    color: #333;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .about-hero h2 {
        font-size: 1.8rem;
    }

    .problem-box, .solution-box {
        flex-direction: column;
        text-align: center;
    }

    .problem-icon, .solution-icon {
        width: 100%;
    }

    .architecture-flow {
        grid-template-columns: 1fr;
    }

    .flow-arrow {
        transform: rotate(90deg);
        margin: -10px 0;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }

    .innovations-grid {
        grid-template-columns: 1fr;
    }

    .impact-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .hackathon-features {
        grid-template-columns: 1fr;
    }
}