/* Healthcare Dashboard Styles */
:root {
  --primary-color: #0ea5e9;
  --secondary-color: #0d9488;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --info-color: #3b82f6;
  --light-color: #f8fafc;
  --dark-color: #1e293b;
  --sidebar-width: 280px;
  --sidebar-collapsed-width: 70px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--light-color);
  color: var(--dark-color);
  line-height: 1.6;
}

/* Sidebar Styles */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: var(--sidebar-width);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  z-index: 1000;
  transition: all 0.3s ease;
  overflow-y: auto;
}

.sidebar.collapsed {
  width: var(--sidebar-collapsed-width);
}

.sidebar-header {
  padding: 1.5rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.sidebar-header h4 {
  margin: 0;
  font-weight: 600;
  font-size: 1.2rem;
}

.sidebar-nav {
  list-style: none;
  padding: 1rem 0;
}

.sidebar-nav .nav-item {
  margin-bottom: 0.5rem;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.sidebar-nav .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border-left-color: var(--primary-color);
}

.sidebar-nav .nav-link.active {
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  border-left-color: var(--primary-color);
}

.sidebar-nav .nav-link i {
  width: 20px;
  margin-right: 0.75rem;
  text-align: center;
}

.sidebar.collapsed .nav-link span {
  display: none;
}

/* Main Content */
.main-content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  transition: all 0.3s ease;
}

.main-content.expanded {
  margin-left: var(--sidebar-collapsed-width);
}

/* Top Navbar */
.navbar {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 0.75rem 0;
}

.navbar .nav-link {
  color: var(--dark-color);
  font-weight: 500;
}

.navbar .dropdown-menu {
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

/* Page Title */
.page-title {
  color: var(--dark-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Statistics Cards */
.stat-card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
}

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

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.stat-card-primary::before {
  background: var(--primary-color);
}

.stat-card-success::before {
  background: var(--success-color);
}

.stat-card-info::before {
  background: var(--info-color);
}

.stat-card-warning::before {
  background: var(--warning-color);
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
}

.stat-card-primary .stat-icon {
  background: linear-gradient(135deg, var(--primary-color), #0284c7);
}

.stat-card-success .stat-icon {
  background: linear-gradient(135deg, var(--success-color), #059669);
}

.stat-card-info .stat-icon {
  background: linear-gradient(135deg, var(--info-color), #2563eb);
}

.stat-card-warning .stat-icon {
  background: linear-gradient(135deg, var(--warning-color), #d97706);
}

/* Activity Items */
.activity-item {
  display: flex;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  color: white;
  font-size: 0.875rem;
}

.activity-content {
  flex: 1;
}

.activity-content h6 {
  margin-bottom: 0.25rem;
  font-weight: 600;
  color: var(--dark-color);
}

.activity-content p {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

/* Cards */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.card-header {
  background-color: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  border-radius: 12px 12px 0 0 !important;
  padding: 1rem 1.5rem;
}

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

/* Buttons */
.btn {
  border-radius: 8px;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), #0284c7);
  border: none;
}

.btn-success {
  background: linear-gradient(135deg, var(--success-color), #059669);
  border: none;
}

.btn-info {
  background: linear-gradient(135deg, var(--info-color), #2563eb);
  border: none;
}

.btn-warning {
  background: linear-gradient(135deg, var(--warning-color), #d97706);
  border: none;
}

/* Alerts */
.alert {
  border: none;
  border-radius: 8px;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.show {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .main-content.expanded {
    margin-left: 0;
  }

  .stat-card {
    margin-bottom: 1rem;
  }
}

@media (max-width: 576px) {
  .container-fluid {
    padding: 1rem;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .stat-card .card-body {
    padding: 1rem;
  }

  .stat-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-30px);
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
}

/* Table Styles */
.table {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.table thead th {
  background-color: var(--primary-color);
  color: white;
  border: none;
  font-weight: 600;
  padding: 1rem;
}

.table tbody td {
  padding: 1rem;
  vertical-align: middle;
  border-color: #e2e8f0;
}

.table tbody tr:hover {
  background-color: #f8fafc;
}

/* Form Styles */
.form-control {
  border-radius: 8px;
  border: 1px solid #d1d5db;
  padding: 0.75rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.25);
}

.form-label {
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

/* Badge Styles */
.badge {
  font-weight: 500;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
}

.rounded-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: contain;       /* Shows full image without cropping */
  background-color: #f0f0f0; /* Optional: background filler */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 2px;              /* Optional border spacing */
  border: 2px solid #ddd;    /* Optional border style */
}

.nav-link img{
   width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: contain;       /* Shows full image without cropping */
  background-color: #f0f0f0; /* Optional: background filler */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 2px;              /* Optional border spacing */
  border: 2px solid #ddd;    /* Optional border style */ 
}

.appoinment-images{
   width: 80px;
  height: 80px;
  border-radius: 50% !important;
  object-fit: contain;       /* Shows full image without cropping */
  background-color: #f0f0f0; /* Optional: background filler */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 2px;              /* Optional border spacing */
  border: 2px solid #ddd;    /* Optional border style */ 
}