
  /* Slightly larger sidebar icons and spacing */
  .nav-sidebar .nav-icon { font-size: 1.05rem; width: 1.6rem; }
  .nav-sidebar .nav-link { padding-top: .56rem; padding-bottom: .56rem; }
  .brand-link { height: 56px; display:flex; align-items:center; }
  /* Ensure overlay sits under AdminLTE sidebar toggling */
  #sidebar-overlay { transition: opacity .2s ease; }
  
  /* Keep the toggle button always visible */
  .navbar .nav-link[data-widget="pushmenu"] {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* Fix dropdown toggle clickability */
  .navbar .dropdown-toggle {
    cursor: pointer !important;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: auto !important;
  }
  
  .navbar .dropdown-toggle:hover {
    color: inherit;
  }
  
  /* Ensure dropdown menu displays properly */
  .dropdown-menu {
    min-width: 200px;
    position: absolute;
    z-index: 1000;
  }

  /* Admin Dropdown Styling */
  .admin-dropdown-toggle {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem !important;
    font-size: 0.9rem !important;
    color: #2c3e50 !important;
    transition: all 0.3s ease;
  }

  .admin-dropdown-toggle:hover {
    color: #007bff !important;
    background-color: rgba(0, 123, 255, 0.1);
    border-radius: 4px;
  }

  .admin-dropdown-toggle i {
    font-size: 1.2rem;
  }

  .admin-name {
    font-weight: 500;
  }

  .admin-dropdown-menu {
    min-width: 160px !important;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  .admin-dropdown-menu .dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: #2c3e50;
    transition: all 0.2s ease;
  }

  .admin-dropdown-menu .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #007bff;
  }

  .admin-dropdown-menu .dropdown-divider {
    margin: 0.4rem 0;
  }

  /* Dropdown header (user info) styling */
  .dropdown-header.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #fff !important;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  /* Make user dropdown full-width on very small screens for easier tap targets */
  @media (max-width: 575px) {
    .admin-dropdown-menu {
      min-width: 100% !important;
      left: 0 !important;
      right: 0 !important;
      margin: 0.25rem !important;
    }
  }
  
  /* Responsive: Sidebar and content adjustment */
  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 899;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .sidebar-overlay.show {
    display: block;
    opacity: 1;
  }
  
  @media (max-width: 991px) {
    .main-header.sticky-top {
      position: sticky;
      top: 0;
      z-index: 1000;
    }
    
    body.sidebar-collapse .main-sidebar {
      position: fixed;
      left: 0;
      top: 56px;
      width: 250px;
      height: calc(100% - 56px);
      transform: translateX(-100%);
      transition: transform 0.3s ease;
      z-index: 900;
    }
    
    body.sidebar-expand .main-sidebar {
      transform: translateX(0);
    }
    
    body.sidebar-expand .sidebar-overlay {
      display: block;
    }
    
    .content-wrapper {
      margin-left: 0 !important;
    }
    
    body.sidebar-expand .content-wrapper {
      margin-left: 250px;
    }
  }
  
  @media (max-width: 575px) {
    .navbar-brand {
      font-size: 0.9rem;
    }
    
    .main-header .navbar-nav {
      flex-direction: row;
    }
    
    .nav-link {
      padding: 0.5rem 0.75rem !important;
    }
  }

:root {
  --primary: #007bff;
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
}

body {
  background-color: #f8f9fa;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.content-wrapper {
  min-height: calc(100vh - 120px);
  background-color: #f8f9fa;
}

.main-footer {
  padding: 15px 0;
  background-color: #fff;
  border-top: 1px solid #e9ecef;
}

/* KPI Card Gradients */
.bg-gradient-blue {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.bg-gradient-success {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
}

.bg-gradient-warning {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%) !important;
}

.bg-gradient-danger {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%) !important;
}

.bg-gradient-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

/* Card Shadows & Hover */
.card {
  transition: all 0.3s ease;
  border-radius: 0.5rem;
}

.card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1) !important;
  transform: translateY(-2px);
}

.kpi-card {
  border-radius: 0.75rem;
  min-height: 160px;
  display: flex;
  align-items: center;
}

.hover-highlight:hover {
  background-color: #f8f9fa;
  cursor: pointer;
}

.hover-bg-light:hover {
  background-color: #f1f3f5 !important;
}

/* Typography */
.card-header {
  background-color: #fff;
  border-color: #e9ecef;
}

.opacity-75 {
  opacity: 0.75;
}

.opacity-90 {
  opacity: 0.9;
}

.opacity-25 {
  opacity: 0.25;
}

/* Badges */
.badge {
  padding: 0.4rem 0.8rem;
  border-radius: 0.375rem;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
}

/* Navbar Enhancement */
.main-header {
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Sidebar */
.main-sidebar {
  background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
}

.sidebar .nav-link.active {
  background-color: rgba(255, 255, 255, 0.1);
  border-left: 3px solid #fff;
}

/* Table improvements */
.table thead th {
  border-color: #e9ecef;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.875rem;
  color: #6c757d;
}

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

/* Action buttons spacing */
.btn-group .btn {
  margin-right: 0.25rem;
}

.btn-group .btn:last-child {
  margin-right: 0;
}

/* ------------------------------------------------------------------
   Consistent border-radius for cards/boxes
   Ensure all panels, cards and small boxes have the same rounding
   and avoid children overflowing the rounded corners.
   ------------------------------------------------------------------ */
.card,
.small-box,
.info-box,
.callout,
.profile-card,
.widget,
.box {
  border-radius: 0.75rem !important;
  overflow: hidden;
}

.card-header,
.small-box .inner,
.info-box .info-box-content,
.box-header {
  border-top-left-radius: 0.75rem !important;
  border-top-right-radius: 0.75rem !important;
}

.card-footer,
.box-footer {
  border-bottom-left-radius: 0.75rem !important;
  border-bottom-right-radius: 0.75rem !important;
}

/* Ensure modal and dropdown panels match rounding */
.modal-content,
.dropdown-menu,
.popover {
  border-radius: 0.5rem !important;
}

/* Tables inside cards should not remove rounded corners */
.card .table-responsive {
  border-bottom-left-radius: 0.75rem;
  border-bottom-right-radius: 0.75rem;
  overflow-x: auto;     /* ✅ allow horizontal scroll */
  overflow-y: hidden;  /* optional, keeps vertical clean */
}
.table-responsive {
  -webkit-overflow-scrolling: touch;
}


/* Small tweak for AdminLTE specific boxes */
.main-sidebar, .main-header, .main-footer { border-radius: 0; }

/* Users table base */
.user-table {
  width: 100%;
  border-collapse: collapse;
}

/* Common cells */
.user-table th,
.user-table td {
  vertical-align: middle;
}

/* Text-heavy columns */
.col-name,
.col-email,
.col-club {
  white-space: normal;
  min-width: 180px;
}

/* Phone */
.col-phone {
  min-width: 140px;
}

/* Always protect actions column */
.user-table th.col-actions,
.user-table td.col-actions {
  min-width: 150px;
  white-space: nowrap;
  flex-shrink: 0;
}
