/* ===== General Body Styling ===== */
body {
  min-height: 100vh;
  background: linear-gradient(135deg, #f0f9f0 0%, #e8f5e8 100%);
  transition: margin-left 0.3s ease;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', sans-serif;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

/* ===== Content Section ===== */
.content {
  flex: 1;
  margin-left: 250px;
  padding: 80px 20px 60px 20px;
  transition: margin-left 0.3s ease;
  background: linear-gradient(135deg, #f8fffe 0%, #f0f9f0 100%);
}

body.collapsed-sidebar .content {
  margin-left: 0;
}

.accordion-button::after {
    filter: brightness(0) invert(1);
}

/* ===== Sidebar ===== */
.sidebar {
  width: 250px;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(180deg, #1b5e20 0%, #2e7d32 100%);
  z-index: 1000;
  padding-top: 60px;
  transition: margin-left 0.3s ease;
  box-shadow: 2px 0 15px rgba(46, 125, 50, 0.15);
}

body.collapsed-sidebar .sidebar {
  margin-left: -250px;
}

.sidebar a {
  display: block;
  padding: 15px 20px;
  color: #e8f5e8;
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  font-weight: 500;
  position: relative;
}

.sidebar a:hover {
  background: linear-gradient(90deg, rgba(76, 175, 80, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
  border-left: 3px solid #81c784;
  color: #ffffff;
  transform: translateX(5px);
}

.sidebar a.active {
  background: linear-gradient(90deg, #4caf50 0%, #66bb6a 100%);
  border-left: 3px solid #81c784;
  color: #ffffff;
}

/* ===== Dashboard Card Styles ===== */
.card {
  border: none;
  border-radius: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.08);
  overflow: hidden;
  position: relative;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(46, 125, 50, 0.15);
}

/* Professional physiotherapy card colors */
.card.bg-primary {
  background: linear-gradient(180deg, #2e7d32 0%, #4caf50 100%) !important;
}

.card.bg-success {
  background: linear-gradient(180deg, #388e3c 0%, #66bb6a 100%) !important;
}

.card.bg-danger {
  background: linear-gradient(180deg, #d32f2f 0%, #f44336 100%) !important;
}

.card.bg-info {
  background: linear-gradient(180deg, #0288d1 0%, #03a9f4 100%) !important;
}

.card.bg-warning {
  background: linear-gradient(180deg, #f57c00 0%, #ff9800 100%) !important;
}

.card.bg-dark {
  background: linear-gradient(180deg, #424242 0%, #616161 100%) !important;
}

/* Card body enhancements */
.card-body {
  position: relative;
  z-index: 2;
}

.card-body::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transform: translate(20px, -20px);
  z-index: 1;
}

.card-body::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(-10px, 10px);
  z-index: 1;
}

/* ===== Navbar Styling ===== */
.navbar {
  z-index: 1100;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, #1b5e20 0%, #2e7d32 100%) !important;
  box-shadow: 0 2px 15px rgba(46, 125, 50, 0.15);
  border-bottom: 2px solid #4caf50;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.3rem;
  color: #ffffff !important;
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-brand i {
  color: #81c784;
  font-size: 1.5rem;
}

.navbar-nav .nav-link {
  color: #e8f5e8 !important;
  font-weight: 500;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: #ffffff !important;
  transform: translateY(-1px);
}

.btn-outline-light {
  border-color: #81c784;
  color: #81c784;
  transition: all 0.3s ease;
}

.btn-outline-light:hover {
  background-color: #4caf50;
  border-color: #4caf50;
  color: #ffffff;
}

/* Dropdown menu styling */
.dropdown-menu {
  border: none;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(46, 125, 50, 0.15);
  background: #ffffff;
}

.dropdown-item {
  padding: 10px 20px;
  transition: all 0.3s ease;
}

.dropdown-item:hover {
  background: #f1f8e9;
  color: #2e7d32;
}

.dropdown-item.text-danger:hover {
  background: #ffebee;
  color: #d32f2f;
}

/* ===== Footer Styling ===== */
.footer {
  background: linear-gradient(180deg, #1b5e20 0%, #2e7d32 100%);
  padding: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 -2px 15px rgba(46, 125, 50, 0.15);
  font-size: 14px;
  box-sizing: border-box;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: 250px;
  border-top: 2px solid #4caf50;
}

body.collapsed-sidebar .footer {
  margin-left: 0;
}

.footer .text-muted {
  color: #c8e6c9 !important;
  font-weight: 500;
}

/* Footer Brand Colors */
.bright {
  color: #81c784;
  font-weight: 800;
}

.code {
  color: #e8f5e8;
  font-weight: 800;
}

.footer .text-white {
  background: linear-gradient(180deg, #2e7d32 0%, #4caf50 100%) !important;
  border: 1px solid #66bb6a;
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.2);
  border-radius: 8px;
  padding: 8px 16px;
}

/* ===== Welcome Alert Styling ===== */
.alert-light {
  background: linear-gradient(135deg, #f1f8e9 0%, #e8f5e8 100%);
  border: 1px solid #66bb6a;
  border-left: 4px solid #2e7d32;
  color: #1b5e20;
  border-radius: 12px;
}

.alert-primary {
  background: linear-gradient(135deg, #e8f5e8 0%, #f1f8e9 100%);
  border: 1px solid #4caf50;
  color: #1b5e20;
  border-radius: 12px;
}

.alert-heading {
  color: #2e7d32;
  font-weight: 700;
}

/* ===== Dashboard Title ===== */
.container h2 {
  color: #2e7d32;
  position: relative;
  display: inline-block;
}

.container h2::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #2e7d32, #4caf50);
  border-radius: 2px;
}

/* ===== Professional Enhancement ===== */
.text-primary {
  color: #2e7d32 !important;
}

.text-success {
  color: #388e3c !important;
}

.text-info {
  color: #0288d1 !important;
}

.text-warning {
  color: #f57c00 !important;
}

.bg-light {
  background-color: #f8f9fa !important;
  border: 1px solid #e8f5e8;
}

.badge.bg-light {
  color: #2e7d32 !important;
  background-color: #e8f5e8 !important;
  border: 1px solid #c8e6c9;
}

/* ===== Avatar and Professional Elements ===== */
.avatar-sm {
  width: 40px;
  height: 40px;
}

.avatar-sm.bg-primary {
  background: linear-gradient(135deg, #2e7d32 0%, #4caf50 100%) !important;
}

.avatar-sm.bg-success {
  background: linear-gradient(135deg, #388e3c 0%, #66bb6a 100%) !important;
}

/* ===== Card Header Professional Styling ===== */
.card-header {
  background: rgba(46, 125, 50, 0.05) !important;
  border-bottom: 1px solid #e8f5e8 !important;
}

.card-header h6 {
  color: #2e7d32;
}

/* ===== Professional Icons Enhancement ===== */
.card-body i {
  transition: all 0.3s ease;
}

.card:hover .card-body i {
  transform: scale(1.05);
}

/* ===== Stats Card Professional Enhancement ===== */
.card.border-0.shadow-sm {
  border: 1px solid rgba(46, 125, 50, 0.1) !important;
}

.card.border-0.shadow-sm:hover {
  border: 1px solid rgba(46, 125, 50, 0.2) !important;
}

/* ===== Professional Button Styling ===== */
.btn-primary {
  background: linear-gradient(135deg, #2e7d32 0%, #4caf50 100%);
  border: none;
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.4);
}

.btn-success {
  background: linear-gradient(135deg, #388e3c 0%, #66bb6a 100%);
  border: none;
}

.btn-success:hover {
  background: linear-gradient(135deg, #2e7d32 0%, #4caf50 100%);
}

/* ===== Responsive Fixes ===== */
@media (max-width: 768px) {
  .content,
  .footer {
    margin-left: 0 !important;
  }
  
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  .card {
    margin-bottom: 20px;
  }
}