:root {
  --jio-blue: #0066cc;
  --jio-light-blue: #e8f4fd;
  --sidebar-bg: #f8f9fa;
  --sidebar-active: #0066cc;
  --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --border-color: #e9ecef;
  --text-primary: #2c3e50;
  --text-secondary: #6c757d;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --sidebar-width: 280px;
  --sidebar-collapsed-width: 70px;
}

* {
  font-family: "Poppins", sans-serif;
}

body {
  background-color: #f5f6fa;
  margin: 0;
  padding: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--jio-blue), #004499);
  border-radius: 10px;
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #004499, var(--jio-blue));
}

/* Firefox Scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--jio-blue) #f1f1f1;
}

/* Header Styles - Enhanced for Responsiveness */
.top-header {
  background: white;
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--card-shadow);
}

.header-left {
  display: flex;
  align-items: center;
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.welcome-text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.welcome-text strong {
  font-weight: 600;
}

.login-id {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0;
}

.jio-logo {
  width: 45px;
  height: 45px;
  background: var(--jio-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Enhanced Notification Button and Dropdown */
.notification-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
}

.notification-btn:hover {
  background-color: var(--jio-light-blue);
  color: var(--jio-blue);
}

/* Enhanced Notification Badge */
.notification-badge {
  background: var(--danger-color);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  position: absolute;
  top: -2px;
  right: -2px;
}

/* Notification Dropdown Wrapper */
.notification-dropdown {
  position: relative;
  display: inline-block;
}

/* Fixed Notification Dropdown Positioning */
.notification-btn + .dropdown-menu,
.notification-dropdown .dropdown-menu {
  position: absolute !important;
  top: calc(100% + 5px) !important;
  left: 35% !important;
  transform: translateX(-50%) !important;
  z-index: 1050 !important;
  min-width: 280px !important;
  max-width: 350px !important;
  border-radius: 8px;
  border: none;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  padding: 0;
  margin: 0;
  opacity: 0;
  transform: translateX(-50%) translateY(-10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.notification-btn + .dropdown-menu.show,
.notification-dropdown .dropdown-menu.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* Notification dropdown content styling */
.notification-btn + .dropdown-menu .dropdown-item-text,
.notification-dropdown .dropdown-menu .dropdown-item-text {
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  line-height: 1.4;
  border-bottom: 1px solid #f1f3f4;
  background: #f8f9fa;
  margin: 0;
  word-wrap: break-word;
  white-space: normal;
  color: var(--text-primary);
}

.notification-btn + .dropdown-menu .dropdown-item-text:last-child,
.notification-dropdown .dropdown-menu .dropdown-item-text:last-child {
  border-bottom: none;
}

.notification-btn + .dropdown-menu .dropdown-item-text strong,
.notification-dropdown .dropdown-menu .dropdown-item-text strong {
  color: var(--jio-blue);
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* Enhanced Profile Dropdown */
.profile-dropdown {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.2rem;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  position: relative;
}

.profile-dropdown:hover {
  background-color: var(--jio-light-blue);
  color: var(--jio-blue);
}

/* Mobile Toggle */
.mobile-sidebar-toggle {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.2rem;
  padding: 0.5rem;
  margin-right: 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.mobile-sidebar-toggle:hover {
  background: var(--jio-light-blue);
  color: var(--jio-blue);
}

/* Layout Container */
.main-container {
  display: flex;
  min-height: calc(100vh - 70px);
}

/* Sidebar Styles */
.sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border-color);
  padding: 0;
  position: fixed;
  height: calc(100vh - 70px);
  overflow-y: auto;
  overflow-x: hidden;
  left: 0;
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar.collapsed {
  width: var(--sidebar-collapsed-width);
}

/* Sidebar Header with Attractive Toggle Button */
.sidebar-header {
  background: linear-gradient(135deg, var(--jio-blue) 0%, #004499 100%);
  padding: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1001;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sidebar-brand {
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.sidebar.collapsed .sidebar-brand {
  opacity: 0;
  width: 0;
  overflow: hidden;
}

/* Enhanced Toggle Button */
.main-sidebar-toggle {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: white;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
  flex-shrink: 0;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.main-sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.main-sidebar-toggle:active {
  transform: scale(0.95);
}

.main-sidebar-toggle i {
  transition: transform 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.sidebar.collapsed .main-sidebar-toggle i {
  transform: rotate(180deg);
}

/* Navigation Styles */
.sidebar-nav {
  list-style: none;
  padding: 1rem 0;
  margin: 0;
}

.nav-item {
  margin-bottom: 0.25rem;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 0.9rem 1.5rem;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
  border-radius: 5px;
  margin: 2px 8px;
}

.nav-link:hover {
  background: linear-gradient(90deg, rgba(0, 102, 204, 0.1), rgba(0, 102, 204, 0.05));
  color: var(--jio-blue);
  padding-left: 1.8rem;
}

.nav-link.active {
  background: linear-gradient(90deg, var(--jio-blue), #004499);
  color: white !important;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
}

.nav-link.active i {
  color: white;
}

.nav-link:focus {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
}

.nav-link i {
  width: 22px;
  margin-right: 1rem;
  font-size: 1.1rem;
  flex-shrink: 0;
  text-align: center;
}

.nav-text {
  flex: 1;
  transition: all 0.3s ease;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.sidebar.collapsed .nav-text {
  opacity: 0;
  width: 0;
  overflow: hidden;
}

.nav-link .collapse-icon {
  margin-left: auto;
  transition: all 0.3s ease;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.sidebar.collapsed .collapse-icon {
  opacity: 0;
  width: 0;
}

.nav-link[aria-expanded="true"] .collapse-icon {
  transform: rotate(90deg);
}

.nav-link[aria-expanded="true"] {
  background: rgba(0, 102, 204, 0.1);
  color: #0066cc;
}

/* Submenu Styles */
.sub-nav {
  background: linear-gradient(90deg, rgba(0, 102, 204, 0.05), rgba(0, 102, 204, 0.02));
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  border-left: 3px solid var(--jio-blue);
  margin-left: 1rem;
}

.sub-nav.show {
  max-height: 400px;
}

.sidebar.collapsed .sub-nav {
  display: none;
}

.sub-nav .nav-link {
  padding: 0.7rem 1rem 0.7rem 3rem;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-secondary);
  border-radius: 5px;
}

.sub-nav .nav-link:hover {
  background: rgba(0, 102, 204, 0.08);
  color: var(--jio-blue);
  margin-left: 15px;
  border-radius: 5px;
}

.sub-nav .nav-link.active {
  background: var(--jio-blue);
  color: white;
  font-weight: 500;
  margin-left: 10px;
  border-radius: 5px;
}

/* Tooltip for collapsed sidebar */
.sidebar.collapsed .nav-link:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  background: var(--text-primary);
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  white-space: nowrap;
  z-index: 1000;
  margin-left: 0.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.3s ease;
}

.sidebar.collapsed .nav-link:hover::before {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 8px solid transparent;
  border-right-color: var(--text-primary);
  margin-left: -8px;
  z-index: 1000;
}

/* Sidebar Overlay */
.sidebar-overlay {
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  height: calc(100vh - 70px);
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  display: none;
  backdrop-filter: blur(2px);
}

.sidebar-overlay.show {
  display: block;
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  transition: margin-left 0.3s ease;
}

.main-content.expanded {
  margin-left: var(--sidebar-collapsed-width);
}

.content-wrapper {
  padding: 2rem;
}

.page-header {
  margin-bottom: 2rem;
}

.page-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

/* Dashboard Cards */
.dashboard-section {
  margin-bottom: 3rem;
  animation: fadeIn 0.6s ease-out;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
}

.section-title {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.section-icon {
  width: 24px;
  height: 24px;
  margin-right: 0.75rem;
  color: var(--jio-blue);
}

.refresh-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.1rem;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  cursor: pointer;
}

.refresh-btn:hover {
  background: var(--jio-light-blue);
  color: var(--jio-blue);
  transform: scale(1.1);
}

.status-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.status-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--card-shadow);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.status-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.status-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
}

.status-card.approved::before {
  background: var(--success-color);
}
.status-card.pending::before {
  background: var(--warning-color);
}
.status-card.rejected::before {
  background: var(--danger-color);
}

.status-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.status-icon.approved {
  color: var(--success-color);
}
.status-icon.pending {
  color: var(--warning-color);
}
.status-icon.rejected {
  color: var(--danger-color);
}

.status-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.status-number.approved {
  color: var(--success-color);
}
.status-number.pending {
  color: var(--warning-color);
}
.status-number.rejected {
  color: var(--danger-color);
}

.status-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Enhanced Dropdown Menu Responsiveness */
.dropdown-menu {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  z-index: 1000 !important;
  transform: none !important;
  border-radius: 8px;
  border: none;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  padding: 0.5rem 0;
  min-width: 200px;
  max-width: 90vw;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.dropdown-menu.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-menu-end {
  right: 0 !important;
  left: auto !important;
}

.dropdown-item {
  padding: 0.75rem 1.25rem;
  transition: all 0.3s ease;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-item:hover {
  background-color: rgba(0, 102, 204, 0.1);
  color: #0066cc;
}

.dropdown-item i {
  width: 16px;
  text-align: center;
  margin-right: 0.5rem;
}

.dropdown-item-text {
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  line-height: 1.4;
  max-width: 250px;
  word-wrap: break-word;
}

.dropdown {
  position: relative !important;
}

.dropdown-toggle::after {
  display: none;
}

/* Enhanced Focus States for Accessibility */
.notification-btn:focus,
.profile-dropdown:focus {
  outline: 2px solid var(--jio-blue);
  outline-offset: 2px;
}

/* Premium Tabs Design */
.premium-tabs {
  border-bottom: 2px solid #f1f3f4;
  padding: 0 1rem;
  background: linear-gradient(135deg, #fafbfc 0%, #f8f9fa 100%);
  border-radius: 12px 12px 0 0;
}

.premium-tabs .nav-item {
  flex: 1;
  margin: 0 4px;
}

.premium-tabs .nav-link {
  border: none;
  background: transparent;
  color: #6c757d !important;
  font-weight: 600;
  padding: 1.2rem 1rem;
  text-align: center;
  border-radius: 8px 8px 0 0;
  transition: all 0.3s ease;
  position: relative;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  text-decoration: none;
}

.premium-tabs .nav-link:hover {
  color: #0066cc !important;
  background: rgba(0, 102, 204, 0.05);
  border-bottom-color: rgba(0, 102, 204, 0.3);
}

.premium-tabs .nav-link.active {
  color: #0066cc !important;
  background: white !important;
  border-bottom-color: #0066cc !important;
  box-shadow: 0 -2px 8px rgba(0, 102, 204, 0.1);
  font-weight: 700;
}

.premium-tabs .nav-link i {
  font-size: 0.9rem;
  opacity: 0.8;
  color: inherit;
}

.premium-tabs .nav-link.active i {
  opacity: 1;
  color: #0066cc !important;
}

/* Form Controls */
.form-control,
.form-select {
  border-radius: 8px;
  border: 1px solid #e1e5e9;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: #0066cc;
  box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.15);
}

/* Buttons */
.btn {
  border-radius: 8px;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #0066cc;
  border-color: #0066cc;
}

.btn-primary:hover {
  background-color: #0052a3;
  border-color: #0052a3;
  transform: translateY(-1px);
}

.btn-success {
  background-color: #28a745;
  border-color: #28a745;
}

.btn-success:hover {
  background-color: #218838;
  border-color: #1e7e34;
  transform: translateY(-1px);
}

.btn-outline-secondary {
  border-color: #6c757d;
  color: #6c757d;
}

.btn-outline-secondary:hover {
  background-color: #6c757d;
  border-color: #6c757d;
  transform: translateY(-1px);
}

/* Table Headers */
.table-primary th {
  background-color: #0066cc !important;
  color: white !important;
  font-weight: 600;
  border: none;
  padding: 1rem 0.75rem;
}

/* Badge Styling */
.badge {
  font-weight: 500;
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
}

/* Table Hover Effect */
.table-hover tbody tr:hover {
  background-color: rgba(0, 102, 204, 0.05);
}

/* Alert Styling */
.alert-info {
  background-color: rgba(13, 202, 240, 0.1);
  border: 1px solid rgba(13, 202, 240, 0.2);
  border-radius: 8px;
  color: #0c5460;
}

/* Background Styling */
.bg-light {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
  border: 1px solid #dee2e6;
}

/* Animations */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-pane {
  animation: fadeIn 0.3s ease-in-out;
}

/* Responsive Design */
@media (min-width: 1200px) {
  :root {
    --sidebar-width: 300px;
  }
}

@media (min-width: 992px) {
  .sidebar-overlay {
    display: none !important;
  }
  .mobile-sidebar-toggle {
    display: none;
  }
}

@media (max-width: 991px) {
  :root {
    --sidebar-width: 280px;
  }

  .sidebar {
    left: calc(-1 * var(--sidebar-width));
  }

  .sidebar.show {
    left: 0;
  }

  .main-content {
    margin-left: 0;
  }

  .main-content.expanded {
    margin-left: 0;
  }

  .content-wrapper {
    padding: 1rem;
  }

  .status-cards {
    grid-template-columns: 1fr;
  }

  .section-header {
    padding: 1rem;
  }

  .status-card {
    padding: 1.5rem;
  }

  .header-right {
    gap: 0.25rem;
  }

  .notification-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
  }

  .notification-btn span {
    display: none;
  }

  .jio-logo {
    width: 40px;
    height: 40px;
    font-size: 0.8rem;
  }

  .dropdown-menu {
    min-width: 180px;
    font-size: 0.9rem;
  }

  .dropdown-item {
    padding: 0.6rem 1rem;
  }

  .nav-link:not(.active):hover {
    padding-left: 1.5rem;
  }

  .sub-nav .nav-link:not(.active):hover {
    margin-left: 10px;
  }

  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .premium-tabs .nav-link {
    padding: 1rem 0.75rem;
    font-size: 0.9rem;
  }

  .premium-tabs .nav-link i {
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  :root {
    --sidebar-width: 260px;
  }

  .status-cards {
    gap: 1rem;
  }

  .status-card {
    padding: 1.25rem;
  }

  .status-number {
    font-size: 2rem;
  }

  .status-icon {
    font-size: 2rem;
  }

  .sidebar-header {
    padding: 1rem;
  }

  .nav-link {
    padding: 0.8rem 1.2rem;
    font-size: 0.85rem;
  }

  .sub-nav .nav-link {
    padding: 0.6rem 0.8rem 0.6rem 2.5rem;
    font-size: 0.8rem;
  }

  .header-right {
    justify-content: center;
    gap: 0.5rem;
  }

  .notification-btn {
    padding: 0.4rem;
    border-radius: 50%;
  }

  .profile-dropdown {
    font-size: 1.1rem;
    padding: 0.4rem;
  }

  .jio-logo {
    width: 36px;
    height: 36px;
    font-size: 0.75rem;
  }

  /* Mobile notification dropdown positioning */
  .notification-btn + .dropdown-menu,
  .notification-dropdown .dropdown-menu {
    position: fixed !important;
    top: 70px !important;
    left: 10px !important;
    right: 10px !important;
    transform: none !important;
    max-width: none !important;
    width: auto !important;
  }

  .notification-btn + .dropdown-menu.show,
  .notification-dropdown .dropdown-menu.show {
    transform: translateY(0);
  }

  .dropdown-menu {
    position: fixed !important;
    top: auto !important;
    bottom: 10px !important;
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    max-width: none !important;
    transform: none !important;
  }

  .dropdown-menu-end {
    right: 10px !important;
    left: 10px !important;
  }

  .dropdown-item-text {
    max-width: none;
    font-size: 0.8rem;
  }

  .premium-tabs {
    padding: 0 0.5rem;
  }

  .premium-tabs .nav-item {
    margin: 0 2px;
  }

  .premium-tabs .nav-link {
    padding: 0.8rem 0.5rem;
    font-size: 0.85rem;
  }

  .table-responsive {
    font-size: 0.85rem;
  }

  .btn {
    font-size: 0.85rem;
    padding: 0.6rem 1.2rem;
  }
}

@media (max-width: 576px) {
  .header-left .welcome-info {
    display: none;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .content-wrapper {
    padding: 0.75rem;
  }

  .section-header {
    padding: 0.75rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .status-card {
    padding: 1rem;
  }

  .status-number {
    font-size: 1.75rem;
  }

  .status-icon {
    font-size: 1.75rem;
  }

  .sidebar-brand {
    font-size: 1rem;
  }

  .main-sidebar-toggle {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .top-header {
    padding: 0.5rem 0;
  }

  .header-right {
    justify-content: flex-end;
    width: 100%;
  }

  .notification-btn {
    padding: 0.35rem;
  }

  .profile-dropdown {
    padding: 0.35rem;
    font-size: 1rem;
  }

  .jio-logo {
    width: 32px;
    height: 32px;
    font-size: 0.7rem;
    margin-right: 0.5rem;
  }

  .notification-badge {
    width: 16px;
    height: 16px;
    font-size: 0.65rem;
    top: -1px;
    right: -1px;
  }

  /* Mobile notification dropdown positioning for very small screens */
  .notification-btn + .dropdown-menu,
  .notification-dropdown .dropdown-menu {
    left: 5px !important;
    right: 5px !important;
    top: 65px !important;
  }

  .notification-btn + .dropdown-menu .dropdown-item-text,
  .notification-dropdown .dropdown-menu .dropdown-item-text {
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
  }

  .dropdown-menu {
    left: 5px !important;
    right: 5px !important;
    bottom: 5px !important;
  }

  .dropdown-item {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .dropdown-item i {
    width: 20px;
    text-align: center;
    margin-right: 0.5rem;
  }

  .container-fluid {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .premium-tabs .nav-link {
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem 0.25rem;
  }

  .premium-tabs .nav-link i {
    font-size: 0.9rem;
  }

  .premium-tabs .nav-link span {
    font-size: 0.75rem;
  }
}

/* Additional Enhancement for Better Text Visibility */
.nav-link,
.sub-nav .nav-link {
  overflow: visible;
  text-overflow: clip;
  word-wrap: break-word;
  line-height: 1.4;
}

/* Ensure submenu items are fully visible */
.sub-nav .sidebar-nav {
  padding: 0.5rem 0;
}

.sub-nav .nav-item {
  margin-bottom: 0.1rem;
}

/* Override Bootstrap default styles */
.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
  color: #0066cc !important;
  background-color: white !important;
  border-color: transparent transparent #0066cc transparent !important;
}

.nav-tabs .nav-link {
  color: #6c757d !important;
  border: none !important;
}

.nav-tabs .nav-link:hover,
.nav-tabs .nav-link:focus {
  color: #0066cc !important;
  border-color: transparent !important;
  isolation: isolate;
}

.nav-tabs {
  border-bottom: 2px solid #f1f3f4;
}

.nav-tabs .nav-link:hover {
  border-color: transparent !important;
  background: rgba(0, 102, 204, 0.05) !important;
  color: #0066cc !important;
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
  background: white !important;
  color: #0066cc !important;
  border: none !important;
  border-bottom: 3px solid #0066cc !important;
}

.premium-tabs .nav-link:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

