/* ===== ROOT VARIABLES ===== */
:root {
  --primary-color: #4da8da;
  --primary-dark: #2c5f7d;
  --secondary-color: #667eea;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --info-color: #3b82f6;

  --light-bg: #f8fafc;
  --light-card: #ffffff;
  --light-border: #e5e7eb;
  --text-dark: #1e293b;
  --text-muted: #64748b;

  --sidebar-width: 280px;
  --topbar-height: 70px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* ===== GLOBAL STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--light-bg);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== DASHBOARD WRAPPER ===== */
.dashboard-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: var(--sidebar-width);
  background: white;
  border-right: 1px solid var(--light-border);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: 1000;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--light-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
}

.brand-logo i {
  font-size: 1.5rem;
}

.sidebar-toggle {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Sidebar Navigation */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem 0;
}

.sidebar-nav::-webkit-scrollbar {
  width: 5px;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: var(--light-border);
  border-radius: 10px;
}

.nav-section {
  margin-bottom: 2rem;
}

.nav-section-title {
  padding: 0 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  font-weight: 500;
}

.nav-link i {
  width: 20px;
  font-size: 1.1rem;
  opacity: 0.8;
}

.nav-link span {
  flex: 1;
}

.nav-link .badge {
  background: var(--danger-color);
  color: white;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 50px;
  font-weight: 600;
}

.nav-link:hover {
  color: var(--primary-color);
  background: rgba(77, 168, 218, 0.08);
}

.nav-link.active {
  color: var(--primary-color);
  background: linear-gradient(90deg, rgba(77, 168, 218, 0.15), transparent);
  font-weight: 600;
}

.nav-link.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary-color);
  border-radius: 0 4px 4px 0;
}

/* Submenu */
.has-submenu {
  cursor: pointer;
}

.submenu-arrow {
  margin-left: auto;
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.submenu-arrow.rotated {
  transform: rotate(180deg);
}

.submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  background: rgba(0, 0, 0, 0.02);
}

.submenu li a {
  padding: 0.5rem 1.5rem 0.5rem 3.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.submenu li a i {
  font-size: 0.9rem;
}

.submenu li a:hover {
  color: var(--primary-color);
  background: rgba(77, 168, 218, 0.08);
}

/* Sidebar Footer */
.sidebar-footer {
  border-top: 1px solid var(--light-border);
  padding: 1rem 0;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.footer-link i {
  width: 20px;
}

.footer-link:hover {
  color: var(--primary-color);
  background: rgba(77, 168, 218, 0.08);
}

.footer-link.logout:hover {
  color: var(--danger-color);
  background: rgba(239, 68, 68, 0.08);
}

/* ===== MAIN CONTENT ===== */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===== TOPBAR ===== */
.topbar {
  height: var(--topbar-height);
  background: white;
  border-bottom: 1px solid var(--light-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.menu-toggle {
  background: var(--light-bg);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-dark);
  transition: all 0.3s ease;
}

.menu-toggle:hover {
  background: var(--light-border);
}

.breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
}

.breadcrumb-item {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumb-item a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb-item a:hover {
  color: var(--primary-color);
}

.breadcrumb-item.active {
  color: var(--text-dark);
  font-weight: 500;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box i {
  position: absolute;
  left: 1rem;
  color: var(--text-muted);
}

.search-box input {
  padding: 0.5rem 1rem 0.5rem 2.75rem;
  border: 1px solid var(--light-border);
  border-radius: 50px;
  width: 300px;
  background: var(--light-bg);
  transition: all 0.3s ease;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(77, 168, 218, 0.1);
  background: white;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.action-btn {
  position: relative;
  background: var(--light-bg);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-dark);
  transition: all 0.3s ease;
}

.action-btn:hover {
  background: var(--light-border);
  color: var(--primary-color);
}

.notification-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--danger-color);
  color: white;
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  border-radius: 50px;
  font-weight: 600;
  min-width: 18px;
  text-align: center;
}

.user-avatar {
  background: transparent;
  border: 2px solid var(--light-border);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-avatar:hover {
  border-color: var(--primary-color);
}

/* ===== CONTENT CONTAINER ===== */
.content-container {
  flex: 1;
  padding: 2rem;
}

/* ===== DASHBOARD CONTENT ===== */
.dashboard-content {
  max-width: 1600px;
  margin: 0 auto;
}

/* Welcome Section */
.welcome-section {
  margin-bottom: 2rem;
}

.dashboard-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.text-gradient {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dashboard-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.btn-primary-custom {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ===== STAT CARDS ===== */
.stat-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--light-border);
  transition: all 0.3s ease;
  height: 100%;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.stat-card-body {
  display: flex;
  gap: 1.5rem;
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: white;
  flex-shrink: 0;
}

.stat-card-blue .stat-icon {
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.stat-card-green .stat-icon {
  background: linear-gradient(135deg, #10b981, #059669);
}

.stat-card-orange .stat-icon {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.stat-card-purple .stat-icon {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.stat-content {
  flex: 1;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.stat-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stat-change {
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.stat-change.positive {
  color: var(--success-color);
}

.stat-change.negative {
  color: var(--danger-color);
}

.stat-period {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== CONTENT CARDS ===== */
.content-card {
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--light-border);
  overflow: hidden;
}

.card-header-custom {
  padding: 1.5rem;
  border-bottom: 1px solid var(--light-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
  display: flex;
  align-items: center;
}

.view-all-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.view-all-link:hover {
  color: var(--primary-dark);
}

.card-body-custom {
  padding: 1.5rem;
}

/* ===== MODERN TABLE ===== */
.table-responsive {
  overflow-x: auto;
}

.modern-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.modern-table thead th {
  background: var(--light-bg);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 1rem;
  text-align: left;
  border-bottom: 2px solid var(--light-border);
}

.modern-table tbody tr {
  transition: all 0.3s ease;
}

.modern-table tbody tr:hover {
  background: var(--light-bg);
}

.modern-table tbody td {
  padding: 1rem;
  border-bottom: 1px solid var(--light-border);
  vertical-align: middle;
}

/* Patient Info */
.patient-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.patient-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
}

.patient-name {
  font-weight: 600;
  color: var(--text-dark);
}

.patient-contact {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Location Badge */
.location-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
}

.location-mombasa {
  background: rgba(77, 168, 218, 0.1);
  color: var(--primary-color);
}

.location-kilifi {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
}

.location-kwale {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning-color);
}

.location-mariakani {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

/* DateTime Info */
.datetime-info .date {
  font-weight: 500;
  color: var(--text-dark);
}

.datetime-info .time {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Status Badge */
.status-badge {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: capitalize;
}

.status-confirmed {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
}

.status-pending {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning-color);
}

.status-completed {
  background: rgba(59, 130, 246, 0.1);
  color: var(--info-color);
}

.status-cancelled {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 0.5rem;
}

.btn-action {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.btn-action-view {
  background: rgba(59, 130, 246, 0.1);
  color: var(--info-color);
}

.btn-action-view:hover {
  background: rgba(59, 130, 246, 0.2);
}

.btn-action-edit {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning-color);
}

.btn-action-edit:hover {
  background: rgba(245, 158, 11, 0.2);
}

/* ===== LOCATION PERFORMANCE ===== */
.location-stat-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--light-border);
}

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

.location-stat-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.location-name {
  font-weight: 600;
  color: var(--text-dark);
}

.location-count {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.progress-bar-custom {
  height: 8px;
  background: var(--light-bg);
  border-radius: 50px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 50px;
  transition: width 0.5s ease;
}

/* ===== QUICK ACTIONS ===== */
.quick-action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.quick-action-btn {
  padding: 1.25rem;
  border: 2px solid var(--light-border);
  border-radius: 12px;
  background: white;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  text-align: center;
}

.quick-action-btn i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.quick-action-btn span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
}

.quick-action-btn:hover {
  border-color: var(--primary-color);
  background: rgba(77, 168, 218, 0.05);
  transform: translateY(-3px);
}

/* ===== SERVICE ITEMS ===== */
.service-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--light-border);
}

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

.service-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: white;
  flex-shrink: 0;
}

.service-icon-blue {
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.service-icon-green {
  background: linear-gradient(135deg, #10b981, #059669);
}

.service-icon-orange {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.service-info {
  flex: 1;
}

.service-info h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.service-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.service-stat {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* ===== ACTIVITY TIMELINE ===== */
.activity-timeline {
  position: relative;
}

.activity-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  position: relative;
}

.activity-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 2.5rem;
  bottom: -1rem;
  width: 2px;
  background: var(--light-border);
}

.activity-marker {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.25rem;
  position: relative;
  z-index: 1;
}

.marker-blue {
  background: var(--info-color);
}

.marker-green {
  background: var(--success-color);
}

.marker-orange {
  background: var(--warning-color);
}

.marker-purple {
  background: #8b5cf6;
}

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

.activity-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.activity-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===== ALERTS ===== */
.custom-alert {
  border-radius: 12px;
  border: none;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .search-box input {
    width: 200px;
  }
}

@media (max-width: 992px) {
  .sidebar {
    transform: translateX(-100%);
  }

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

  .sidebar-toggle {
    display: flex;
  }

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

  .menu-toggle {
    display: flex;
  }

  .topbar {
    padding: 0 1rem;
  }

  .search-box {
    display: none;
  }

  .content-container {
    padding: 1rem;
  }

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

  .quick-action-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .stat-card-body {
    flex-direction: column;
    gap: 1rem;
  }

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

  .stat-number {
    font-size: 1.75rem;
  }

  .topbar-actions {
    gap: 0.5rem;
  }

  .action-btn {
    width: 36px;
    height: 36px;
  }

  .modern-table {
    font-size: 0.85rem;
  }
}

/* ===== AUTH PAGES (LOGIN / LOGOUT) ===== */
.auth-page {
  min-height: 100vh;
  background: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.auth-card {
  background: white;
  width: 100%;
  max-width: 420px;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--light-border);
  text-align: center;
}

.auth-logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.auth-logo i {
  margin-right: 0.5rem;
}

.auth-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.auth-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.auth-card .form-control {
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
}

.auth-card .btn-primary {
  border-radius: 10px;
  font-weight: 600;
}

.auth-footer {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}


/* blogs styling */

/* ==================== ADMIN BLOG CSS ==================== */

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  padding: 2rem;
  border-radius: 12px;
  color: white;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(77, 168, 218, 0.2);
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0;
}

/* Custom Tabs */
.nav-tabs-custom {
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 2rem;
}

.nav-tabs-custom .nav-link {
  color: var(--secondary-color);
  border: none;
  border-bottom: 3px solid transparent;
  padding: 1rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.nav-tabs-custom .nav-link:hover {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.nav-tabs-custom .nav-link.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  background: none;
}

/* Search and Filter Bar */
.search-filter-bar {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  align-items: center;
}

.search-input {
  flex: 1;
  min-width: 250px;
  padding: 0.75rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(77, 168, 218, 0.1);
}

.form-select {
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(77, 168, 218, 0.1);
}

/* Primary Button Custom */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(77, 168, 218, 0.3);
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(77, 168, 218, 0.4);
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* Blog Card */
.blog-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(77, 168, 218, 0.2);
}

.blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-content {
  padding: 1.5rem;
}

.category-badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: linear-gradient(135deg, var(--accent-color) 0%, #ffe8cc 100%);
  color: var(--secondary-color);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-published {
  background-color: #d4edda;
  color: #155724;
}

.status-draft {
  background-color: #fff3cd;
  color: #856404;
}

.status-upcoming {
  background-color: #d1ecf1;
  color: #0c5460;
}

.status-ongoing {
  background-color: #fff3cd;
  color: #856404;
}

.status-completed {
  background-color: #e2e3e5;
  color: #383d41;
}

.blog-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin: 1rem 0;
  line-height: 1.4;
}

.blog-excerpt {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.blog-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e0e0e0;
}

.blog-meta i {
  color: var(--primary-color);
}

.blog-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-action {
  flex: 1;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-view {
  background-color: var(--primary-color);
  color: white;
}

.btn-view:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
}

.btn-edit {
  background-color: #ffc107;
  color: #333;
}

.btn-edit:hover {
  background-color: #e0a800;
  transform: translateY(-2px);
}

.btn-delete {
  background-color: #dc3545;
  color: white;
}

.btn-delete:hover {
  background-color: #c82333;
  transform: translateY(-2px);
}

/* Event Grid */
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

/* Event Card */
.event-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(77, 168, 218, 0.2);
}

.event-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.event-content {
  padding: 1.5rem;
}

.event-date-badge {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  border-radius: 8px;
  padding: 0.75rem;
  text-align: center;
  min-width: 60px;
}

.event-date-day {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.event-date-month {
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.25rem;
}

.event-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--secondary-color);
}

.event-location {
  color: #666;
  font-size: 0.9rem;
}

.event-location i {
  color: var(--primary-color);
}

.event-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e0e0e0;
}

.event-meta i {
  color: var(--primary-color);
}

.event-actions {
  display: flex;
  gap: 0.5rem;
}

/* Modal Customization */
.modal-content {
  border-radius: 12px;
  border: none;
}

.modal-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  border-radius: 12px 12px 0 0;
  padding: 1.5rem;
}

.modal-title {
  font-weight: 700;
}

.btn-close-white {
  filter: brightness(0) invert(1);
}

.modal-body {
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

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

.form-control {
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 0.75rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(77, 168, 218, 0.1);
}

.text-danger {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.modal-footer {
  padding: 1.5rem;
  border-top: 1px solid #e0e0e0;
}

/* Publish Button */
.btn-publish {
  background-color: #28a745;
  color: white;
}

.btn-publish:hover {
  background-color: #218838;
  transform: translateY(-2px);
}

.btn-publish[data-current-status="published"] {
  background-color: #6c757d;
}

.btn-publish[data-current-status="published"]:hover {
  background-color: #5a6268;
}