/* Frontend CSS for MEG Healthcare Platform */

/* Custom color scheme */
:root {
    --primary-color: #e91e63;
    --secondary-color: #2196f3;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --danger-color: #f44336;
    --info-color: #00bcd4;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

/* Override Bootstrap primary color */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #c2185b;
    border-color: #c2185b;
}

.text-primary {
    color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* Typography */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    margin-bottom: 2rem;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ad1457 100%);
    display: flex;
    align-items: center;
}

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

/* Stats Section */
.stats-section {
    background-color: #f8f9fa;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.stat-icon i {
    font-size: 3rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0.5rem 0;
    color: var(--dark-color);
}

.stat-label {
    font-size: 1.1rem;
    color: #6c757d;
    margin: 0;
}

/* Login Section */
.login-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.login-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.login-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.login-card.border-danger {
    border-color: var(--danger-color) !important;
    border-width: 2px;
}

.login-icon i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.card-text {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Button Styles */
.btn {
    border-radius: 10px;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

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

/* Service Cards */
.service-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* About Section */
.about-section {
    background-color: #f8f9fa;
}

.feature-list .feature-item {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.feature-list .feature-item i {
    font-size: 1.2rem;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, var(--dark-color) 0%, #212529 100%);
}

.contact-info i {
    color: var(--primary-color);
}

/* Navigation */
.navbar {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

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

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, #212529 100%);
    position: relative;
    z-index: 10;
}

footer a {
    transition: color 0.3s ease;
    color: #adb5bd !important;
}

footer a:hover {
    color: var(--primary-color) !important;
    text-decoration: none !important;
}

footer .text-muted {
    color: #6c757d !important;
}

footer h5, footer h6 {
    color: #ffffff !important;
}

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

footer .list-unstyled li a {
    display: inline-block;
    padding: 0.25rem 0;
    text-decoration: none !important;
    opacity: 0.85;
    transition: all 0.3s ease;
}

footer .list-unstyled li a:hover {
    opacity: 1;
    transform: translateX(5px);
}

/* Ensure footer always appears at bottom */
footer {
    margin-top: auto;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 4rem 0;
    }
    
    .login-icon i {
        font-size: 3rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-icon i {
        font-size: 2.5rem;
    }
}

/* Alert Styles */
.alert {
    border-radius: 15px;
    border: none;
}

.alert-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #0d47a1;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Utilities */
.shadow-soft {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

.border-radius-lg {
    border-radius: 15px !important;
}

.text-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), #ad1457);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}