/* Base Styles & Typography */
:root {
    --bg-color: #f0f4f8; /* Light clean clinical background */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(14, 165, 233, 0.2);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --accent-1: #0ea5e9; /* Medical Blue */
    --accent-2: #14b8a6; /* Medical Teal */
    --accent-glow: rgba(14, 165, 233, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    background-image: 
        linear-gradient(rgba(14, 165, 233, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.05) 1px, transparent 1px);
    background-size: 30px 30px; /* Medical grid effect */
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* Background Blobs for Visual Aesthetics */
.background-blobs {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.blob {
    position: absolute;
    filter: blur(90px);
    opacity: 0.6;
    animation: float 10s infinite ease-in-out alternate;
}

.blob-1 {
    width: 450px;
    height: 450px;
    background: var(--accent-1);
    top: -100px;
    left: -100px;
    border-radius: 50%;
}

.blob-2 {
    width: 450px;
    height: 450px;
    background: var(--accent-2);
    bottom: -150px;
    right: -100px;
    border-radius: 50%;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(50px) scale(1.1); }
}

/* Main Container */
.container {
    width: 100%;
    max-width: 850px;
    padding: 2rem;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* Typography */
header {
    text-align: center;
    position: relative;
}

.medical-icon-header {
    color: var(--accent-1);
    margin-bottom: 10px;
}

.gradient-text {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 500px;
    margin: 0 auto;
}

/* Glassmorphism Panels */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 40px -10px rgba(14, 165, 233, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Add a subtle medical cross watermark in the corner of panels */
.glass-panel::after {
    content: '+';
    position: absolute;
    top: -20px;
    right: 10px;
    font-size: 150px;
    font-weight: 900;
    color: rgba(14, 165, 233, 0.03);
    z-index: -1;
    line-height: 1;
}

/* Upload Zone */
.drop-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    border: 2px dashed var(--accent-1);
    background: rgba(255,255,255,0.9);
    transition: all 0.3s ease;
}

.drop-zone:hover, .drop-zone.dragover {
    background: rgba(14, 165, 233, 0.05);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--accent-glow);
}

.upload-icon {
    color: var(--accent-1);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.drop-zone:hover .upload-icon {
    transform: scale(1.1);
}

.drop-zone h2 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.drop-zone p {
    color: var(--text-secondary);
    font-weight: 400;
}

/* Loading Section */
.loading-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 0;
}

.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* Medical Pulse Animation */
.pulse-ring {
    width: 60px;
    height: 60px;
    border: 3px solid var(--accent-1);
    border-radius: 50%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pulse-ring::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--accent-1);
    border-radius: 50%;
    animation: pulse 1.5s infinite ease-out;
    opacity: 0.5;
}

.pulse-ring::after {
    content: '+';
    font-size: 24px;
    color: var(--accent-1);
    font-weight: bold;
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(2); opacity: 0; }
}

.loader p {
    font-weight: 500;
    color: var(--accent-1);
    letter-spacing: 1px;
}

/* Result Section */
.result-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.result-panel h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent-1);
}

.image-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--glass-border);
    padding: 10px;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.05);
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-height: 600px;
    border-radius: 8px;
}

/* Stats Container */
.stats-container {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.stat-card {
    background: rgba(14, 165, 233, 0.05);
    border: 1px solid var(--accent-1);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 140px;
    box-shadow: 0 4px 6px rgba(14, 165, 233, 0.1);
}

.stat-title {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.stat-value {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
}

.stat-conf {
    font-size: 0.85rem;
    color: var(--accent-1);
    font-weight: 500;
    margin-top: 0.2rem;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

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

/* User Status Bar Styles */
.user-status-bar {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 100;
}

.user-badge {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.05);
}

.user-badge svg {
    color: var(--accent-1);
}

.btn-logout {
    background: transparent;
    border: 1px solid #ef4444;
    color: #ef4444;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: #ef4444;
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

/* Authentication Panel Styles */
.auth-section {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 1rem;
}

.auth-panel {
    width: 100%;
    max-width: 460px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-tabs {
    display: flex;
    border-bottom: 2px solid var(--glass-border);
    margin-bottom: 1rem;
}

.auth-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.auth-tab:hover {
    color: var(--accent-1);
}

.auth-tab.active {
    color: var(--accent-1);
    border-bottom: 2px solid var(--accent-1);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.auth-form h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: left;
}

.auth-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: -0.8rem;
    text-align: left;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-left: 2px;
}

.form-group input {
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.6);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-1);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.15);
}

.auth-btn {
    margin-top: 0.8rem;
    width: 100%;
}

/* Landing Page Styles */
.landing-page {
    display: block;
    min-height: 100vh;
    background-color: var(--bg-color);
}

.navbar {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(240, 244, 248, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    padding: 1rem 2rem;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.nav-icon {
    color: var(--accent-1);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-1);
}

.btn-nav {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: white !important;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(14, 165, 233, 0.3);
}

/* Hero Section */
.hero-section {
    padding: 9rem 2rem 5rem 2rem;
    text-align: center;
    position: relative;
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.8rem;
}

.badge-hero {
    background: rgba(14, 165, 233, 0.1);
    color: var(--accent-1);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -1.5px;
}

.gradient-text-landing {
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 750px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-btn {
    padding: 1rem 2.2rem;
    font-size: 1.05rem;
}

.btn-secondary {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    border-color: var(--accent-1);
    box-shadow: 0 6px 15px rgba(14, 165, 233, 0.1);
}

/* Dashboard Mockup Preview */
.dashboard-preview-container {
    width: 100%;
    max-width: 800px;
    margin-top: 2rem;
}

.preview-panel {
    padding: 0;
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(14, 165, 233, 0.15);
}

.preview-header {
    background: rgba(14, 165, 233, 0.05);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    position: relative;
}

.preview-dots {
    display: flex;
    gap: 6px;
}

.preview-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.preview-dots .dot:nth-child(1) { background-color: #ef4444; }
.preview-dots .dot:nth-child(2) { background-color: #f59e0b; }
.preview-dots .dot:nth-child(3) { background-color: #10b981; }

.preview-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.preview-content-img {
    padding: 0;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.preview-image-file {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.preview-panel:hover .preview-image-file {
    transform: scale(1.02);
}

/* Features Section */
.features-section {
    padding: 5rem 2rem;
    background: rgba(255, 255, 255, 0.3);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    text-align: center;
}

.section-header {
    max-width: 600px;
    margin: 0 auto 3.5rem auto;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.features-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 1rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.02);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(14, 165, 233, 0.1);
    color: var(--accent-1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Compatibility Showcase */
.implants-section {
    padding: 5rem 2rem;
    text-align: center;
}

.implants-container {
    max-width: 1000px;
    margin: 0 auto;
}

.implants-panel {
    padding: 2rem;
    box-shadow: 0 10px 35px rgba(14, 165, 233, 0.05);
}

.implants-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.implants-table th, .implants-table td {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.implants-table th {
    font-weight: 700;
    color: var(--text-primary);
    background: rgba(14, 165, 233, 0.03);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.implants-table td {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

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

/* Stats Performance */
.stats-section {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    padding: 4rem 2rem;
    color: white;
    text-align: center;
}

.stats-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Footer Section */
.footer {
    background: #0b1329;
    color: rgba(255, 255, 255, 0.6);
    padding: 4rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    font-size: 0.9rem;
}

.disclaimer {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.5;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 1.5rem;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .nav-links {
        display: none; /* Hide standard links in simple mockup */
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .preview-ui-mockup {
        grid-template-columns: 1fr;
    }
    
    .implants-table {
        font-size: 0.85rem;
    }
}
