/* ==========================================================================
   GANESH MAN SINGH MEMORIAL HOSPITAL & RESEARCH CENTER
   Professional Design System & Styling Extensions
   ========================================================================== */

:root {
    --brand-primary: #0d9755;
    --brand-dark: #0a7a44;
    --brand-deep: #075c32;
    --brand-light: #ecfdf3;
    --brand-primary-glow: rgba(13, 151, 85, 0.25);
    
    --accent-red: #ef191a;
    --accent-red-dark: #c21213;
    --accent-light: #fdeaea;
    --accent-red-glow: rgba(239, 25, 26, 0.25);

    --slate-dark: #0f172a;
    --slate-body: #334155;
    --slate-muted: #64748b;
    --slate-light: #f8fafc;

    --card-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
    --card-shadow-hover: 0 20px 35px -8px rgba(13, 151, 85, 0.15), 0 8px 16px -4px rgba(15, 23, 42, 0.06);
    --glass-bg: rgba(255, 255, 255, 0.88);
    --glass-border: rgba(255, 255, 255, 0.7);
    --glass-shadow: 0 12px 40px -10px rgba(13, 151, 85, 0.12);
}

/* ==========================================================================
   GLOBAL TYPOGRAPHY & SMOOTH SCROLL
   ========================================================================== */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    color: var(--slate-dark);
    background-color: #f8fafc;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

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

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0d9755;
}

.scrollbar-none::-webkit-scrollbar {
    display: none;
}
.scrollbar-none {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ==========================================================================
   BUTTON SYSTEM REBUILD
   ========================================================================== */
.btn-primary {
    background: linear-gradient(135deg, #0d9755 0%, #075c32 100%) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-radius: 0.75rem !important;
    padding: 0.7rem 1.4rem !important;
    font-size: 0.875rem !important;
    letter-spacing: -0.01em !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 14px rgba(13, 151, 85, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0a7a44 0%, #054827 100%) !important;
    box-shadow: 0 8px 22px rgba(13, 151, 85, 0.45) !important;
    transform: translateY(-2px) !important;
}

.btn-primary:active {
    transform: translateY(0) scale(0.98) !important;
    box-shadow: 0 2px 8px rgba(13, 151, 85, 0.3) !important;
}

.btn-accent {
    background: linear-gradient(135deg, #ef191a 0%, #c21213 100%) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-radius: 0.75rem !important;
    padding: 0.7rem 1.4rem !important;
    font-size: 0.875rem !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 14px rgba(239, 25, 26, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.btn-accent:hover {
    background: linear-gradient(135deg, #d81415 0%, #a50e0f 100%) !important;
    box-shadow: 0 8px 22px rgba(239, 25, 26, 0.45) !important;
    transform: translateY(-2px) !important;
}

.btn-accent:active {
    transform: translateY(0) scale(0.98) !important;
}

.btn-outline {
    border: 1.5px solid #0d9755 !important;
    color: #075c32 !important;
    background-color: transparent !important;
    font-weight: 600 !important;
    border-radius: 0.75rem !important;
    padding: 0.65rem 1.35rem !important;
    font-size: 0.875rem !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.btn-outline:hover {
    background-color: #ecfdf3 !important;
    border-color: #0a7a44 !important;
    color: #054827 !important;
    transform: translateY(-1.5px) !important;
    box-shadow: 0 4px 14px rgba(13, 151, 85, 0.15) !important;
}

.btn-outline:active {
    transform: translateY(0) scale(0.98) !important;
}

/* ==========================================================================
   CARDS & ELEVATIONS
   ========================================================================== */
.card {
    background-color: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 1.25rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.card:hover {
    border-color: rgba(13, 151, 85, 0.4);
    box-shadow: var(--card-shadow-hover);
}

.glass-card {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: var(--glass-shadow) !important;
}

.lift {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.lift:hover {
    transform: translateY(-5px) !important;
    box-shadow: var(--card-shadow-hover) !important;
}

/* ==========================================================================
   HEADER & NAVIGATION ENHANCEMENTS
   ========================================================================== */
header {
    transition: all 0.3s ease;
}

.nav-link {
    position: relative;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2.5px;
    background: linear-gradient(90deg, #0d9755, #ef191a);
    border-radius: 9999px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

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

/* ==========================================================================
   TABULAR DIRECTORY & TABLES
   ========================================================================== */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

thead tr {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1.5px solid #e2e8f0;
}

thead th {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #475569;
    padding: 1rem 1.5rem;
}

tbody tr {
    transition: background-color 0.2s ease, transform 0.2s ease;
}

tbody tr:hover {
    background-color: rgba(236, 253, 243, 0.6) !important;
}

tbody td {
    padding: 1rem 1.5rem;
    vertical-align: middle;
}

/* ==========================================================================
   FORM INPUTS & SELECTS
   ========================================================================== */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="date"],
select,
textarea {
    border-radius: 0.75rem !important;
    border: 1.5px solid #cbd5e1 !important;
    padding: 0.65rem 1rem !important;
    font-size: 0.875rem !important;
    transition: all 0.2s ease !important;
    background-color: #ffffff !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
    border-color: #0d9755 !important;
    box-shadow: 0 0 0 3px rgba(13, 151, 85, 0.15) !important;
    outline: none !important;
}

/* ==========================================================================
   BADGES & EYEBROWS
   ========================================================================== */
.eyebrow {
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    color: #075c32 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.eyebrow::before {
    content: '' !important;
    width: 1.75rem !important;
    height: 3px !important;
    background: linear-gradient(90deg, #0d9755, #ef191a) !important;
    border-radius: 9999px !important;
    display: inline-block !important;
}

.badge-brand {
    background-color: #ecfdf3 !important;
    color: #075c32 !important;
    border: 1px solid rgba(13, 151, 85, 0.2) !important;
    border-radius: 9999px !important;
    padding: 0.25rem 0.75rem !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
}

.badge-accent {
    background-color: #fdeaea !important;
    color: #c21213 !important;
    border: 1px solid rgba(239, 25, 26, 0.2) !important;
    border-radius: 9999px !important;
    padding: 0.25rem 0.75rem !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
}

/* Hero Slide Transition Effects */
.hero-gradient-overlay {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.3) 0%, rgba(15, 23, 42, 0.8) 100%);
}
