/* Health Theme CSS for ExternMatch */

/* Base styles */
body {
    background-color: #ffffff !important;
    color: #333333 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
}

/* Health-focused Color Variables */
:root {
    --bg-white: #ffffff;
    --bg-light-blue: #f0f9ff;
    --bg-light-green: #f0fdfa;
    --bg-primary: #2563eb;
    --bg-secondary: #059669;
    --text-dark: #333333;
    --text-gray-600: #757575;
    --text-gray-500: #757575;
    --primary-blue: #2563eb;
    --primary-blue-light: #0ea5e9;
    --primary-green: #059669;
    --primary-green-light: #10b981;
    --accent-teal: #0891b2;
    --accent-teal-light: #06b6d4;
    --border-gray-200: #e5e7eb;
    --border-blue: #93c5fd;
    --border-green: #86efac;
}

/* Background utilities */
.bg-white { background-color: var(--bg-white) !important; }
.bg-light-blue { background-color: var(--bg-light-blue) !important; }
.bg-light-green { background-color: var(--bg-light-green) !important; }
.bg-primary { background-color: var(--bg-primary) !important; }
.bg-secondary { background-color: var(--bg-secondary) !important; }
.bg-primary-blue { background-color: var(--primary-blue) !important; }
.bg-primary-green { background-color: var(--primary-green) !important; }
.bg-accent-teal { background-color: var(--accent-teal) !important; }

/* Text utilities */
.text-dark { color: var(--text-dark) !important; }
.text-gray-600 { color: var(--text-gray-600) !important; }
.text-gray-500 { color: var(--text-gray-500) !important; }
.text-white { color: #ffffff !important; }
.text-primary-blue { color: var(--primary-blue) !important; }
.text-primary-blue-light { color: var(--primary-blue-light) !important; }
.text-primary-green { color: var(--primary-green) !important; }
.text-primary-green-light { color: var(--primary-green-light) !important; }
.text-accent-teal { color: var(--accent-teal) !important; }

/* Border utilities */
.border-gray-200 { border-color: var(--border-gray-200) !important; }
.border-blue { border-color: var(--border-blue) !important; }
.border-green { border-color: var(--border-green) !important; }
.border-primary-blue { border-color: var(--primary-blue) !important; }
.border-primary-green { border-color: var(--primary-green) !important; }

/* Hero section */
.hero-section-dark {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.8) 0%, rgba(59, 130, 246, 0.6) 100%);
    position: relative;
    padding: 80px 0 !important;
    min-height: 80vh;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/static/media/medical-students.jpg');
    background-size: cover;
    background-position: center 20%; /* Adjusts to show upper portion with faces */
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: 1;
}

/* Alternative positioning options - uncomment to try different crops */
/*
.hero-bg-overlay {
    background-position: center 15%; // Even higher crop to focus on faces
}

.hero-bg-overlay {
    background-position: center 30%; // Lower crop if faces are too high
}

.hero-bg-overlay {
    background-position: 50% 25%; // Fine-tune horizontal and vertical position
}
*/

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

/* Button styles */
.btn-gradient-primary {
    background: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    color: #ffffff !important;
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-gradient-primary:hover {
    background: var(--primary-blue-light);
    border-color: var(--primary-blue-light);
    transform: scale(1.05);
    color: #ffffff !important;
    box-shadow: 0 10px 20px rgba(3, 105, 161, 0.3);
}

.btn-outline-white {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue) !important;
    background: transparent;
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline-white:hover {
    background: var(--primary-blue);
    color: #ffffff !important;
    transform: scale(1.05);
}

/* Tab functionality */
.btn-tab {
    background: transparent;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-tab:not(.active):hover {
    color: var(--primary-blue) !important;
}

.tab-content-panel {
    display: none;
}

.tab-content-panel.active {
    display: block;
}

/* Icon boxes */
.icon-box {
    flex-shrink: 0;
}

/* Hover effects */
.hover-shadow-blue:hover {
    box-shadow: 0 10px 20px rgba(3, 105, 161, 0.2);
    transition: all 0.3s ease;
}

.hover-shadow-green:hover {
    box-shadow: 0 10px 20px rgba(5, 150, 105, 0.2);
    transition: all 0.3s ease;
}

/* Rounded utilities */
.rounded-2 { border-radius: 8px !important; }
.rounded-3 { border-radius: 12px !important; }

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

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
    opacity: 0;
}

.animation-delay-200 {
    animation-delay: 0.2s;
}

.animation-delay-400 {
    animation-delay: 0.4s;
}

.animation-delay-600 {
    animation-delay: 0.6s;
}

/* Navbar glass effect */
.navbar {
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.3s ease;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(37, 99, 235, 0.02);
    pointer-events: none;
    z-index: -1;
}

.navbar-brand {
    color: var(--primary-blue) !important;
    font-size: 1.75rem;
    font-weight: 700;
    text-shadow: none;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    color: var(--primary-green) !important;
    transform: scale(1.02);
}

.nav-link {
    color: var(--primary-blue) !important;
    font-weight: 500;
    text-shadow: none;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-blue) !important;
    transform: translateY(-1px);
}

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

.nav-link:hover::after {
    width: 80%;
}

/* Enhanced glass effect on scroll */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-blue);
}

/* Glass effect for buttons in navbar */
.navbar .btn-gradient-primary {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--primary-blue);
    box-shadow: 0 4px 15px rgba(3, 105, 161, 0.2);
}

.navbar .btn-gradient-primary:hover {
    box-shadow: 0 6px 20px rgba(3, 105, 161, 0.4);
    border-color: var(--primary-blue-light);
}

/* Footer health theme */
footer {
    background: var(--primary-green) !important;
    color: white !important;
}

footer h3, footer h5, footer h6 {
    color: white !important;
}

footer a {
    color: rgba(255, 255, 255, 0.8) !important;
}

footer a:hover {
    color: white !important;
}

/* Form styling for health theme */
.form-control {
    background-color: var(--bg-white) !important;
    border: 1px solid var(--border-gray-200) !important;
    color: var(--text-dark) !important;
}

.form-control:focus {
    background-color: var(--bg-white) !important;
    border-color: var(--primary-blue) !important;
    color: var(--text-dark) !important;
    box-shadow: 0 0 0 0.2rem rgba(3, 105, 161, 0.25) !important;
}

.form-control::placeholder {
    color: var(--text-gray-500) !important;
}

.form-label {
    color: var(--text-dark) !important;
    font-weight: 500;
}

/* Card styling for health theme */
.card {
    background-color: var(--bg-white) !important;
    border: 1px solid var(--border-gray-200) !important;
    color: var(--text-dark) !important;
    box-shadow: 0 4px 6px -1px rgba(3, 105, 161, 0.1), 0 2px 4px -1px rgba(3, 105, 161, 0.06);
}

.card-body {
    color: var(--text-dark) !important;
}

/* Alert styling for health theme */
.alert-success {
    background-color: rgba(5, 150, 105, 0.1) !important;
    border-color: var(--primary-green) !important;
    color: var(--primary-green) !important;
}

/* Form sections styling */
.form-section {
    background: rgba(240, 249, 255, 0.3);
    border: 1px solid var(--border-gray-200);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.section-title {
    color: var(--primary-blue);
    border-bottom: 2px solid var(--primary-green);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.form-container {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 20px 25px -5px rgba(3, 105, 161, 0.1), 0 10px 10px -5px rgba(3, 105, 161, 0.04);
    margin: 2rem auto;
    max-width: 800px;
}

.main-title {
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.form-hint {
    color: var(--text-gray-500);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.required {
    color: var(--primary-green);
}

.error-message {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-actions {
    margin-top: 2rem;
    text-align: center;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 0.5rem;
}

.success-container {
    max-width: 600px;
    margin: 4rem auto;
    text-align: center;
    padding: 3rem;
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(3, 105, 161, 0.1), 0 10px 10px -5px rgba(3, 105, 161, 0.04);
}

.success-title {
    color: var(--primary-green);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.success-message {
    color: var(--text-dark);
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.success-submessage {
    color: var(--text-gray-600);
    margin-bottom: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section-dark {
        padding: 60px 0 !important;
    }
    
    .display-2 {
        font-size: 3rem;
    }
    
    .btn-tab {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .form-container {
        margin: 1rem;
        padding: 2rem;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
}

/* Utility spacing */
.space-y-5 > * + * {
    margin-top: 3rem;
}

/* Line height utilities */
.lh-base {
    line-height: 1.5 !important;
}

/* Width utilities */
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }

/* Border width utilities */
.border-4 {
    border-width: 4px !important;
}

/* Small text */
.small {
    font-size: 0.875rem;
}
