/* Custom CSS for LIS AI Demo */

/* Global Styles */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --success-color: #10dc60;
    --warning-color: #ffce00;
    --danger-color: #f04141;
    --info-color: #50c8ff;
    --dark-color: #2d3748;
}

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

/* Navigation Enhancements */
.navbar-brand {
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    transform: translateY(-1px);
    color: #fff !important;
}

/* Card Enhancements */
.card {
    border-radius: 15px;
    overflow: hidden;
}

.feature-card {
    background: white;
    border: 1px solid rgba(0,0,0,0.08);
}

.stats-card {
    border-radius: 20px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

/* Buttons */
.btn {
    border-radius: 25px;
    font-weight: 600;
    padding: 10px 25px;
    transition: all 0.3s ease;
}

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

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::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="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-section > .container {
    position: relative;
    z-index: 1;
}

/* Analysis Interface Styles */
.analysis-form {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 2rem;
}

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

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.form-control {
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Results Display */
.result-card {
    border-radius: 15px;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
}

.result-header {
    background: linear-gradient(45deg, #f8fafc, #e2e8f0);
    border-radius: 10px 10px 0 0;
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.confidence-badge {
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
}

.confidence-high {
    background: linear-gradient(45deg, var(--success-color), #22c55e);
    color: white;
}

.confidence-moderate {
    background: linear-gradient(45deg, var(--warning-color), #f59e0b);
    color: white;
}

.confidence-low {
    background: linear-gradient(45deg, var(--info-color), #3b82f6);
    color: white;
}

/* Alert Styles */
.alert {
    border-radius: 12px;
    border: none;
    font-weight: 500;
}

.alert-danger {
    background: linear-gradient(45deg, rgba(240, 65, 65, 0.1), rgba(248, 113, 113, 0.1));
    border-left: 4px solid var(--danger-color);
    color: #dc2626;
}

.alert-warning {
    background: linear-gradient(45deg, rgba(255, 206, 0, 0.1), rgba(251, 191, 36, 0.1));
    border-left: 4px solid var(--warning-color);
    color: #d97706;
}

.alert-info {
    background: linear-gradient(45deg, rgba(80, 200, 255, 0.1), rgba(59, 130, 246, 0.1));
    border-left: 4px solid var(--info-color);
    color: #2563eb;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

/* Data Visualization */
.chart-container {
    position: relative;
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
}

.chart-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
    text-align: center;
}

/* Case Studies */
.case-card {
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 15px;
    overflow: hidden;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.case-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1.5rem;
}

.case-tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 15px;
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Monitoring Dashboard */
.metric-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-top: 4px solid var(--primary-color);
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0.5rem 0;
}

.metric-label {
    color: #64748b;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .analysis-form {
        padding: 1.5rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

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

/* Utility Classes */
.text-gradient {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-lg {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(45deg, var(--primary-color), var(--secondary-color)) 1;
}

/* Patient-Friendly Report Styles */
.patient-friendly-report {
    border-left: 5px solid var(--success-color);
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
}

.patient-friendly-report .result-header {
    background: linear-gradient(135deg, var(--success-color), #22c55e);
    color: white;
}

.patient-section {
    padding: 1rem;
    margin-bottom: 1rem;
    background: white;
    border-radius: 12px;
    border-left: 3px solid #e5e7eb;
    transition: all 0.3s ease;
}

.patient-section:hover {
    border-left-color: var(--success-color);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
}

.patient-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 0;
}

.patient-list {
    font-size: 1rem;
    line-height: 1.6;
    color: #4b5563;
    padding-left: 1.2rem;
}

.patient-list li {
    margin-bottom: 0.5rem;
}

.patient-section h6 {
    font-weight: 600;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.patient-section .bi {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

/* Health Report Styles */
.health-report {
    border-left: 5px solid var(--info-color);
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.health-report .result-header.bg-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
}

.health-section {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.health-section:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.health-section h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f1f5f9;
}

.metric-card {
    border-radius: 12px;
    border: none;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.metric-label {
    color: #64748b;
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.risk-item {
    border-radius: 12px;
    transition: all 0.3s ease;
}

.risk-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.risk-recommendations ul {
    padding-left: 1rem;
    margin-top: 0.5rem;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.timeline-badge {
    position: absolute;
    left: -2rem;
    top: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.timeline-content {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 3px solid #e2e8f0;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    border-left-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* Progress bars for health metrics */
.progress {
    height: 8px;
    border-radius: 10px;
    background-color: #f1f5f9;
}

.progress-bar {
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* Status indicators */
.bg-success { background-color: var(--success-color) !important; }
.bg-warning { background-color: var(--warning-color) !important; }  
.bg-danger { background-color: var(--danger-color) !important; }
.bg-info { background-color: var(--info-color) !important; }

.text-success { color: var(--success-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-danger { color: var(--danger-color) !important; }
.text-info { color: var(--info-color) !important; }

/* Health score gauge container */
#healthScoreGauge {
    max-width: 100%;
    height: auto;
}