/* 
 * Bansur Hospital & Nursing College - Premium Medical Theme
 * Fonts: Outfit (Headings), Inter (Body)
 */

:root {
    --primary-blue: #0A3D62; /* Deep Navy Medical Blue */
    --secondary-blue: #3C6382;
    --accent-blue: #0A79DF; /* Vibrant Medical Blue */
    --accent-gradient: linear-gradient(135deg, #0A79DF 0%, #1E90FF 100%);
    --bg-white: #FFFFFF;
    --bg-light: #F4F7F9; /* Very light blue-gray for medical feel */
    --text-dark: #2C3A47;
    --text-muted: #636E72;
    --success-green: #20BF6B;
    --danger-red: #e74c3c;
    --glass-bg: rgba(255, 255, 255, 0.85);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

.font-outfit { font-family: 'Outfit', sans-serif; }
.font-inter { font-family: 'Inter', sans-serif; }

.text-primary-blue { color: var(--primary-blue) !important; }
.text-accent-blue { color: var(--accent-blue) !important; }
.bg-primary-blue { background-color: var(--primary-blue) !important; }
.bg-light-blue { background-color: var(--bg-light) !important; }

/* Global Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}
.heartbeat-loader {
    font-size: 80px;
    color: var(--danger-red);
    animation: heartbeat 1.2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}
@keyframes heartbeat {
    0% { transform: scale(0.95); }
    5% { transform: scale(1.1); }
    39% { transform: scale(0.85); }
    45% { transform: scale(1); }
    60% { transform: scale(0.95); }
    100% { transform: scale(0.9); }
}

/* Glassmorphism Navbar */
.navbar-custom {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.navbar-custom .navbar-nav .nav-link {
    color: var(--primary-blue);
    font-weight: 600;
    padding: 10px 15px;
    position: relative;
    transition: color 0.3s;
}

.navbar-custom .navbar-nav .nav-link:hover,
.navbar-custom .navbar-nav .nav-link.active {
    color: var(--accent-blue);
}

.navbar-custom .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background: var(--accent-gradient);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease;
    border-radius: 3px 3px 0 0;
}

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

/* Dropdown styling */
.dropdown-menu {
    border: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 10px 0;
}
.dropdown-item {
    font-weight: 500;
    color: var(--text-dark);
    padding: 10px 20px;
    transition: all 0.2s;
}
.dropdown-item:hover {
    background-color: rgba(10, 121, 223, 0.1);
    color: var(--accent-blue);
    padding-left: 25px;
}

/* Custom Buttons */
.btn-medical {
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(10, 121, 223, 0.3);
}
.btn-medical:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 121, 223, 0.5);
}

.btn-outline-medical {
    border: 2px solid var(--accent-blue);
    color: var(--accent-blue);
    font-weight: 600;
    background: transparent;
    transition: all 0.3s ease;
}
.btn-outline-medical:hover {
    background: var(--accent-gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(10, 121, 223, 0.4);
}

.page-content {
    margin-top: 86px; 
}

/* Hero Carousel */
.hero-carousel .carousel-item {
    height: 85vh;
    background-color: #000;
}
.hero-carousel .carousel-item img {
    height: 100%;
    object-fit: cover;
    opacity: 0.6; /* Dark overlay for text readability */
    transition: transform 10s ease;
}
.hero-carousel .carousel-item.active img {
    transform: scale(1.05);
}
.hero-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 80%;
    z-index: 10;
}

/* Feature Cards Premium */
.feature-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: relative;
    z-index: 1;
}
.feature-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--accent-gradient);
    z-index: -1;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s ease;
    border-radius: 20px;
}
.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(10, 121, 223, 0.2);
}
.feature-card:hover::before {
    transform: scaleY(1);
}
.feature-card:hover * {
    color: #fff !important;
}

.feature-icon {
    font-size: 3.5rem;
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
    transition: color 0.4s ease;
}

/* Generic Headers for Inner Pages */
.inner-page-header {
    background: linear-gradient(rgba(10, 61, 98, 0.85), rgba(10, 61, 98, 0.85)), url('https://images.unsplash.com/photo-1581056771107-24ca5f033842?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
    padding: 100px 0 60px 0;
    color: white;
    text-align: center;
    border-bottom: 5px solid var(--accent-blue);
}

/* Premium Forms */
.form-control, .form-select {
    border-radius: 10px;
    padding: 12px 15px;
    border: 1px solid #dcdde1;
    transition: all 0.3s ease;
    background-color: #fcfcfc;
}
.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 4px rgba(10, 121, 223, 0.15);
    border-color: var(--accent-blue);
    background-color: #fff;
}

/* Beautiful DataTables Customization */
table.dataTable {
    border-collapse: collapse !important;
}
table.dataTable thead th {
    background-color: var(--primary-blue);
    color: #fff;
    border: none;
    padding: 15px;
}
table.dataTable tbody tr {
    transition: all 0.2s ease;
}
table.dataTable tbody tr:hover {
    background-color: rgba(10, 121, 223, 0.05) !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--accent-gradient) !important;
    color: white !important;
    border: none;
    border-radius: 8px;
}

/* Footer */
.footer {
    background-color: var(--primary-blue);
    color: #fff;
}
.footer-links a {
    color: #c8d6e5;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
    padding-bottom: 8px;
}
.footer-links a:hover {
    color: var(--accent-blue);
    padding-left: 8px;
}

/* Quick Links Custom Cards */
.ql-card {
    border-radius: 16px;
    padding: 20px 10px;
    color: white;
    text-align: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 140px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.ql-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    color: white;
}
.ql-icon-wrapper {
    background: white;
    border-radius: 50%;
    width: 60px;
    height: 40px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}
.ql-icon-wrapper i {
    font-size: 1.4rem;
    color: #333;
}
.ql-text {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    font-family: var(--font-outfit);
}
.ql-bg-1 { background: linear-gradient(135deg, #10E1D9, #02CDD9); }
.ql-bg-2 { background: linear-gradient(135deg, #FF89A8, #FF6F91); }
.ql-bg-3 { background: linear-gradient(135deg, #2AC983, #21B171); }
.ql-bg-4 { background: linear-gradient(135deg, #7F22FF, #6800FF); }
.ql-bg-5 { background: linear-gradient(135deg, #FA7E26, #EF3F46); }
.ql-bg-6 { background: linear-gradient(135deg, #6C7DF5, #8580FF); }
.ql-bg-7 { background: linear-gradient(135deg, #FF5E89, #FF2B6D); }
