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

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* Scroll offset for fixed header */
section {
    scroll-margin-top: 100px; /* Adjust based on header height */
}

/* Ensure sections have proper spacing */
.section {
    padding: 80px 0;
}

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

/* Remove the fadeInBody animation that causes white flash */

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

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

/* Enhanced Preloader with smooth animations */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: all 0.5s ease-out;
    /* Add smooth gradient animation */
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

.preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.preloader-content {
    text-align: center;
    color: white;
}

.logo-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    animation: logoFadeIn 0.8s ease-out;
}

.logo-loader .logo-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 1.6rem;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.logo-loader .logo-text {
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.spinner-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
}

.spinner-modern {
    width: 60px;
    height: 60px;
    border: 3px solid transparent;
    border-top: 3px solid #ffffff;
    border-right: 3px solid #ffffff;
    border-radius: 50%;
    animation: modernSpin 1.2s linear infinite;
    position: absolute;
    top: 10px;
    left: 10px;
}

.spinner-ring {
    width: 80px;
    height: 80px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    animation: ringPulse 2s ease-in-out infinite;
    position: absolute;
    top: 0;
    left: 0;
}

.loading-text {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 8px;
    animation: textFadeIn 1s ease-out 0.3s both;
}

.loading-subtext {
    font-size: 0.9rem;
    opacity: 0.8;
    animation: textFadeIn 1s ease-out 0.6s both;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

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

@keyframes ringPulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.1);
        opacity: 0.7;
    }
}

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

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

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

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

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

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

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Apply animations to elements */
.hero {
    animation: fadeInUp 0.8s ease-out;
}

.hero h1 {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero p {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero .btn {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.feature-card {
    animation: fadeInUp 0.6s ease-out;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.stat-item {
    animation: fadeInUp 0.6s ease-out;
}

.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }
.stat-item:nth-child(4) { animation-delay: 0.4s; }

.roadmap-item {
    animation: slideInFromLeft 0.6s ease-out;
}

.roadmap-item:nth-child(even) {
    animation: slideInFromRight 0.6s ease-out;
}

.roadmap-item:nth-child(1) { animation-delay: 0.1s; }
.roadmap-item:nth-child(2) { animation-delay: 0.2s; }
.roadmap-item:nth-child(3) { animation-delay: 0.3s; }
.roadmap-item:nth-child(4) { animation-delay: 0.4s; }

/* Button animations */
.btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Card hover animations */
.info-card, .tech-card, .step-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover, .tech-card:hover, .step-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

/* Input animations */
.file-input, input, textarea {
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
}

/* Logo and icon animations */
.logo-icon {
    transition: transform 0.3s ease;
}

.logo:hover .logo-icon {
    animation: bounce 0.6s ease;
}

/* Navigation animations */
.nav-link {
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    transform: translateY(-1px);
}

/* Stagger animations for lists */
.feature-grid .feature-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.stats-grid .stat-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Responsive animation adjustments */
@media (max-width: 768px) {
    .hero, .feature-card, .stat-item, .roadmap-item {
        animation-duration: 0.4s;
    }
    
    .upload-area:hover, .btn:hover, .info-card:hover {
        transform: none; /* Reduce animations on mobile */
    }
}

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

/* Scroll-triggered animations */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Staggered scroll animations */
.stagger-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.stagger-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-item:nth-child(1) { transition-delay: 0.1s; }
.stagger-item:nth-child(2) { transition-delay: 0.2s; }
.stagger-item:nth-child(3) { transition-delay: 0.3s; }
.stagger-item:nth-child(4) { transition-delay: 0.4s; }
.stagger-item:nth-child(5) { transition-delay: 0.5s; }
.stagger-item:nth-child(6) { transition-delay: 0.6s; }


.info-card-content {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.info-icon {
    font-size: 2rem;
    opacity: 0.8;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-width: 40px;
}

.info-text {
    flex: 1;
    min-width: 300px;
}

.info-text h4 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.info-text p {
    margin: 0;
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.5;
}

.info-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.info-close {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 50%;
    opacity: 0.6;
    transition: all 0.3s ease;
    margin-left: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-close:hover {
    opacity: 1;
    background: rgba(108, 117, 125, 0.1);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .info-card-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .info-text {
        min-width: unset;
    }
    
    .info-actions {
        width: 100%;
        justify-content: center;
    }
    
    .login-info-card {
        padding: 20px;
        margin-bottom: 24px;
    }
}

@media (max-width: 480px) {
    .info-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-sm {
        padding: 8px 16px;
        width: 100%;
        text-align: center;
    }
    
    .login-info-card {
        padding: 16px;
    }
    
    /* Hero responsive for small screens */
    .hero {
        padding: 60px 0 40px;
        min-height: 50vh;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .stat {
        min-width: 120px;
        padding: 14px 16px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    /* Card responsive */
    .card {
        padding: 20px;
        margin: 12px 0;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 24px 0;
    }
    
    .upload-icon {
        font-size: 2.4rem;
    }
    
    /* Contact mobile */
    .contact-info-card,
    .contact-form-card {
        padding: 20px;
    }
    
    .contact-item {
        padding: 12px;
        gap: 12px;
    }
    
    .contact-item-icon {
        width: 28px;
        height: 28px;
        font-size: 1.1rem;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.9rem;
        margin-bottom: 32px;
    }
}

/* Update existing banner styles for legacy support */
/* Legacy banner styles - kept for compatibility */
.login-banner {
    display: none; /* Hidden in favor of new info card design */
}

/* Additional button utility classes */
.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid #dee2e6;
    color: #6c757d;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-outline:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    color: #495057;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

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

.btn-secondary {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
}

.btn-success {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-top {
    background: rgba(0,0,0,0.1);
    padding: 8px 0;
    font-size: 0.9rem;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-contact {
    display: flex;
    gap: 20px;
}

.header-social a {
    color: white;
    text-decoration: none;
    margin-left: 10px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.header-social a:hover {
    opacity: 1;
}

.header-main {
    padding: 15px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    color: white;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 1.2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 8px 0;
    position: relative;
}

.nav-menu a:hover {
    color: #ffd700;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffd700;
    transition: width 0.3s;
}

.nav-menu a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.login-btn, .signup-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
}

.login-btn {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.login-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}

.signup-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
}

.signup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.mobile-menu {
    display: none;
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 5px;
}

/* User Avatar Dropdown */
.user-avatar-container {
    position: relative;
    display: none; /* Hidden by default, shown when logged in */
}

.user-avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.3);
    font-size: 1.2rem;
    color: white;
    font-weight: bold;
}

.user-avatar:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
    border-color: white;
}

.avatar-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1500;
    margin-top: 10px;
}

.avatar-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    text-align: center;
}

.dropdown-user-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.dropdown-user-email {
    font-size: 0.9rem;
    color: #6c757d;
}

.dropdown-menu {
    padding: 10px 0;
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 0.95rem;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: #667eea;
}

.dropdown-item i {
    margin-right: 10px;
    width: 16px;
}

.dropdown-divider {
    height: 1px;
    background: #e9ecef;
    margin: 10px 0;
}

.dropdown-logout {
    color: #e74c3c !important;
    border-top: 1px solid #e9ecef;
    margin-top: 10px;
    padding-top: 15px;
}

.dropdown-logout:hover {
    background: #fdf2f2;
    color: #c0392b !important;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9));
    color: white;
    padding: 80px 0 60px;
    text-align: center;
    min-height: 65vh;
    display: flex;
    align-items: center;
}

/* Analysis Hero Section */
.analysis-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.analysis-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    animation: fadeInUp 1s ease-out;
}

.analysis-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 16px;
    font-weight: 700;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 24px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.2s both;
    line-height: 1.5;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 32px 0;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.25);
    padding: 16px 20px;
    border-radius: 12px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    min-width: 140px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.stat:hover::before {
    opacity: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ffd700, #ff8c00, #ffa500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 6px;
    text-shadow: 0 2px 15px rgba(255, 215, 0, 0.5), 0 4px 20px rgba(255, 140, 0, 0.3);
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
}

.stat-label {
    font-size: 0.85rem;
    color: #ececec !important;
    line-height: 1.3;
    font-weight: 600;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8), 0 1px 4px rgba(0, 0, 0, 0.9), 0 0 8px rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
    opacity: 1;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin: 10px;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.3);
}

.cta-secondary {
    background: transparent;
    border: 2px solid white;
}

.cta-secondary:hover {
    background: white;
    color: #667eea;
}

/* Section Styles */
.section {
    padding: 60px 0;
    background: white;
}

.section:nth-child(even) {
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 48px;
    color: #2c3e50;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 2px;
}

/* Cards */
.card {
    background: #ffffff;
    border: 1px solid #e8ecf0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin: 16px 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.15);
    border-color: #d4e4ff;
}

.card:hover::before {
    opacity: 1;
}

.card-header {
    text-align: center;
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

/* Card content styling for better readability */
.card p {
    color: #4a5568;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.card ul {
    color: #4a5568;
    line-height: 1.6;
    font-size: 0.95rem;
}

.card li {
    margin-bottom: 6px;
    color: #4a5568;
}

/* Contact Section Styles */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin: 32px 0;
}

.contact-info-card,
.contact-form-card {
    background: #ffffff;
    border: 1px solid #e8ecf0;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-info-card:hover,
.contact-form-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.15);
    border-color: #d4e4ff;
}

.contact-header {
    text-align: center;
    margin-bottom: 24px;
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
    opacity: 0.8;
}

.contact-title {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 6px;
    font-weight: 600;
}

.contact-subtitle {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: #f8f9ff;
    border-radius: 12px;
    border: 1px solid #e8ecf0;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: #f0f4ff;
    border-color: #d4e4ff;
    transform: translateX(4px);
}

.contact-item-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
}

.contact-item-content {
    flex: 1;
}

.contact-item-content strong {
    display: block;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.contact-item-content span,
.contact-item-content a {
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.4;
    text-decoration: none;
}

.contact-item-content a:hover {
    color: #667eea;
    text-decoration: underline;
}

/* Contact Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    padding: 14px 24px;
}

.btn-icon {
    font-size: 1.1rem;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

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

.form-input.error {
    border-color: #e74c3c;
}

.form-error {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 5px;
}

.form-success {
    color: #27ae60;
    font-size: 0.9rem;
    margin-top: 5px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}

/* Upload Area */
.upload-area {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 3px dashed #dee2e6;
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 40px 0;
}

.upload-area:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea15, #764ba215);
}

.upload-area.dragover {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea25, #764ba225);
}

.upload-icon {
    font-size: 2.8rem;
    color: #667eea;
    margin-bottom: 16px;
    display: block;
    opacity: 0.9;
}

.upload-text {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 10px;
}

.upload-subtext {
    color: #adb5bd;
    font-size: 0.9rem;
}

.file-input {
    display: none;
}

/* Loading Spinner */
.loading {
    display: none;
    text-align: center;
    padding: 40px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* Enhanced Results Styling */
.enhanced-result {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9ff 100%);
    border: 1px solid #e1e8ff;
    border-radius: 20px;
    padding: 0;
    box-shadow: 
        0 20px 40px rgba(102, 126, 234, 0.1),
        0 8px 16px rgba(0, 0, 0, 0.05);
    margin: 30px 0;
    display: none;
    overflow: hidden;
    position: relative;
    animation: slideUpFadeIn 0.8s ease-out;
}

.enhanced-result::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes slideUpFadeIn {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Result Header Enhanced */
.result-header-enhanced {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.result-status-icon {
    font-size: 3rem;
    animation: pulse 2s infinite;
}

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

.result-title-section {
    flex: 1;
    text-align: center;
}

.result-title {
    font-size: 2.2rem;
    margin: 0 0 8px 0;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.result-subtitle {
    font-size: 1rem;
    margin: 0;
    opacity: 0.9;
    font-weight: 400;
}

.analysis-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.badge-text {
    background: rgba(255,255,255,0.2);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.badge-accuracy {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffd700;
}

/* Main Result Container */
.main-result-container {
    padding: 40px;
}

/* Result Visualization Container */
.result-visualization {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
}

/* Enhanced Result Circle Design */
.result-circle-enhanced {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: linear-gradient(145deg, #52c234, #4caf50);
    margin: 0 auto 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 20px 40px rgba(76, 175, 80, 0.3),
        inset 0 2px 10px rgba(255,255,255,0.2);
    animation: resultCircleEntry 1s ease-out 0.5s both;
    position: relative;
    overflow: hidden;
    border: 4px solid rgba(255,255,255,0.3);
}

.result-circle-enhanced.risk {
    background: linear-gradient(145deg, #f44336, #e57373);
    box-shadow: 
        0 20px 40px rgba(244, 67, 54, 0.3),
        inset 0 2px 10px rgba(255,255,255,0.2);
}

.result-movement-type {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    z-index: 1;
    position: relative;
    margin-bottom: 5px;
}

.result-classification {
    font-size: 2.2rem;
    font-weight: 900;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 1;
    position: relative;
    line-height: 1;
    margin-bottom: 8px;
}

/* Enhanced Score Meter */
.score-meter-container-enhanced {
    max-width: 450px;
    margin: 0 auto;
    text-align: center;
}

.score-meter-enhanced {
    margin: 20px 0;
    position: relative;
}

.score-track {
    background: #e0e0e0;
    height: 8px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
    margin: 15px 0;
}

.score-indicator {
    position: absolute;
    top: -8px;
    width: 6px;
    height: 24px;
    background: #ff9800;
    border-radius: 3px;
    z-index: 2;
    transition: left 2s ease-out;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.4);
}

.score-bar-enhanced {
    height: 100%;
    background: linear-gradient(90deg, #4caf50 0%, #ff9800 50%, #f44336 100%);
    border-radius: 10px;
    width: 0;
    transition: width 2s ease-out;
    position: relative;
}

.score-bar-enhanced::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: scoreBarShimmer 2s infinite;
}

.score-value-display {
    margin: 20px 0 10px 0;
}

.score-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    animation: scoreNumberPulse 2s ease-out;
}

@keyframes scoreNumberPulse {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.score-interpretation-enhanced {
    font-size: 1rem;
    color: #4caf50;
    font-weight: 600;
    font-style: italic;
    margin-top: 15px;
    text-align: center;
}

.score-interpretation-enhanced.risk {
    color: #f44336;
}

/* Additional Keyframe Animations */
@keyframes resultCircleEntry {
    from {
        opacity: 0;
        transform: scale(0.5) rotate(-180deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes scoreBarShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Modern UI Enhancements for Analyze Page */
.analysis-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.analysis-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    animation: float 20s ease-in-out infinite;
}

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

.analysis-hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    animation: slideInFromTop 1s ease-out;
}

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

/* Modern Analysis Section */
.analysis-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    position: relative;
}

.analysis-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(120, 219, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Modern Upload Area */
.upload-area {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 2px dashed #667eea;
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(102, 126, 234, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.6s;
}

.upload-area:hover::before {
    left: 100%;
}

.upload-area:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 15px 40px rgba(102, 126, 234, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border-color: #764ba2;
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #667eea;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.upload-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.upload-subtext {
    color: #7f8c8d;
    font-size: 0.95rem;
}

/* Modern Login Banner */
.login-info-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    padding: 20px;
    margin: 30px 0;
    border: 1px solid rgba(102, 126, 234, 0.2);
    box-shadow: 
        0 8px 32px rgba(102, 126, 234, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    animation: slideInFromLeft 0.8s ease-out;
}

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

.info-card-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.info-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.info-text {
    flex: 1;
    min-width: 250px;
}

.info-text h4 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-weight: 600;
}

.info-text p {
    margin: 0;
    color: #7f8c8d;
    line-height: 1.5;
}

.info-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.info-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #bdc3c7;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.info-close:hover {
    background: rgba(189, 195, 199, 0.2);
    color: #7f8c8d;
}

/* Modern Buttons */
.btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

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

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

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

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 20px;
}

.btn-secondary {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    box-shadow: 0 4px 15px rgba(149, 165, 166, 0.3);
}

/* Modern Typography for Analysis Page */
.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    animation: slideInFromTop 1s ease-out;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.hero-description {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(255,255,255,0.95);
    max-width: 700px;
    margin: 0 auto 40px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    font-weight: 500;
    line-height: 1.7;
    animation: slideInFromBottom 1s ease-out 0.3s both;
}

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

/* Enhanced File Input Styling */
.file-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Modern Container Spacing */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Enhanced Section Spacing */
.section {
    position: relative;
    z-index: 1;
}

/* Enhanced Loading State Animation */
.fade-in-animation {
    animation: fadeInScale 0.5s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Loading with Modern Design */
.loading {
    display: none;
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    margin: 30px 0;
    box-shadow: 
        0 8px 32px rgba(102, 126, 234, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(102, 126, 234, 0.1);
}
@media (max-width: 768px) {
    .result-circle-enhanced {
        width: 180px;
        height: 180px;
    }
    
    .result-classification {
        font-size: 1.8rem;
    }
    
    .result-movement-type {
        font-size: 1rem;
    }
    
    .score-meter-container-enhanced {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .score-number {
        font-size: 1.5rem;
    }
}

/* Enhanced Technical Details */
.technical-details-enhanced {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.technical-details-enhanced h4 {
    color: #2c3e50;
    margin: 0 0 25px 0;
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.detail-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.detail-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.detail-content .detail-value {
    font-size: 1.8rem;
    font-weight: 900;
    color: #667eea;
    margin-bottom: 5px;
    display: block;
}

.detail-content .detail-label {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
    display: block;
}

.detail-content .detail-description {
    font-size: 0.8rem;
    color: #7f8c8d;
    font-style: italic;
}

/* Analysis Summary */
.analysis-summary {
    background: linear-gradient(145deg, #e8f4f8, #f0f8ff);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #d4e7ed;
}

.analysis-summary h4 {
    color: #2c3e50;
    margin: 0 0 20px 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.summary-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #34495e;
    margin-bottom: 20px;
}

.analysis-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.metric-item {
    flex: 1;
    min-width: 150px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #d4e7ed;
}

.metric-label {
    font-weight: 600;
    color: #2c3e50;
}

.metric-value {
    font-weight: 700;
    color: #667eea;
}

.quality-good {
    color: #27ae60 !important;
}

/* Medical Disclaimer */
.medical-disclaimer {
    background: linear-gradient(145deg, #fef7e7, #fff8e1);
    border: 1px solid #f5d76e;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 30px;
}

.disclaimer-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.disclaimer-content {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #8b6914;
}

/* Enhanced Action Buttons */
.result-actions-enhanced {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    padding: 0 20px 30px;
}

.btn-enhanced {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

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

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

.btn-enhanced:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn-save {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
}

.btn-download {
    background: linear-gradient(135deg, #3498db, #5dade2);
    color: white;
}

.btn-login {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-new {
    background: linear-gradient(135deg, #95a5a6, #bdc3c7);
    color: white;
}

.btn-icon {
    font-size: 1.1rem;
}

.btn-text {
    font-weight: 600;
}

/* Additional Animation Classes */
.quality-medium {
    color: #f39c12 !important;
}

.quality-low {
    color: #e67e22 !important;
}

/* Enhanced Fade In Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered Animation Delays */
.detail-card:nth-child(1) { animation-delay: 0s; }
.detail-card:nth-child(2) { animation-delay: 0.1s; }
.detail-card:nth-child(3) { animation-delay: 0.2s; }
.detail-card:nth-child(4) { animation-delay: 0.3s; }

/* Enhanced Loading States */
.loading-enhanced {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px;
    background: linear-gradient(145deg, #f8f9ff, #ffffff);
    border-radius: 15px;
    margin: 20px 0;
}

.loading-enhanced .spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loading-enhanced .loading-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.loading-enhanced .loading-progress {
    width: 200px;
    height: 4px;
    background: #ecf0f1;
    border-radius: 2px;
    overflow: hidden;
}

.loading-enhanced .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
    animation: progressFill 3s ease-in-out infinite;
}

@keyframes progressFill {
    0% { width: 0; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* Success/Error State Animations */
.result-success {
    animation: successPulse 0.6s ease-out;
}

.result-error {
    animation: errorShake 0.6s ease-out;
}

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

@keyframes errorShake {
    0%, 20%, 40%, 60%, 80% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
}

/* Hover Effects for Interactive Elements */
.interactive-hover {
    transition: all 0.3s ease;
}

.interactive-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

/* Score Bar Enhancements */
.score-bar.animate-in {
    animation: scoreBarFill 2s ease-out;
}

@keyframes scoreBarFill {
    from { width: 0; }
}

/* Result Circle Risk State */
.result-circle.risk {
    background: linear-gradient(145deg, #e74c3c, #ec7063) !important;
    box-shadow: 
        0 15px 30px rgba(231, 76, 60, 0.3),
        inset 0 2px 10px rgba(255,255,255,0.2) !important;
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .enhanced-result,
    .result-circle,
    .detail-card,
    .btn-enhanced {
        animation: none !important;
        transition: none !important;
    }
    
    .score-bar {
        transition: width 0.3s ease !important;
    }
}

/* Print Styles for Reports */
@media print {
    .result-actions-enhanced,
    .btn-enhanced,
    header,
    footer {
        display: none !important;
    }
    
    .enhanced-result {
        box-shadow: none !important;
        border: 2px solid #2c3e50 !important;
        page-break-inside: avoid;
    }
    
    .medical-disclaimer {
        border: 2px solid #f39c12 !important;
        background: #fff !important;
        color: #000 !important;
    }
}
@media (max-width: 768px) {
    .result-header-enhanced {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .result-title {
        font-size: 1.8rem;
    }
    
    .result-circle {
        width: 150px;
        height: 150px;
    }
    
    .result-score-large {
        font-size: 2rem;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .result-actions-enhanced {
        flex-direction: column;
    }
    
    .btn-enhanced {
        justify-content: center;
        width: 100%;
    }
    
    .analysis-metrics {
        flex-direction: column;
        gap: 10px;
    }
    
    .main-result-container {
        padding: 20px;
    }
}

/* Tables */
.table-container {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin: 30px 0;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.table td {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
}

.table tr:hover {
    background: #f8f9fa;
}

.status-badge {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-healthy {
    background: #d4edda;
    color: #155724;
}

.status-risk {
    background: #f8d7da;
    color: #721c24;
}

/* Charts */
.chart-container {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.chart-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.chart-wrapper {
    position: relative;
    height: 400px;
    width: 100%;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 60px 0 20px;
    border-radius: 30px 30px 0 0;
    margin-top: -1px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: #3498db;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    text-align: center;
    color: #bdc3c7;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #34495e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    transition: all 0.3s;
}

.social-links a:hover {
    background: #3498db;
    transform: translateY(-2px);
}

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

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

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: fadeInUp 0.3s ease-out;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #adb5bd;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #667eea;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu {
        display: block;
    }
    
    /* Avatar dropdown adjustments for mobile */
    .avatar-dropdown {
        right: -10px;
        min-width: 200px;
    }
    
    .user-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    /* Contact responsive */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .contact-info-card,
    .contact-form-card {
        padding: 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .header-main .container {
        flex-wrap: wrap;
    }
    
    .header-contact {
        flex-direction: column;
        gap: 10px;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .result-details {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .result-details {
        grid-template-columns: 1fr;
    }
    
    .hero-stats .stat {
        padding: 15px;
    }
    
    .upload-area {
        padding: 40px 20px;
    }
}

/* Comprehensive Mobile Responsiveness for Analyze Page */
@media (max-width: 768px) {
    /* Hero Section Mobile */
    .analysis-hero {
        padding: 60px 0;
    }
    
    .analysis-hero h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .analysis-hero p {
        font-size: 1rem;
        padding: 0 20px;
        line-height: 1.6;
    }
    
    /* Upload Area Mobile */
    .upload-area {
        padding: 40px 20px;
        margin: 20px 0;
        border-radius: 15px;
    }
    
    .upload-icon {
        font-size: 3rem;
        margin-bottom: 15px;
    }
    
    .upload-text {
        font-size: 1.1rem;
    }
    
    .upload-subtext {
        font-size: 0.9rem;
    }
    
    /* Login Banner Mobile */
    .info-card-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .info-text {
        min-width: auto;
    }
    
    .info-actions {
        justify-content: center;
        width: 100%;
    }
    
    /* Enhanced Results Mobile */
    .result-header-enhanced {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 15px;
    }
    
    .result-title {
        font-size: 1.8rem;
    }
    
    .result-subtitle {
        font-size: 0.9rem;
    }
    
    .result-circle-enhanced {
        width: 180px;
        height: 180px;
        margin-bottom: 30px;
    }
    
    .result-classification {
        font-size: 1.8rem;
    }
    
    .result-movement-type {
        font-size: 1rem;
    }
    
    .score-meter-container-enhanced {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .score-number {
        font-size: 1.5rem;
    }
    
    .score-label {
        font-size: 1rem;
    }
    
    .score-interpretation-enhanced {
        font-size: 0.9rem;
    }
    
    /* Technical Details Mobile */
    .details-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .detail-card {
        padding: 15px;
    }
    
    .detail-icon {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
    
    .detail-content .detail-value {
        font-size: 1.5rem;
    }
    
    .detail-content .detail-label {
        font-size: 0.9rem;
    }
    
    .detail-content .detail-description {
        font-size: 0.75rem;
    }
    
    /* Summary and Analysis Mobile */
    .technical-details-enhanced,
    .analysis-summary {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .technical-details-enhanced h4,
    .analysis-summary h4 {
        font-size: 1.2rem;
    }
    
    .summary-text {
        font-size: 0.95rem;
    }
    
    .analysis-metrics {
        flex-direction: column;
        gap: 10px;
    }
    
    .metric-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        padding: 8px 0;
    }
    
    /* Action Buttons Mobile */
    .result-actions-enhanced {
        flex-direction: column;
        padding: 0 20px 20px;
        gap: 12px;
    }
    
    .btn-enhanced {
        justify-content: center;
        width: 100%;
        padding: 15px 20px;
    }
    
    /* Medical Disclaimer Mobile */
    .medical-disclaimer {
        padding: 15px;
        margin-bottom: 20px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .disclaimer-content {
        font-size: 0.85rem;
    }
    
    /* Main Container Mobile */
    .main-result-container {
        padding: 20px;
    }
    
    /* Button Adjustments */
    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    
    .btn-sm {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

/* Tablet Responsiveness */
@media (min-width: 769px) and (max-width: 1024px) {
    .analysis-hero h1 {
        font-size: 2.5rem;
    }
    
    .upload-area {
        padding: 50px 30px;
    }
    
    .result-circle-enhanced {
        width: 200px;
        height: 200px;
    }
    
    .details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .main-result-container {
        padding: 30px;
    }
}

/* Large Screen Optimizations */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .analysis-hero h1 {
        font-size: 3.2rem;
    }
    
    .upload-area {
        padding: 80px 60px;
    }
    
    .result-circle-enhanced {
        width: 250px;
        height: 250px;
    }
    
    .result-classification {
        font-size: 2.5rem;
    }
}

/* Micro-interactions and Polish */
.upload-area:active {
    transform: translateY(-3px) scale(0.98);
}

.btn:active {
    transform: translateY(0) scale(0.95);
}

.detail-card:active {
    transform: translateY(-2px) scale(0.98);
}

/* Enhanced Focus States */
.btn:focus,
.upload-area:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Smooth Transitions */
* {
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

/* Enhanced Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a42a0);
}

/* Selection Styling */
::selection {
    background: rgba(102, 126, 234, 0.2);
    color: #2c3e50;
}

/* Print Optimizations */
@media print {
    .analysis-hero,
    .login-info-card,
    .result-actions-enhanced,
    .btn,
    .upload-area {
        display: none !important;
    }
    
    .enhanced-result {
        box-shadow: none !important;
        border: 2px solid #2c3e50 !important;
        page-break-inside: avoid;
    }
    
    .medical-disclaimer {
        border: 2px solid #f39c12 !important;
        background: #fff !important;
        color: #000 !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* Dark Mode Support (Future Enhancement) */
@media (prefers-color-scheme: dark) {
    .upload-area,
    .login-info-card,
    .enhanced-result {
        background: rgba(45, 55, 72, 0.95);
        color: #e2e8f0;
        border-color: rgba(102, 126, 234, 0.3);
    }
    
    .upload-text,
    .info-text h4 {
        color: #e2e8f0;
    }
    
    .upload-subtext,
    .info-text p {
        color: #a0aec0;
    }
}

/* Mobile Touch Optimizations */
@media (max-width: 768px) {
    /* Better touch targets */
    .btn,
    .btn-enhanced {
        min-height: 44px;
        touch-action: manipulation;
    }
    
    .upload-area {
        min-height: 120px;
        touch-action: manipulation;
    }
    
    .info-close {
        min-width: 44px;
        min-height: 44px;
        touch-action: manipulation;
    }
    
    /* Better tap highlights */
    .btn,
    .upload-area,
    .detail-card {
        -webkit-tap-highlight-color: rgba(102, 126, 234, 0.2);
    }
    
    /* Smoother scrolling */
    body {
        -webkit-overflow-scrolling: touch;
    }
}

/* Performance optimizations */
.upload-area,
.result-circle-enhanced,
.btn,
.detail-card {
    will-change: transform;
    transform: translateZ(0);
}

/* ========================================
   ENHANCED DASHBOARD & PROFILE STYLES
   ======================================== */

/* Enhanced Table Styles */
.table-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.table-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.table-filters {
    display: flex;
    gap: 15px;
    align-items: center;
}

.filter-select {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.filter-select option {
    background: #2c3e50;
    color: white;
}

.table-wrapper {
    position: relative;
    max-height: 600px;
    overflow-y: auto;
}

.enhanced-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.enhanced-table thead th {
    background: #f8f9fa;
    padding: 20px 15px;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 10;
}

.th-content {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.enhanced-table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid #f1f3f4;
}

.enhanced-table tbody tr:hover {
    background: #f8f9ff;
    transform: scale(1.01);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.table-cell {
    padding: 20px 15px;
    vertical-align: middle;
}

.cell-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cell-main {
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.95rem;
}

.cell-sub {
    font-size: 0.8rem;
    color: #6c757d;
}

.file-icon {
    margin-right: 8px;
    font-size: 1.1rem;
}

.score-value {
    font-family: 'Consolas', monospace;
    font-weight: 600;
    color: #495057;
}

.score-bar-mini {
    width: 60px;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 4px;
}

.score-fill-mini {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #ffc107, #dc3545);
    transition: width 0.3s ease;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 2px solid transparent;
}

.status-badge.status-healthy {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border-color: #b8dacc;
}

.status-badge.status-risk {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border-color: #f1b0b7;
}

.windows-count {
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
}

.windows-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.action-buttons-mini {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.btn-mini {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-mini.btn-primary {
    background: #007bff;
    color: white;
}

.btn-mini.btn-primary:hover {
    background: #0056b3;
    transform: scale(1.1);
}

.btn-mini.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-mini.btn-secondary:hover {
    background: #545b62;
    transform: scale(1.1);
}

.btn-mini.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-mini.btn-danger:hover {
    background: #c82333;
    transform: scale(1.1);
}

.table-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.table-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.table-pagination {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pagination-btn {
    background: #fff;
    border: 1px solid #dee2e6;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: #e9ecef;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Enhanced Profile Styles */
.profile-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.profile-header-enhanced {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 25px;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    color: white;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
}

.profile-avatar-large {
    position: relative;
}

.avatar-ring {
    width: 120px;
    height: 120px;
    background: conic-gradient(from 0deg, #ffd700, #ff6b6b, #4ecdc4, #45b7d1, #ffd700);
    border-radius: 50%;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rotate 10s linear infinite;
}

.avatar-inner {
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.avatar-status {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid white;
}

.avatar-status.online {
    background: #28a745;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.profile-info-main {
    flex: 1;
}

.profile-name {
    font-size: 2.2rem;
    margin: 0 0 8px 0;
    font-weight: 700;
}

.profile-email {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0 0 15px 0;
}

.profile-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.badge-expert {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.badge-healthy {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.profile-actions-quick {
    display: flex;
    gap: 12px;
}

.btn-profile {
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-profile.btn-primary {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-profile.btn-primary:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.btn-profile.btn-secondary {
    background: rgba(0,0,0,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card-profile {
    background: white;
    border-radius: 20px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-left: 4px solid;
}

.stat-card-profile:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.stat-card-profile.primary {
    border-left-color: #007bff;
}

.stat-card-profile.success {
    border-left-color: #28a745;
}

.stat-card-profile.info {
    border-left-color: #17a2b8;
}

.stat-card-profile.warning {
    border-left-color: #ffc107;
}

.stat-icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.stat-label {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.stat-trend {
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 12px;
    display: inline-block;
}

.stat-trend.positive {
    background: #d4edda;
    color: #155724;
}

.stat-trend.neutral {
    background: #e2e3e5;
    color: #383d41;
}

.stat-trend.negative {
    background: #f8d7da;
    color: #721c24;
}

.profile-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.info-card-enhanced {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.info-card-enhanced:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.card-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e9ecef;
}

.card-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.card-content {
    padding: 25px;
}

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: #e9ecef;
}

.info-icon {
    font-size: 1.3rem;
    width: 40px;
    text-align: center;
}

.info-details {
    flex: 1;
}

.info-details label {
    display: block;
    font-size: 0.8rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.info-details value {
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.95rem;
}

.stats-overview {
    display: flex;
    justify-content: space-around;
    margin-bottom: 25px;
}

.overview-item {
    text-align: center;
}

.overview-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.overview-label {
    font-size: 0.8rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.overview-divider {
    width: 1px;
    background: #e9ecef;
    margin: 10px 0;
}

.progress-section {
    margin-top: 20px;
}

.progress-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.progress-item label {
    font-size: 0.9rem;
    color: #495057;
    min-width: 100px;
}

.progress-bar-profile {
    flex: 1;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

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

.progress-value {
    font-weight: 600;
    color: #495057;
    min-width: 40px;
    text-align: right;
}

.profile-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.action-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.action-card:hover {
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,123,255,0.15);
}

.action-card.danger:hover {
    border-color: #dc3545;
    box-shadow: 0 8px 25px rgba(220,53,69,0.15);
}

.action-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.action-content {
    flex: 1;
}

.action-content h4 {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.action-content p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.action-arrow {
    font-size: 1.2rem;
    color: #6c757d;
    transition: all 0.3s ease;
}

.action-card:hover .action-arrow {
    transform: translateX(5px);
    color: #007bff;
}

.action-card.danger:hover .action-arrow {
    color: #dc3545;
}

/* Additional Button Styles */
.btn-outline {
    background: transparent;
    border: 2px solid #dee2e6;
    color: #6c757d;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-outline:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    color: #495057;
}

/* Enhanced Responsive Design for Home Page */
/* Tablet Responsiveness (768px and below) */
@media (max-width: 768px) {
    /* Hero section responsive */
    .hero {
        padding: 60px 0 40px;
        min-height: 50vh;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        gap: 16px;
        margin: 24px 0;
    }
    
    .stat {
        min-width: 120px;
        padding: 14px 16px;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    /* Section adjustments */
    .section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 32px;
    }
    
    /* Card responsive */
    .card {
        padding: 20px;
        margin: 12px 0;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 24px 0;
    }
    
    .card-title {
        font-size: 1.2rem;
    }
    
    .upload-icon {
        font-size: 2.4rem;
    }
    
    /* Contact section responsive */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .contact-info-card,
    .contact-form-card {
        padding: 24px;
    }
    
    .contact-item {
        padding: 12px;
        gap: 12px;
    }
    
    .contact-item-icon {
        width: 28px;
        height: 28px;
        font-size: 1.1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    /* Navigation mobile */
    .nav-menu {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
    
    /* Header adjustments */
    .header-top {
        display: none;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    /* Button adjustments */
    .cta-button {
        padding: 12px 24px;
        font-size: 1rem;
        margin: 8px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Preloader tablet responsive */
    .logo-loader .logo-icon {
        width: 45px;
        height: 45px;
        margin-right: 10px;
        font-size: 1.4rem;
    }
    
    .logo-loader .logo-text {
        font-size: 1.8rem;
    }
    
    .spinner-container {
        width: 70px;
        height: 70px;
        margin: 0 auto 25px;
    }
    
    .spinner-modern {
        width: 50px;
        height: 50px;
        top: 10px;
        left: 10px;
    }
    
    .spinner-ring {
        width: 70px;
        height: 70px;
    }
    
    .loading-text {
        font-size: 1.1rem;
    }
    
    .loading-subtext {
        font-size: 0.85rem;
    }
    
    /* Analyze page tablet responsive */
    .analysis-hero {
        padding: 60px 0;
    }
    
    .analysis-hero h1 {
        font-size: 2.2rem;
    }
    
    .analysis-hero p {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .upload-area {
        padding: 40px 20px;
        margin: 30px 0;
    }
    
    .upload-icon {
        font-size: 3rem;
    }
    
    .upload-text {
        font-size: 1.1rem;
    }
    
    .upload-subtext {
        font-size: 0.85rem;
    }
    
    .login-info-card {
        padding: 16px;
        margin: 20px 0;
    }
    
    .info-card-content {
        gap: 15px;
    }
    
    .info-icon {
        font-size: 2rem;
    }
    
    .info-actions {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }
    
    .result-header-enhanced {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .result-title {
        font-size: 1.8rem;
    }
    
    .result-subtitle {
        font-size: 0.9rem;
    }
    
    .result-status-icon {
        font-size: 2.5rem;
    }
    
    .result-circle-enhanced {
        width: 180px;
        height: 180px;
    }
    
    .result-movement-type {
        font-size: 0.8rem;
    }
    
    .result-classification {
        font-size: 1.5rem;
    }
    
    .main-result-container {
        padding: 30px 20px;
    }
    
    .details-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 15px;
    }
    
    .detail-card {
        padding: 15px;
    }
    
    .detail-value {
        font-size: 1.3rem;
    }
    
    .result-actions-enhanced {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-enhanced {
        width: 100%;
        justify-content: center;
    }
}

/* Mobile phones (480px and below) */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    /* Hero ultra compact for small screens */
    .hero {
        padding: 40px 0 30px;
        min-height: 40vh;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin: 20px 0;
    }
    
    .stat {
        min-width: 200px;
        padding: 12px 16px;
    }
    
    .stat-number {
        font-size: 1.4rem;
    }
    
    .cta-button {
        display: block;
        width: 100%;
        max-width: 280px;
        margin: 8px auto;
        padding: 14px 20px;
    }
    
    /* Section ultra compact */
    .section {
        padding: 30px 0;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 24px;
    }
    
    .card {
        padding: 16px;
        margin: 8px 0;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .card p, .card ul {
        font-size: 0.9rem;
    }
    
    /* Contact ultra compact */
    .contact-wrapper {
        gap: 16px;
    }
    
    .contact-info-card,
    .contact-form-card {
        padding: 16px;
    }
    
    .contact-title {
        font-size: 1.2rem;
    }
    
    .contact-item {
        padding: 10px;
        gap: 10px;
        flex-direction: column;
        text-align: center;
    }
    
    .contact-item-icon {
        width: 24px;
        height: 24px;
        font-size: 1rem;
    }
    
    /* Form adjustments */
    .form-input {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .contact-submit {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    /* Header ultra compact */
    .header-main {
        padding: 10px 0;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .logo-icon {
        width: 28px;
        height: 28px;
        margin-right: 8px;
    }
    
    .header-actions {
        gap: 8px;
    }
    
    .login-btn, .signup-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    /* Preloader responsive */
    .logo-loader {
        margin-bottom: 20px;
    }
    
    .logo-loader .logo-icon {
        width: 40px;
        height: 40px;
        margin-right: 10px;
        font-size: 1.3rem;
    }
    
    .logo-loader .logo-text {
        font-size: 1.6rem;
    }
    
    .spinner-container {
        width: 60px;
        height: 60px;
        margin: 0 auto 20px;
    }
    
    .spinner-modern {
        width: 45px;
        height: 45px;
        top: 7.5px;
        left: 7.5px;
    }
    
    .spinner-ring {
        width: 60px;
        height: 60px;
    }
    
    .loading-text {
        font-size: 1rem;
    }
    
    .loading-subtext {
        font-size: 0.8rem;
    }
    
    /* Analyze page mobile responsive */
    .analysis-hero {
        padding: 40px 0;
    }
    
    .analysis-hero h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .analysis-hero p {
        font-size: 0.9rem;
        padding: 0 10px;
        line-height: 1.5;
    }
    
    .upload-area {
        padding: 30px 15px;
        margin: 20px 0;
        border-radius: 15px;
    }
    
    .upload-icon {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .upload-text {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .upload-subtext {
        font-size: 0.8rem;
    }
    
    .login-info-card {
        padding: 12px;
        margin: 15px 0;
        border-radius: 12px;
    }
    
    .info-card-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .info-icon {
        font-size: 1.8rem;
    }
    
    .info-text {
        min-width: auto;
    }
    
    .info-text h4 {
        font-size: 1rem;
    }
    
    .info-text p {
        font-size: 0.85rem;
    }
    
    .info-actions {
        width: 100%;
        gap: 6px;
    }
    
    .info-close {
        position: absolute;
        top: 8px;
        right: 8px;
    }
    
    .result-header-enhanced {
        padding: 15px;
        gap: 10px;
    }
    
    .result-title {
        font-size: 1.5rem;
    }
    
    .result-subtitle {
        font-size: 0.8rem;
    }
    
    .result-status-icon {
        font-size: 2rem;
    }
    
    .analysis-badge {
        display: none; /* Hide on very small screens */
    }
    
    .result-circle-enhanced {
        width: 150px;
        height: 150px;
        margin-bottom: 20px;
    }
    
    .result-movement-type {
        font-size: 0.7rem;
    }
    
    .result-classification {
        font-size: 1.2rem;
    }
    
    .result-confidence {
        font-size: 0.7rem;
    }
    
    .main-result-container {
        padding: 20px 15px;
    }
    
    .score-meter-container-enhanced {
        margin: 20px 0;
    }
    
    .score-label {
        font-size: 0.9rem;
    }
    
    .score-number {
        font-size: 1.5rem;
    }
    
    .score-interpretation-enhanced {
        font-size: 0.8rem;
    }
    
    .technical-details-enhanced h4 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .details-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .detail-card {
        padding: 12px;
        border-radius: 8px;
    }
    
    .detail-icon {
        font-size: 1.2rem;
    }
    
    .detail-value {
        font-size: 1.1rem;
    }
    
    .detail-label {
        font-size: 0.7rem;
    }
    
    .detail-description {
        font-size: 0.65rem;
    }
    
    .analysis-summary h4 {
        font-size: 1.1rem;
    }
    
    .summary-text {
        font-size: 0.85rem;
    }
    
    .analysis-metrics {
        flex-direction: column;
        gap: 8px;
    }
    
    .metric-item {
        font-size: 0.8rem;
    }
    
    .medical-disclaimer {
        padding: 12px;
        border-radius: 8px;
    }
    
    .disclaimer-content {
        font-size: 0.8rem;
    }
    
    .result-actions-enhanced {
        padding: 15px;
        gap: 8px;
    }
    
    .btn-enhanced {
        padding: 10px 15px;
        font-size: 0.85rem;
        border-radius: 8px;
    }
    
    .btn-icon {
        font-size: 0.9rem;
    }
    
    .btn-text {
        font-size: 0.85rem;
    }
}   

/* Large screens optimization - avoiding "giant" elements */
@media (min-width: 1200px) {
    .hero h1 {
        font-size: 3rem; /* Moderate size, not giant */
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        max-width: 800px;
    }
    
    .section-title {
        font-size: 2.4rem; /* Compact but readable */
    }
    
    .card {
        padding: 28px; /* Moderate padding */
    }
    
    .stat {
        min-width: 160px;
        padding: 18px 24px;
    }
}

.btn-outline:hover {
    border-color: #007bff;
    color: #007bff;
    background: rgba(0,123,255,0.1);
}

.btn-danger-outline {
    background: transparent;
    border: 2px solid #dc3545;
    color: #dc3545;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-danger-outline:hover {
    background: #dc3545;
    color: white;
}

/* Responsive Design for Enhanced Components */
@media (max-width: 768px) {
    .profile-header-enhanced {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 30px 20px;
    }
    
    .profile-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .table-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .table-actions {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .enhanced-table {
        font-size: 0.9rem;
    }
    
    .table-cell {
        padding: 15px 10px;
    }
    
    .action-buttons-mini {
        flex-direction: column;
        gap: 5px;
    }
    
    .btn-mini {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
}