/* สไตล์สำหรับสถานะโปรแกรม */
.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px;
}

.program-card {
  height: 100%;
  transition: all 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
}

.program-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.program-card-inner {
  background: rgba(37, 42, 65, 0.7);
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.program-card-header {
  padding: 15px;
  text-align: center;
  position: relative;
  height: 80px;
}

.bg-status-online {
  background: linear-gradient(
    135deg,
    rgba(11, 232, 129, 0.8) 0%,
    rgba(0, 166, 81, 0.8) 100%
  );
}

.bg-status-offline {
  background: linear-gradient(
    135deg,
    rgba(255, 94, 125, 0.8) 0%,
    rgba(204, 51, 63, 0.8) 100%
  );
}

.bg-status-pending {
  background: linear-gradient(
    135deg,
    rgba(249, 202, 36, 0.8) 0%,
    rgba(240, 140, 0, 0.8) 100%
  );
}

.program-icon-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 20%);
  width: 72px;
  height: 72px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 10;
  border: 4px solid rgba(255, 255, 255, 0.8);
}

.program-icon-modern {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 2px;
  transition: all 0.3s ease;
}

.program-icon-modern:hover {
  transform: scale(1.1);
}

.program-icon-fallback {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
  background-color: #8392ab;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
}

.program-card-body {
  padding: 60px 15px 15px 15px;
  text-align: center;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.program-name {
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 18px;
  color: white;
}

.program-description {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 15px;
  flex-grow: 1;
}

.program-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
}

.detail-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.detail-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.status-indicator {
  margin-top: auto;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
}

.status-pill-online {
  background: rgba(11, 232, 129, 0.2);
  color: #0be881;
  border: 1px solid rgba(11, 232, 129, 0.4);
}

.status-pill-offline {
  background: rgba(255, 94, 125, 0.2);
  color: #ff5e7d;
  border: 1px solid rgba(255, 94, 125, 0.4);
}

.status-pill-pending {
  background: rgba(249, 202, 36, 0.2);
  color: #f9ca24;
  border: 1px solid rgba(249, 202, 36, 0.4);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 5px;
  position: relative;
}

.status-pill-online .status-dot {
  background-color: #0be881;
  box-shadow: 0 0 8px #0be881;
  animation: pulse 2s infinite;
}

.status-pill-offline .status-dot {
  background-color: #ff5e7d;
}

.status-pill-pending .status-dot {
  background-color: #f9ca24;
  animation: blink 1.5s infinite;
}

.no-programs {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: rgba(255, 255, 255, 0.6);
}
/* ตัวอย่างการแก้ไข */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ลบตัวที่ซ้ำซ้อนออก หรือเปลี่ยนชื่อเป็น */
@keyframes pulse3d {
  from {
    transform: scale3d(1, 1, 1);
  }
  50% {
    transform: scale3d(1.05, 1.05, 1.05);
  }
  to {
    transform: scale3d(1, 1, 1);
  }
}


@keyframes blink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .program-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    padding: 15px;
    gap: 15px;
  }
}

@media (max-width: 576px) {
  .program-grid {
    grid-template-columns: 1fr;
  }
}

.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  border: none;
  padding: 15px 20px;
}

.header-icon-glow {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
  font-size: 18px;
}

/* สไตล์พื้นฐานสำหรับเว็บไซต์ต่อจากนี้ */

:root {
  --primary: #4a8eff;
  --primary-dark: #3a7bd5;
  --accent: #00d4ff;
  --success: #38b000;
  --danger: #e63946;
  --warning: #fca311;
  --info: #3a86ff;
  --dark: #1e232b;
  --text-light: #ffffff; /* เปลี่ยนจาก #f8f9fa เป็นขาวเต็ม */
  --text-muted: #c8cfd6; /* ทำให้สี muted เข้มขึ้น */
  --text-secondary: #a0a0a0; /* ทำให้สี secondary เข้มขึ้น */
  --background: #121418;
  --card-bg: #1e232b;
  --dark-accent: #242a35; /* ปรับสี card เข้มขึ้นเล็กน้อย */
  --transition: all 0.25s ease-in-out;
  --font-family: "Anuphan", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
  background-color: var(--background);
  color: var(--text-light);
  font-family: var(--font-family);
  line-height: 1.6;
}

/* Navigation Styling */
.navbar {
  background: linear-gradient(
    180deg,
    rgba(30, 35, 43, 0.98) 0%,
    rgba(30, 35, 43, 0.95) 100%
  );
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.8rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.navbar-fixed-top {
  position: sticky;
  top: 0;
  z-index: 1030;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.4rem;
  padding: 0.4rem 1rem;
  margin-right: 1.5rem;
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: var(--transition);
}

.navbar-brand:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.nav-link {
  font-weight: 600;
  padding: 0.7rem 1.2rem;
  position: relative;
  opacity: 0.9;
  transition: var(--transition);
  margin: 0 0.2rem;
  border-radius: 6px;
}

.nav-link:hover,
.nav-link.active {
  opacity: 1;
  color: var(--primary) !important;
  background: rgba(74, 142, 255, 0.1);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0.3rem;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 40px;
}

/* Enhanced Navbar Toggler for Mobile */
.navbar-toggler {
  border: none;
  padding: 0.5rem;
  background: transparent;
  transition: all 0.3s ease;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  position: relative;
  z-index: 1000;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.navbar-toggler:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(74, 142, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
}

.navbar-toggler:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.2);
}

.navbar-toggler-icon {
  width: 1.5rem;
  height: 1.5rem;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
  transition: all 0.3s ease;
}

/* Animated hamburger icon */
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M6 6L24 24M24 6L6 24'/%3e%3c/svg%3e");
  transform: rotate(180deg);
}

/* Mobile-specific improvements */
@media (max-width: 991.98px) {
  .navbar-toggler {
    min-width: 48px;
    min-height: 48px;
    margin-left: 0.5rem;
  }
  
  .navbar-toggler-icon {
    width: 1.75rem;
    height: 1.75rem;
  }
  
  /* Ensure navbar collapse works properly */
  .navbar-collapse {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 0 0 15px 15px;
    margin-top: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease-in-out;
    max-height: 0;
    overflow: hidden;
  }
  
  .navbar-collapse.show {
    max-height: 500px;
    animation: slideDown 0.3s ease-in-out;
  }
  
  .navbar-nav {
    padding: 1rem 0;
  }
  
  .nav-link {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    margin: 0.25rem 1rem;
    transition: all 0.3s ease;
  }
  
  .nav-link:hover {
    background: rgba(74, 142, 255, 0.1);
    transform: translateX(5px);
  }
  
  .nav-item.active .nav-link {
    background: rgba(74, 142, 255, 0.2);
    color: #4a8eff !important;
  }
}

/* Touch-friendly improvements for very small screens */
@media (max-width: 576px) {
  .navbar-toggler {
    min-width: 52px;
    min-height: 52px;
    padding: 0.75rem;
  }
  
  .navbar-toggler-icon {
    width: 2rem;
    height: 2rem;
  }
  
  .nav-link {
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced focus states for accessibility */
.navbar-toggler:focus-visible {
  outline: 2px solid #4a8eff;
  outline-offset: 2px;
}

/* Hover effects for better UX */
.navbar-toggler:hover .navbar-toggler-icon {
  filter: brightness(1.2);
}

/* Ensure proper z-index stacking */
.navbar {
  z-index: 1030;
}

.navbar-collapse {
  z-index: 1020;
}

/* Mobile menu backdrop */
@media (max-width: 991.98px) {
  .navbar-collapse::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
  }
  
  .navbar-collapse.show::before {
    opacity: 1;
    pointer-events: auto;
  }
}

/* Card Styling */
.card {
  background: var(--dark-accent);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: var(--transition);
}

.card-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1rem 1.5rem;
}

/* เอฟเฟค hover ต่างๆ - เลือกใช้อันใดอันหนึ่งโดยเปลี่ยน class ที่ HTML */

/* เอฟเฟคเดิม */
.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* เอฟเฟคขยาย scale */
.hover-scale:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* เอฟเฟคส่องสว่าง */
.hover-glow:hover {
  box-shadow: 0 0 20px rgba(74, 142, 255, 0.5);
  border-color: rgba(74, 142, 255, 0.5);
}

/* เอฟเฟคขอบเรืองแสง */
.hover-border:hover {
  border: 1px solid rgba(74, 142, 255, 0.8);
  box-shadow: inset 0 0 10px rgba(74, 142, 255, 0.3);
}

/* เอฟเฟคหมุน */
.hover-rotate:hover {
  transform: rotate(2deg);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* เอฟเฟคเบลอพื้นหลัง */
.hover-blur {
  transition: all 0.3s ease;
}
.hover-blur:hover {
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(5px);
  background-color: rgba(255, 255, 255, 0.05);
}

/* Button Styling */
.btn {
  font-weight: 500;
  border-radius: 8px;
  padding: 0.5rem 1.5rem;
  transition: var(--transition);
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 142, 255, 0.25);
}

.btn-success {
  background: var(--success);
  border-color: var(--success);
}

.btn-success:hover {
  background: #0ea271;
  border-color: #0ea271;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(74, 142, 255, 0.2);
}

/* Form Controls */
.form-control,
.input-group-text {
  background: rgba(255, 255, 255, 0.15); /* เพิ่มความทึบให้กับพื้นหลัง */
  border: 1px solid rgba(255, 255, 255, 0.2); /* เพิ่มความชัดเจนของขอบ */
  color: white; /* เปลี่ยนเป็นสีขาวชัดเจน */
  border-radius: 8px;
  transition: var(--transition);
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.25); /* เพิ่มความทึบเมื่อโฟกัส */
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(74, 142, 255, 0.4); /* เพิ่มความชัดเจนของเงา */
  color: white;
}

.input-group-text {
  border-right: none;
  color: white; /* ให้แน่ใจว่าข้อความในอินพุทกรุ๊ปเป็นสีขาว */
}

.form-select {
  background-color: rgba(255, 255, 255, 0.15); /* เพิ่มความทึบให้กับพื้นหลัง */
  color: white; /* เปลี่ยนเป็นสีขาวชัดเจน */
  border: 1px solid rgba(255, 255, 255, 0.2); /* เพิ่มความชัดเจนของขอบ */
  border-radius: 8px;
}

.form-select:focus {
  background-color: rgba(255, 255, 255, 0.25); /* เพิ่มความทึบเมื่อโฟกัส */
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(74, 142, 255, 0.4); /* เพิ่มความชัดเจนของเงา */
  color: white;
}

/* เพิ่มสำหรับฟอร์มเซเล็กขนาดเล็ก */
.form-select-sm {
  background-color: white;
  color: #212529;
  border: 1px solid rgba(0, 0, 0, 0.2);
  font-weight: 500;
}

/* Duration Select - เพิ่มความคมชัดสำหรับตัวเลือกระยะเวลา */
.duration-select {
  background-color: white !important;
  color: #212529 !important;
  border-color: rgba(0, 0, 0, 0.2) !important;
  font-weight: 500;
}

.duration-select:focus {
  box-shadow: 0 0 0 0.25rem rgba(74, 142, 255, 0.25);
  border-color: var(--primary);
}

/* Alert Styling */
.alert {
  border-radius: 10px;
  border: none;
  font-weight: 500;
  color: #212529; /* สีข้อความมืดสำหรับ alert เพื่อความคมชัด */
}

/* สีเฉพาะสำหรับแต่ละประเภท alert */
.alert-info {
  background-color: rgba(59, 130, 246, 0.3) !important; /* สีพื้นหลังเข้มขึ้น */
  color: white !important; /* ข้อความสีขาวเพื่อความคมชัด */
}

.alert-warning {
  background-color: rgba(245, 158, 11, 0.8) !important; /* สีพื้นหลังเข้มขึ้น */
  color: white !important; /* ข้อความสีขาวเพื่อความคมชัด */
  font-weight: 600;
}

.alert-secondary {
  background-color: rgba(
    108,
    117,
    125,
    0.4
  ) !important; /* สีพื้นหลังเข้มขึ้น */
  color: white !important; /* ข้อความสีขาวเพื่อความคมชัด */
}

/* Badge Styling */
.badge {
  padding: 0.5em 0.8em;
  font-weight: 500;
  border-radius: 6px;
  color: white; /* ให้แน่ใจว่าข้อความใน badge เป็นสีขาวเสมอ */
}

/* Table Styling */
.table-responsive {
  margin: 0;
  padding: 0;
  border-radius: 0.5rem;
  overflow: hidden;
  position: relative;
  background: rgba(33, 37, 41, 0.95);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.table {
  margin-bottom: 0;
  width: 100%;
  color: #fff;
}

.table th {
  white-space: nowrap;
  font-weight: 600;
  padding: 1rem;
  background: rgba(33, 37, 41, 0.95);
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 1;
}

.table td {
  padding: 0.75rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.table tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Mobile Styles */
@media (max-width: 768px) {
  .table-responsive {
    margin: 0 -1rem;
    padding: 0 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .table {
    min-width: 800px;
  }
  
  .table th, 
  .table td {
    white-space: nowrap;
    padding: 0.75rem 0.5rem;
  }
  
  .table .badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.5rem;
  }
  
  .table .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }

  /* Scroll Indicator */
  .table-responsive::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(to right, transparent, rgba(33, 37, 41, 0.8));
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
  }
  
  .table-responsive:hover::after {
    opacity: 1;
  }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
  .table {
    min-width: 900px;
  }
  
  .table th, 
  .table td {
    padding: 0.875rem 0.75rem;
    font-size: 0.9375rem;
  }
  
  .table .badge {
    font-size: 0.875rem;
    padding: 0.4rem 0.6rem;
  }
  
  .table .btn-sm {
    padding: 0.35rem 0.6rem;
    font-size: 0.875rem;
  }
}

/* Desktop Styles */
@media (min-width: 1025px) {
  .table {
    min-width: 100%;
  }
  
  .table th, 
  .table td {
    padding: 1rem;
    font-size: 1rem;
  }
  
  .table .badge {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
  }
  
  .table .btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.875rem;
  }
}

/* Common Table Elements */
.table .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 500;
}

.table .btn {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.table .program-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* Scrollbar Styles */
.table-responsive::-webkit-scrollbar {
  height: 6px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.table-responsive::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}

/* Animation for table rows */
.table tbody tr {
  transition: all 0.3s ease;
}

.table tbody tr:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Status badges in tables */
.table .status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.75rem;
  border-radius: 1rem;
  font-weight: 500;
  font-size: 0.875rem;
}

.table .status-badge i {
  font-size: 0.75rem;
}

/* Progress bars in tables */
.table .progress {
  height: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  overflow: hidden;
}

.table .progress-bar {
  transition: width 0.6s ease;
}

/* Table header styles */
.table thead th {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.7);
}

/* Table cell content alignment */
.table td.text-center {
  text-align: center;
}

.table td.text-right {
  text-align: right;
}

.table td.text-left {
  text-align: left;
}

/* Table row hover effect */
.table tbody tr {
  position: relative;
}

.table tbody tr::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.table tbody tr:hover::after {
  background: rgba(255, 255, 255, 0.1);
}

/* Text Contrast Improvements */
.text-muted {
  color: var(--text-secondary) !important;
}

.card-body p,
.alert p {
  color: var(--text-light);
  line-height: 1.7;
}

/* User Panel Improvements */
.user-info {
  color: var(--text-light);
}

.floating-login {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Footer Styling */
.footer {
  background: var(--dark);
  color: var(--text-light);
  position: relative;
  padding: 40px 0 20px;
}

.footer-links a {
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
}

/* Fix for program name display */
.program-table strong {
  font-weight: 600;
  color: var(--text-light);
}

.alert-danger {
  background-color: rgba(239, 68, 68, 0.15);
  border-left: 4px solid var(--danger);
}

/* Improved readability for card content */
.card-text {
  color: var(--text-secondary);
}

/* Section titles */
.section-title {
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

/* Fix for program listings */
.program-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Fix for form labels */
.form-label {
  color: white; /* เปลี่ยนจาก var(--text-light) เป็นสีขาวชัดเจน */
  font-weight: 600; /* เพิ่มความหนาของตัวอักษร */
}

/* ปรับปรุงสำหรับ form-check-label */
.form-check-label {
  color: white;
  font-weight: 500;
}

/* Badge improvements */
.badge.bg-success,
.badge.bg-primary,
.badge.bg-info,
.badge.bg-danger,
.badge.bg-warning {
  font-weight: 500;
  color: white; /* ให้แน่ใจว่าข้อความใน badge เป็นสีขาวเสมอ */
}

/* Card Body - เพิ่มความคมชัดของข้อความ */
.card-body {
  color: white;
}

.card-body p {
  color: rgba(255, 255, 255, 0.9) !important; /* เพิ่มความทึบของข้อความ */
}

/* Adding breathing space */
.py-9 {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

/* Fix for accordion text */
.accordion-button {
  font-weight: 500;
}

.accordion-body {
  color: var(--text-secondary);
}

/* Tooltip improvements */
.tooltip {
  font-family: "Sarabun", sans-serif;
}

@media (max-width: 768px) {
  body {
    font-size: 15px;
  }
  .table {
    font-size: 0.85rem;
  }
  .section-title {
    font-size: 1.8rem;
  }

  .card-body {
    padding: 1.25rem;
  }
}

/* Animations */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

.animated {
  animation-duration: 1s;
  animation-fill-mode: both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.fadeInUp {
  animation-name: fadeInUp;
}


.pulse {
  animation-name: pulse;
  animation-timing-function: ease-in-out;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Specific Components */
#scrollToTop {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: 20px;
  right: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

#scrollToTop.visible {
  opacity: 1;
  visibility: visible;
}

/* Program Icon styling */
.program-icon-wrapper {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin: 0 auto;
}

.program-table {
  font-size: 0.95rem;
}

.program-table td {
  vertical-align: middle;
}

/* Feature Card */
.feature-card {
  background: var(--dark-accent);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
  padding: 1.5rem 1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  border-color: rgba(74, 142, 255, 0.3);
}

/* Media Queries */
@media (max-width: 768px) {
  .card-header {
    padding: 0.75rem 1rem;
  }

  .card-body {
    padding: 1rem;
  }

  .btn {
    padding: 0.4rem 1rem;
  }

  .table {
    font-size: 0.85rem;
  }

  /* Modal Dialog Improvements */
  .modal-content {
    border: none;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  }

  .modal-content.bg-dark-accent {
    background-color: #252a41;
  }

  .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .modal-header.bg-primary {
    background: linear-gradient(
      135deg,
      var(--primary) 0%,
      var(--accent) 100%
    ) !important;
  }

  .modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .modal-footer.bg-gradient-primary {
    background: linear-gradient(
      135deg,
      var(--primary) 0%,
      var(--accent) 100%
    ) !important;
  }

  .modal .btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
  }

  .modal-body .card {
    background-color: rgba(50, 55, 65, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
  }

  .modal-body p {
    color: rgba(255, 255, 255, 0.9) !important;
  }

  .modal-body ol,
  .modal-body ul {
    color: rgba(255, 255, 255, 0.9);
  }

  .modal-body li {
    margin-bottom: 8px;
  }

  .nav-link {
    padding: 0.4rem 0.75rem;
  }
}

li:hover .contact-icon {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

.contact-icon-large {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(114, 137, 218, 0.15);
  border-radius: 50%;
  color: #7289da;
  transition: all 0.3s ease;
  margin-bottom: 15px;
}

.contact-icon-large:hover {
  background: #7289da;
  color: white;
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(114, 137, 218, 0.3);
}
/* User Avatar in Navbar */
.user-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(74, 142, 255, 0.3);
}

.user-avatar i {
  font-size: 24px;
  color: white;
}

.user-stats {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.25rem;
}

.user-stats .badge {
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
}

/* Mobile Optimization */
@media (max-width: 768px) {
  .user-avatar {
    width: 40px;
    height: 40px;
  }

  .user-avatar i {
    font-size: 20px;
  }
}

/* ปรับปรุง table-responsive สำหรับ mobile */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
    margin-bottom: 1rem;
    position: relative;
}

/* เพิ่มตัวบอกการเลื่อนสำหรับตารางที่มีข้อมูลเยอะ */
.scroll-indicator {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(74, 142, 255, 0.8);
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  opacity: 0.8;
  transition: opacity 0.5s ease;
  z-index: 2;
  pointer-events: none;
}

.scroll-indicator.fade-out {
  opacity: 0;
}

/* Login Form Styles */
.login-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(74, 142, 255, 0.3);
}

.login-avatar i {
    font-size: 40px;
    color: white;
}

.login-form .form-label {
    font-weight: 500;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.login-form .input-group-text {
    border: 1px solid #dee2e6;
}

.login-form .form-control {
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
}

.login-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(74, 142, 255, 0.25);
}

.login-form .btn-primary {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border: none;
    transition: all 0.3s ease;
}

.login-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 142, 255, 0.4);
}

.login-form .btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 142, 255, 0.2);
}

/* Mobile Login Panel Styles */
.mobile-login-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(30, 35, 43, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1050;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 20px;
}

.mobile-login-panel.show {
    right: 0;
}

.mobile-login-form,
.mobile-user-info {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
}

.mobile-login-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-login-btn i {
    font-size: 1rem;
}

.mobile-login-form h5,
.mobile-user-info h5 {
    color: white;
    font-weight: 600;
    font-size: 1.25rem;
}

.mobile-login-form .text-muted,
.mobile-user-info .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.mobile-login-form .form-label,
.mobile-user-info .form-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.mobile-login-form .input-group-text {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--primary);
}

.mobile-login-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.75rem 1rem;
}

.mobile-login-form .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
    color: white;
}

.mobile-login-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.mobile-login-form .btn-outline-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
}

.mobile-login-form .btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.mobile-login-form .btn-primary,
.mobile-login-form .btn-outline-primary,
.mobile-user-info .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    font-size: 1rem;
}

.user-stats {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.25rem;
}

.user-stats .badge {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
}

@media (max-width: 576px) {
    .mobile-login-form,
    .mobile-user-info {
        padding: 15px;
    }
    
    .login-avatar {
        width: 60px;
        height: 60px;
    }
    
    .login-avatar i {
        font-size: 30px;
    }

    .mobile-login-btn {
        padding: 0.4rem 0.8rem;
    }

    .mobile-login-form .btn-primary,
    .mobile-login-form .btn-outline-primary,
    .mobile-user-info .btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.95rem;
    }

    .user-stats {
        padding: 1rem;
    }

    .user-stats .badge {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }
}

/* ปรับปรุงการแสดงผลตารางบน mobile */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
    margin-bottom: 1rem;
    position: relative;
}

@media (max-width: 768px) {
    .table-responsive {
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        max-width: 100%;
        display: block;
    }
    
    .table {
        margin-bottom: 0;
        width: 100%;
        min-width: 650px;
    }
    
    .table th, 
    .table td {
        white-space: nowrap;
        padding: 0.75rem 1rem;
    }
    
    .table {
        font-size: 0.9rem;
    }
    
    .table td {
        vertical-align: middle;
        line-height: 1.4;
    }
    
    .table .badge {
        padding: 0.4rem 0.7rem;
        font-size: 0.8rem;
    }
    
    .table .btn-sm {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
}

/* เพิ่มตัวบอกการเลื่อนสำหรับตาราง */
.scroll-indicator {
    position: absolute;
    right: 10px;
    bottom: 10px;
    background: rgba(74, 142, 255, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    opacity: 0.8;
    transition: opacity 0.5s ease;
    z-index: 2;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.scroll-indicator i {
    font-size: 0.9rem;
}

.scroll-indicator.fade-out {
    opacity: 0;
}

@media (max-width: 576px) {
    .scroll-indicator {
        font-size: 0.8rem;
        padding: 5px 10px;
    }

    .scroll-indicator i {
        font-size: 0.85rem;
    }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* ปรับปรุง Navbar */
    .navbar {
        padding: 0.5rem 0;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
    }

    /* ปรับปรุง Card */
    .card {
        margin-bottom: 1rem;
        border-radius: 10px;
    }

    .card-body {
        padding: 1rem;
    }

    /* ปรับปรุง Form */
    .form-control, 
    .form-select {
        font-size: 16px; /* ป้องกันการซูมอัตโนมัติบน iOS */
        padding: 0.75rem 1rem;
    }

    .input-group-text {
        padding: 0.75rem 1rem;
    }

    /* ปรับปรุง Button */
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
    }

    .btn-lg {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    /* ปรับปรุง Table */
    .table-responsive {
        margin: 0 -1rem;
        padding: 0 1rem;
    }

    .table {
        font-size: 0.9rem;
    }

    .table th,
    .table td {
        padding: 0.75rem 0.5rem;
    }

    /* ปรับปรุง Modal */
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }

    .modal-content {
        border-radius: 10px;
    }

    .modal-body {
        padding: 1rem;
    }

    /* ปรับปรุง Footer */
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-links {
        margin-bottom: 1.5rem;
    }

    /* ปรับปรุง Program Grid */
    .program-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

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

    /* ปรับปรุง User Panel */
    .user-stats {
        padding: 1rem;
    }

    .user-stats .badge {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }

    /* ปรับปรุง Login Form */
    .login-form {
        padding: 1rem;
    }

    .login-avatar {
        width: 60px;
        height: 60px;
    }

    .login-avatar i {
        font-size: 30px;
    }

    /* ปรับปรุง Mobile Login Panel */
    .mobile-login-panel {
        padding: 1rem;
    }

    .mobile-login-form,
    .mobile-user-info {
        padding: 1rem;
    }

    /* ปรับปรุง Scroll Indicator */
    .scroll-indicator {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    /* ปรับปรุง Alert */
    .alert {
        margin: 0.5rem;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    /* ปรับปรุง Badge */
    .badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }

    /* ปรับปรุง Dropdown */
    .dropdown-menu {
        width: calc(100% - 2rem);
        margin: 0.5rem;
        padding: 0.75rem;
    }

    /* ปรับปรุง Container */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* ปรับปรุง Grid System */
    .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }

    .col-* {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    /* ปรับปรุง Spacing */
    .mt-5, .mb-5, .py-5 {
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    /* ปรับปรุง Font Size */
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.3rem; }
    h4 { font-size: 1.2rem; }
    h5 { font-size: 1.1rem; }
    h6 { font-size: 1rem; }

    /* ปรับปรุง Animation */
    .animated {
        animation-duration: 0.5s;
    }

    /* ปรับปรุง Scrollbar */
    ::-webkit-scrollbar {
        width: 4px;
        height: 4px;
    }

    /* ปรับปรุง Touch Target */
    button, 
    .btn, 
    input[type="submit"],
    input[type="button"],
    a {
        min-height: 44px;
        min-width: 44px;
    }

    /* ปรับปรุง Form Elements */
    input[type="text"],
    input[type="password"],
    input[type="email"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px;
        padding: 0.75rem 1rem;
    }

    /* ปรับปรุง Focus States */
    *:focus {
        outline: 2px solid var(--primary);
        outline-offset: 2px;
    }

    /* ปรับปรุง Touch Feedback */
    .btn:active,
    .nav-link:active {
        transform: scale(0.98);
    }
}

/* เพิ่ม Media Query สำหรับหน้าจอขนาดเล็กมาก */
@media (max-width: 576px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .card-body {
        padding: 0.75rem;
    }

    .table {
        font-size: 0.85rem;
    }

    .badge {
        font-size: 0.75rem;
        padding: 0.35rem 0.5rem;
    }

    .alert {
        font-size: 0.85rem;
        padding: 0.6rem 0.8rem;
    }

    .modal-dialog {
        margin: 0.25rem;
    }

    .footer {
        padding: 1.5rem 0 1rem;
    }
}

/* ปรับปรุงการแสดงผลบน iOS */
@supports (-webkit-touch-callout: none) {
    .form-control,
    .form-select,
    input[type="text"],
    input[type="password"],
    input[type="email"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px;
    }
}

/* ปรับปรุงการแสดงผลบน Android */
@media screen and (-webkit-min-device-pixel-ratio: 1.5) {
    .form-control,
    .form-select,
    input[type="text"],
    input[type="password"],
    input[type="email"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px;
    }
}

/* NProgress Customization */
#nprogress {
    pointer-events: none;
    z-index: 9999;
}

#nprogress .bar {
    background: linear-gradient(to right, var(--primary), var(--accent));
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    box-shadow: 0 0 10px var(--primary), 0 0 5px var(--primary);
}

#nprogress .peg {
    display: block;
    position: absolute;
    right: 0;
    width: 100px;
    height: 100%;
    box-shadow: 0 0 10px var(--primary), 0 0 5px var(--primary);
    opacity: 1;
    transform: rotate(3deg) translate(0px, -4px);
}

/* Remove these styles when showing spinner */
#nprogress .spinner {
    display: none;
}

/* Add animation for smoother transitions */
@keyframes nprogress-animation {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(0);
    }
}

#nprogress .bar {
    animation: nprogress-animation 0.3s ease-out forwards;
}

/* Optimize performance */
#nprogress .bar,
#nprogress .peg {
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Mobile optimization */
@media (max-width: 768px) {
    #nprogress .bar {
        height: 2px;
    }
    
    #nprogress .peg {
        width: 70px;
    }
}

/* Navbar Improvements */
.navbar-nav .nav-link {
    white-space: nowrap;
    font-weight: 500;
    transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary) !important;
    transform: translateY(-1px);
}

.navbar-nav .nav-item.active .nav-link {
    color: var(--primary) !important;
    font-weight: 600;
}

/* Navbar Buttons */
.navbar-nav .btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.navbar-nav .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.navbar-nav .btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
}

.navbar-nav .btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.navbar-nav .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
}

.navbar-nav .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.navbar-nav .btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.navbar-nav .btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

/* Mobile Navbar */
@media (max-width: 991.98px) {
    .navbar-nav .btn {
        margin-bottom: 0.5rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-radius: 8px;
        margin-bottom: 0.25rem;
    }
    
    .navbar-nav .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
}

/* Username Truncation */
.navbar-nav .btn .text-truncate {
    max-width: 80px;
    display: inline-block;
    vertical-align: middle;
}
