/* Be Fit Physio Centre - Premium Healthcare Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #27477D;
  --primary-dark: #1C3560;
  --secondary: #3DB4BB;
  --secondary-light: #EBF8F9;
  --accent: #00C896;
  --accent-light: #E6FAF4;
  --bg: #F8FBFF;
  --light-gray: #EEF5FA;
  --card-bg: #FFFFFF;
  --text: #2B2B2B;
  --text-muted: #6C757D;
  --border-color: #E2E8F0;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --shadow-sm: 0 4px 12px rgba(39, 71, 125, 0.05);
  --shadow-md: 0 8px 24px rgba(39, 71, 125, 0.08);
  --shadow-lg: 0 16px 36px rgba(39, 71, 125, 0.12);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 50px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary);
  font-weight: 700;
}

/* Smart Responsive Container System for All Screen Resolutions */
.container,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
  width: 92% !important;
  max-width: 1320px !important;
}

@media (max-width: 768px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl,
  .container-xxl {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}


/* Glassmorphism Header & Cards */
.glass-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.top-bar {
  background: var(--primary);
  color: #ffffff;
  font-size: 0.875rem;
  padding: 6px 0;
}

.top-bar a {
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.2s;
}

.top-bar a:hover {
  opacity: 0.85;
}

/* Navbar */
.navbar-brand img {
  height: 48px;
  object-fit: contain;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--primary) !important;
  padding: 8px 16px !important;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--secondary) !important;
  background: var(--secondary-light);
}

.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff !important;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: var(--radius-pill);
  padding: 10px 24px;
  border: none;
  box-shadow: 0 4px 14px rgba(39, 71, 125, 0.3);
  transition: all 0.3s ease;
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(39, 71, 125, 0.4);
}

.btn-secondary-custom {
  background: linear-gradient(135deg, var(--secondary) 0%, #2A9CA3 100%);
  color: #ffffff !important;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: var(--radius-pill);
  padding: 10px 24px;
  border: none;
  box-shadow: 0 4px 14px rgba(61, 180, 187, 0.3);
  transition: all 0.3s ease;
}

.btn-secondary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(61, 180, 187, 0.4);
}

.btn-accent-custom {
  background: linear-gradient(135deg, var(--accent) 0%, #009E77 100%);
  color: #ffffff !important;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: var(--radius-pill);
  padding: 10px 24px;
  border: none;
  box-shadow: 0 4px 14px rgba(0, 200, 150, 0.3);
  transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, rgba(248, 251, 255, 0.95) 0%, rgba(238, 245, 250, 0.95) 100%), url('../images/hero.png');
  background-size: cover;
  background-position: center;
  padding: 80px 0 100px;
  position: relative;
}

.hero-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.badge-tag {
  background: var(--secondary-light);
  color: var(--secondary);
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  display: inline-block;
  margin-bottom: 16px;
}

/* Cards & Components */
.feature-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary);
}

.icon-box {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--secondary-light);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.physio-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.physio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.physio-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  background: var(--light-gray);
}

/* Stepper for Home Visit Status */
.stepper-wrapper {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 30px;
}

.stepper-wrapper::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--border-color);
  z-index: 1;
}

.stepper-item {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.stepper-item .step-counter {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.stepper-item.completed .step-counter {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.stepper-item.active .step-counter {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #ffffff;
  box-shadow: 0 0 0 4px var(--secondary-light);
}

.stepper-item .step-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}

.stepper-item.active .step-name, .stepper-item.completed .step-name {
  color: var(--primary);
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  text-decoration: none;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  color: #ffffff;
  transform: scale(1.1);
}

/* Footer */
footer {
  background: var(--primary);
  color: #E2E8F0;
  padding-top: 60px;
  padding-bottom: 24px;
}

footer h5 {
  color: #ffffff;
  margin-bottom: 20px;
}

footer a {
  color: #CBD5E1;
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover {
  color: var(--secondary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
  padding-top: 20px;
  font-size: 0.875rem;
}

/* ==========================================================================
   Admin Left Collapsible Hover Sidebar & Dashboard System
   ========================================================================== */

body.admin-body {
  padding-left: 64px;
  transition: padding-left 0.3s ease;
  background-color: #f1f5f9;
}

.admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 64px;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  z-index: 1060;
  overflow-x: hidden;
  overflow-y: auto;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.admin-sidebar::-webkit-scrollbar {
  width: 4px;
}
.admin-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.admin-sidebar:hover {
  width: 260px;
  box-shadow: 12px 0 40px rgba(0, 0, 0, 0.45);
}

.sidebar-header {
  padding: 16px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.8);
}

.sidebar-brand-icon {
  min-width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #38bdf8 0%, #3b82f6 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.4);
}

.sidebar-brand-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.admin-sidebar:hover .sidebar-brand-text {
  opacity: 1;
  transform: translateX(0);
}

.sidebar-nav {
  padding: 12px 8px;
  list-style: none;
  margin: 0;
}

.sidebar-category {
  padding: 14px 12px 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #64748b;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.admin-sidebar:hover .sidebar-category {
  opacity: 1;
}

.sidebar-item {
  margin-bottom: 4px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  color: #94a3b8;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.25s ease;
}

.sidebar-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(2px);
}

.sidebar-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25) 0%, rgba(59, 130, 246, 0.25) 100%);
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.2);
}

.sidebar-icon-box {
  min-width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: transform 0.2s ease;
}

.sidebar-link:hover .sidebar-icon-box {
  transform: scale(1.15);
}

.sidebar-text {
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.admin-sidebar:hover .sidebar-text {
  opacity: 1;
  transform: translateX(0);
}

/* Dashboard Vibrant Cards */
.admin-hero-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  color: #ffffff;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
  position: relative;
  overflow: hidden;
}

.admin-hero-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
  border-radius: 50%;
}

.stat-card-gradient-1 {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #ffffff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 25px rgba(2, 132, 199, 0.3);
  transition: all 0.3s ease;
}

.stat-card-gradient-2 {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
  transition: all 0.3s ease;
}

.stat-card-gradient-3 {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  color: #ffffff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 25px rgba(124, 58, 237, 0.3);
  transition: all 0.3s ease;
}

.stat-card-gradient-4 {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
  color: #ffffff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 25px rgba(234, 88, 12, 0.3);
  transition: all 0.3s ease;
}

.stat-card-gradient-1:hover,
.stat-card-gradient-2:hover,
.stat-card-gradient-3:hover,
.stat-card-gradient-4:hover {
  transform: translateY(-6px);
}

.quick-tile {
  background: #ffffff;
  border-radius: 20px;
  padding: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  text-decoration: none !important;
  display: block;
}

.quick-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  border-color: #38bdf8;
}

/* ==========================================================================
   Admin Responsive Breakpoint Rules
   ========================================================================== */
@media (max-width: 768px) {
  body.admin-body {
    padding-left: 0 !important;
  }
  
  .admin-sidebar {
    width: 0 !important;
    box-shadow: none;
  }
  
  .admin-sidebar:hover {
    width: 260px !important;
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.5) !important;
  }

  .admin-hero-banner {
    padding: 20px;
    border-radius: 16px;
  }
}

/* ==========================================================================
   Compact Auth Pages (Login & Register)
   ========================================================================== */
.auth-container {
  max-width: 450px !important;
  width: 100% !important;
  margin: 0 auto !important;
}

.btn-white {
  background-color: #ffffff;
  color: #1e293b;
  transition: all 0.2s ease;
}
/* ==========================================================================
   Comprehensive Global Responsiveness Utilities
   ========================================================================== */
img {
  max-width: 100%;
  height: auto;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 576px) {
  .display-4 { font-size: 2.2rem !important; }
  .display-5 { font-size: 1.8rem !important; }
  .display-6 { font-size: 1.5rem !important; }
  
  .navbar-brand img {
    height: 38px !important;
  }
  
  .hero-section {
    padding: 40px 0 60px !important;
  }
}

/* ==========================================================================
   Patient Left Collapsible Hover Sidebar & Designer Dashboard
   ========================================================================== */

body.patient-body {
  padding-left: 64px;
  transition: padding-left 0.3s ease;
  background-color: #f8fafc;
}

.patient-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 64px;
  background: linear-gradient(180deg, #064e3b 0%, #0f172a 100%);
  z-index: 1060;
  overflow-x: hidden;
  overflow-y: auto;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.patient-sidebar::-webkit-scrollbar {
  width: 4px;
}
.patient-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.patient-sidebar:hover {
  width: 260px;
  box-shadow: 12px 0 40px rgba(0, 0, 0, 0.45);
}

.patient-sidebar:hover .sidebar-brand-text,
.patient-sidebar:hover .sidebar-category,
.patient-sidebar:hover .sidebar-text {
  opacity: 1;
  transform: translateX(0);
}

.patient-hero-banner {
  background: linear-gradient(135deg, #065f46 0%, #047857 50%, #0f766e 100%);
  color: #ffffff;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 12px 30px rgba(6, 95, 70, 0.2);
  position: relative;
  overflow: hidden;
}

.patient-hero-banner::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
  border-radius: 50%;
}

@media (max-width: 768px) {
  body.patient-body {
    padding-left: 0 !important;
  }
  
  .patient-sidebar {
    width: 0 !important;
    box-shadow: none;
  }
  
  .patient-sidebar:hover {
    width: 260px !important;
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.5) !important;
  }

  .patient-hero-banner {
    padding: 20px;
    border-radius: 16px;
  }
}





