@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Figtree:wght@300..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

body {
  font-family: "DM Sans", sans-serif !important;
}

:root { --radius: 16px; }
.card { border-radius: var(--radius); box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
.btn { border-radius: 7px; }
.badge { border-radius: 10px; }
.table thead th { background: #f8f9fa; }
.searchbar { background:#fff; border-radius:7px; padding:7px 14px; border:1px solid #e9ecef; }
/* Pagination Styles */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  justify-content: center;
}

.pagination.justify-content-center {
  justify-content: center;
}

.pagination .page-item {
  display: inline-flex;
}

.pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.15s ease;
  cursor: pointer;
}

.pagination .page-link:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #e4001b;
}

.pagination .page-item.active .page-link {
  background: #e4001b;
  border-color: #e4001b;
  color: #ffffff;
  font-weight: 600;
}

.pagination .page-item.active .page-link:hover {
  background: #c20017;
  border-color: #c20017;
  color: #ffffff;
}

.pagination .page-item.disabled .page-link {
  background: #f9fafb;
  border-color: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination .page-item.ellipsis .page-link {
  border: none;
  background: transparent;
  cursor: default;
  color: #6b7280;
  padding: 0 8px;
  min-width: auto;
}

.pagination .page-item.ellipsis .page-link:hover {
  background: transparent;
  color: #6b7280;
}

@media (max-width: 768px) {
  .pagination .page-link {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    font-size: 0.8125rem;
  }
}

.table td, .table th { vertical-align: middle; font-size: 15px; }
.card { border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.03); }

.manage-card{
  background:#f8f9fb;border:1px dashed #cfd4da;border-radius:.75rem;padding:1rem
}
.manage-grid{
  display:grid;grid-template-columns: 1.2fr .9fr;gap:1rem;align-items:end
}
.form-stack{
  display:grid;grid-template-columns: 1fr auto;gap:.75rem;align-items:end
}
.form-stack .form-label{margin-bottom:.25rem;font-weight:600}
@media (max-width: 992px){
  .manage-grid{grid-template-columns:1fr}
}


/* Login Style */
.brandLogo {
    padding-bottom: 40px;
    padding-top: 40px;
}
.brandLogo img  {
  width: 190px;
  height: auto;
}
.loginText ul li span {
    display: block;
    font-size: 18px;
    font-weight: 500;
    color: #1D1D1D;
}
.loginText ul li {
    background-image: url(../images/tick-svg.svg); /* Relative to CSS file - correct */
    background-repeat: no-repeat;
    background-position: top left;
    padding-left: 40px;
    border-bottom: 2px dashed #DBD8F8;
    padding-bottom: 20px;
    background-size: 30px;
    margin-bottom: 20px;
    display: block;
    list-style: none;
    font-size: 14px;
    color: #606060;
}
.loginText ul {
    padding:0;
}
.loginText h2 {
    color: #e4001b;
    font-size: 34px;
    margin-bottom: 30px;
}
.loginText h3 {
    margin-bottom: 3px;
}
.loginText {
    padding-left: 150px;
}
.btmPadding {
    padding-bottom: 50px;
    padding-top: 40px;
}
.sideMainPic {
    position: absolute;
    top: 0;
    right: 0;
    width: 49%;
    z-index: -1;
    height: 100vh;
}
.sideMainPic img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}
.posInitial {
    position: initial;
}
.body-index .content {
    overflow-y: inherit !important;
}

.body-index .form-control {
    border: 1px solid #cfd0d0 !important;
    padding: 11px 15px;
    border-radius: 9px;
    font-size: 15px; 
}
.body-index label {
    font-weight: 600;
    font-size: 15px;
}
.body-index button {
    height: 46px;
    border-radius: 9px;
    font-size: 17px;
}


.turnstile-floating {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 9999;
}
@media (max-width: 768px) {
    .turnstile-floating {
        right: 8px;
        bottom: 8px;
        transform: scale(0.9);
        transform-origin: bottom right;
    }
}
/* Login Style */




:root {
    --bs-primary: #e4001b;
    --bs-primary-rgb: 228, 0, 27;
}

.btn-primary {
    background-color: #e4001b !important;
    border-color: #e4001b !important;
    color: #ffffff !important;
    border-radius: 0.45rem;
    font-weight: 500;
    transition: all 0.18s ease-in-out;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #c20017 !important;
    border-color: #c20017 !important;
    transform: translateY(-1px);
}

.btn-primary:disabled,
.btn-primary.disabled {
    background-color: #e4001b !important;
    border-color: #e4001b !important;
    opacity: 0.6;
    box-shadow: none;
}

.btn-outline-primary {
    color: #e4001b !important;
    border-color: #e4001b !important;
    border-radius: 0.45rem;
    font-weight: 500;
    transition: all 0.18s ease-in-out;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: #e4001b !important;
    color: #ffffff !important;
    box-shadow: 0 0.2rem 0.45rem rgba(228, 0, 27, 0.35);
}
.btn-outline-secondary {
    border-radius: 0.45rem;
    font-weight: 500;
    color: #4b4f56;
    border-color: #ced4da;
    background-color: #ffffff;
    transition: all 0.18s ease-in-out;
}
.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:active {
    background-color: #f5f5f5;
    border-color: #b9bec4;
    color: #2c3138;
}
.nav-tabs {
    border-bottom: 1px solid #e6e6e6;
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    padding: 0.6rem 1rem;
    color: #6c757d;
    font-weight: 500;
    border-radius: 0;
    transition: all 0.18s ease-in-out;
}
.nav-tabs .nav-link:hover {
    color: #e4001b;
    border-bottom-color: rgba(228, 0, 27, 0.3);
    background-color: #fafafa;
}
.nav-tabs .nav-link.active {
    color: #e4001b;
    border-bottom-color: #e4001b;
    background-color: #ffffff;
}
.nav-pills .nav-link {
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font-weight: 500;
    color: #6c757d;
    transition: all 0.18s ease-in-out;
}
.nav-pills .nav-link.active,
.nav-pills .nav-link:hover {
    background-color: #e4001b;
    color: #ffffff;
}
.badge.bg-dark-subtle {
    background-color: #f4f4f4 !important;
    color: #3b3f45 !important;
}
.badge.bg-danger {
    background-color: #e4001b !important;
    color: #fff !important;
}
a {
    color: #e4001b;
}

a:hover {
    color: #c20017;
}
.form-control:focus,
.form-select:focus {
    border-color: rgba(228, 0, 27, 0.6);
    box-shadow: 0 0 0 0.16rem rgba(228, 0, 27, 0.25);
}


























/* Top welcome strip */
.navbar-top {
    background: #ffffff;
    border-radius: 14px;
    padding: 12px 20px;
    margin: 18px 0 6px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    border: 1px solid #e5e7eb;
    margin-top: 0 !important;
    margin-bottom: 20px;
}

.navbar-top-welcome {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-top-emoji {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.navbar-top-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.navbar-top-greet {
  font-size: 0.8rem;
  color: #6b7280;
}

.navbar-top-name .name {
  font-weight: 600;
  font-size: 1.05rem;
  color: #111827;
}

.navbar-top-name .role {
  font-weight: 500;
  font-size: 0.95rem;
  color: #4b5563;
}

/* Notification bell */
.navbar-top-notify .notification-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #f3f4f6;
  transition: background 0.18s ease, transform 0.18s ease;
}

.navbar-top-notify .notification-icon-wrap i.fa-bell {
  font-size: 1.1rem;
}

.navbar-top-notify .notification-icon-wrap:hover {
  background: #e5e7eb;
  transform: translateY(-1px);
}

.navbar-top-notify .badge {
  position: absolute;
  top: -4px;
  right: -2px;
  font-size: 0.7rem;
  padding: 3px 6px;
  box-shadow: 0 0 0 2px #ffffff;
}

/* User dropdown */
.navbar-top-user {
  position: relative;
}

.user-dropdown-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 4px 8px;
  background: #f3f4f6;
  border: none;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.user-dropdown-btn:hover {
  background: #f3f4f6;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.06);
}

.user-avatar-small {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ff6b35;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.user-dropdown-btn i.fa-bars {
  color: #4b5563;
  font-size: 1rem;
  opacity: 0.85;
}

.user-dropdown-menu {
  min-width: 280px;
  padding: 0;
  border-radius: 14px;
  border: none;
  margin-top: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  background: #ffffff;
}

.user-dropdown-profile {
  padding: 20px;
  text-align: center;
  background: #f9fafb;
  border-radius: 14px 14px 0 0;
  list-style: none;
}

.user-avatar-large {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0 auto 12px;
  text-shadow: 0 1px 2px rgba(255, 200, 0, 0.3);
}

.user-name {
  font-weight: 600;
  font-size: 1rem;
  color: #111827;
  margin-bottom: 4px;
}

.user-email {
  font-size: 0.875rem;
  color: #6b7280;
}

.user-dropdown-menu .dropdown-item {
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #374151;
  font-size: 0.9rem;
  transition: background 0.15s ease;
  text-decoration: none;
}

.user-dropdown-menu .dropdown-item:hover {
  background: #f3f4f6;
  color: #374151;
}

.user-dropdown-menu .dropdown-item i {
  width: 20px;
  text-align: center;
  color: #6b7280;
  flex-shrink: 0;
}

.user-dropdown-menu .dropdown-item.text-danger {
  color: #dc2626;
}

.user-dropdown-menu .dropdown-item.text-danger:hover {
  background: #fef2f2;
  color: #b91c1c;
}

.user-dropdown-menu .dropdown-item.text-danger i {
  color: #dc2626;
}

.user-dropdown-menu .dropdown-divider {
  margin: 0;
  border-color: #e5e7eb;
}

.dropdown-section-header {
  padding: 8px 20px 4px;
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 400;
  list-style: none;
}

/* Mobile tweaks */
@media (max-width: 576px) {
  .navbar-top {
    padding: 10px 12px;
  }

  .navbar-top-name .name {
    font-size: 0.98rem;
  }

  .navbar-top-greet {
    font-size: 0.76rem;
  }
}














/* ===== Notifications Page ===== */

.notif-header h4 {
  font-weight: 600;
}
.notif-markall-btn {
  border-radius: 999px;
  border: 1px solid #f97373;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #b91c1c;
  background: #fff5f5;
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.08);
}
.notif-markall-btn:hover {
  background: #fee2e2;
  color: #991b1b;
}
/* List container */
.notif-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
/* Single card */
.notif-item {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  text-decoration: none;
  border: 1px solid #f3e4b3;
  background: #fff7df;
  color: #3f3b24;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease, border-color 0.15s ease;
}
.notif-item:hover {
  background: #fff3c8;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}
/* unread vs read */
.notif-unread {
  border-left: 4px solid #f59e0b;
}
.notif-read {
  background: #f9fafb;
  border-color: #e5e7eb;
  color: #4b5563;
}
.notif-read:hover {
  background: #f3f4f6;
}
/* left icon + dot */
.notif-main {
  gap: 0.8rem;
}
.notif-icon-wrap {
  position: relative;
  margin-top: 0.1rem;
}
.notif-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #fef3c7;
  color: #b45309;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.notif-unread .notif-icon {
  background: #fef3c7;
  color: #b45309;
}
.notif-read .notif-icon {
  background: #e5e7eb;
  color: #4b5563;
}
.notif-dot {
  position: absolute;
  right: -2px;
  top: -2px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 0 0 2px #fff7df;
}
/* text side */
.notif-content {
  min-width: 0;
}
.notif-type {
  font-size: 0.95rem;
  font-weight: 700;
  color: #92400e;
}
.notif-read .notif-type {
  color: #374151;
}
.notif-message {
  font-size: 0.9rem;
  color: #4b5563;
  margin-bottom: 0.25rem;
}
.notif-meta {
  font-size: 0.78rem;
  color: #9ca3af;
}
/* "New" pill */
.notif-pill {
  font-size: 0.7rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: #fee2e2;
  color: #b91c1c;
  font-weight: 600;
}
/* right action */
.notif-actions {
  display: flex;
  align-items: center;
  margin-left: 0.75rem;
}
.notif-read-btn {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #374151;
  text-decoration: none;
}
.notif-read-btn:hover {
  background: #111827;
  color: #f9fafb;
  border-color: #111827;
}
/* responsive tweak */
@media (max-width: 576px) {
  .notif-item {
    padding: 0.8rem 0.9rem;
    flex-direction: column;
    gap: 0.4rem;
  }
  .notif-actions {
    justify-content: flex-end;
    margin-left: 0;
  }
}

/* ========================================
   COMPREHENSIVE MOBILE RESPONSIVE STYLES
   ======================================== */

/* Base responsive adjustments */
@media (max-width: 768px) {
  /* Container padding adjustments */
  .container,
  .container-fluid {
    padding-left: 12px;
    padding-right: 12px;
  }

  /* Typography scaling */
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  h4 { font-size: 1.1rem; }
  h5 { font-size: 1rem; }
  h6 { font-size: 0.95rem; }

  /* Card adjustments */
  .card {
    border-radius: 12px;
    padding: 1rem !important;
  }

  .card-body {
    padding: 1rem !important;
  }

  /* Tables - ensure horizontal scroll */
  .table-responsive {
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
  }

  .table {
    font-size: 0.875rem;
    min-width: 600px;
  }

  .table td,
  .table th {
    padding: 0.5rem 0.4rem;
    font-size: 0.875rem;
    white-space: nowrap;
  }

  .table th {
    font-size: 0.8125rem;
  }

  /* Action buttons in tables */
  .table .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.8125rem;
    white-space: nowrap;
  }

  .table .btn-sm {
    padding: 0.2rem 0.4rem;
    font-size: 0.75rem;
  }

  /* Form adjustments */
  .form-control,
  .form-select {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 0.5rem 0.75rem;
  }

  .form-label {
    font-size: 0.875rem;
    margin-bottom: 0.4rem;
    font-weight: 500;
  }

  /* Form groups and rows */
  .row.g-2,
  .row.g-3,
  .row.g-4 {
    margin-left: -8px;
    margin-right: -8px;
  }

  .row.g-2 > *,
  .row.g-3 > *,
  .row.g-4 > * {
    padding-left: 8px;
    padding-right: 8px;
  }

  /* Stack form columns on mobile */
  .row.align-items-center > [class*="col-md"],
  .row.align-items-center > [class*="col-lg"],
  .row.align-items-center > [class*="col-xl"] {
    margin-bottom: 0.75rem;
  }

  /* Buttons */
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    white-space: normal;
    word-wrap: break-word;
  }

  .btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
  }

  /* Button groups */
  .btn-group,
  .d-flex.gap-2 {
    flex-wrap: wrap;
    gap: 0.5rem !important;
  }

  /* Search and filter forms */
  form.row.g-2 {
    margin-bottom: 1rem;
  }

  form.row.g-2 > [class*="col-"] {
    margin-bottom: 0.75rem;
  }

  /* Manage grid - already responsive but ensure */
  .manage-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Form stack */
  .form-stack {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  /* Dashboard cards/metrics */
  .row.g-3 > [class*="col-md"],
  .row.g-3 > [class*="col-lg"],
  .row.g-3 > [class*="col-xl"] {
    margin-bottom: 1rem;
  }

  /* Mini cards on dashboard */
  .mini-card {
    padding: 1rem;
  }

  .mini-card .h3 {
    font-size: 1.75rem;
  }

  /* Navbar top adjustments */
  .navbar-top {
    padding: 10px 12px;
    margin-bottom: 15px;
    border-radius: 12px;
  }

  .navbar-top .d-flex {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  /* Breadcrumbs */
  .breadcrumb-container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .breadcrumb-nav {
    font-size: 0.8125rem;
  }

  /* Settings sections */
  .settings-section {
    margin-bottom: 1.5rem;
  }

  .settings-section-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  /* Login page */
  .loginText {
    padding-left: 0 !important;
    padding-top: 2rem;
  }

  .loginText h2 {
    font-size: 1.75rem;
  }

  .loginText ul li {
    font-size: 0.875rem;
    padding-bottom: 15px;
    margin-bottom: 15px;
  }

  .sideMainPic {
    display: none;
  }

  .bgLogin {
    padding: 2rem 1rem;
    width: 100% !important;
    max-width: 100% !important;
  }

  .body-index .container .row {
    flex-direction: column;
  }

  .body-index .col-md-5,
  .body-index .col-md-7,
  .body-index .col-sm-5,
  .body-index .col-xs-12 {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  .brandLogo {
    padding-bottom: 20px;
    padding-top: 20px;
  }

  .brandLogo img {
    width: 150px;
  }

  /* Modal adjustments */
  .modal-dialog {
    margin: 1rem;
  }

  .modal-content {
    border-radius: 12px;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 1rem;
  }

  /* Badges */
  .badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
  }

  /* Alert adjustments */
  .alert {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    border-radius: 8px;
  }

  /* Tabs */
  .nav-tabs {
    flex-wrap: wrap;
    border-bottom: 1px solid #e6e6e6;
  }

  .nav-tabs .nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }

  /* Dropdown menus */
  .dropdown-menu {
    min-width: 200px;
    max-width: calc(100vw - 2rem);
    font-size: 0.875rem;
  }

  /* Action buttons row */
  .d-flex.justify-content-between {
    flex-direction: column;
    gap: 0.75rem;
  }

  .d-flex.justify-content-between.align-items-center {
    align-items: flex-start !important;
  }

  /* Stats and metrics */
  .h3, .h4, .h5 {
    font-size: 1.25rem;
  }

  /* Spacing adjustments */
  .mb-3 { margin-bottom: 1rem !important; }
  .mb-4 { margin-bottom: 1.25rem !important; }
  .mt-3 { margin-top: 1rem !important; }
  .mt-4 { margin-top: 1.25rem !important; }

  /* Login activity table */
  .login-activity-table {
    font-size: 0.8125rem;
  }

  .login-activity-table th,
  .login-activity-table td {
    padding: 0.5rem 0.4rem;
  }

  /* Account security sections */
  .settings-section {
    padding: 1rem;
  }

  /* Settings forms */
  .settings-section .row > [class*="col-md"] {
    margin-bottom: 1rem;
  }

  /* Login activity table */
  .login-activity-table {
    min-width: 600px;
  }

  .login-activity-empty {
    padding: 2rem 1rem;
    text-align: center;
  }

  /* Button save */
  .btn-save {
    width: 100%;
  }

  /* Mobile menu toggle button */
  .mobile-menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    color: #374151;
    font-size: 1.25rem;
    cursor: pointer;
    transition: background 0.15s ease;
  }

  .mobile-menu-toggle:hover {
    background: #e5e7eb;
  }

  @media (min-width: 993px) {
    .mobile-menu-toggle {
      display: none !important;
    }
  }

  /* Content area adjustments */
  .content {
    padding: 1rem 0.75rem;
  }

  /* Ensure proper stacking for col-md-* on mobile */
  [class*="col-md"] {
    margin-bottom: 0.75rem;
  }

  /* Input groups responsive */
  .input-group {
    flex-wrap: wrap;
  }

  .input-group .form-control,
  .input-group .form-select,
  .input-group .btn {
    flex: 1 1 auto;
    min-width: 0;
  }

  /* Lead view specific adjustments */
  .lead-details-grid {
    grid-template-columns: 1fr;
  }

  /* Chat/message containers */
  .chat-container,
  .message-container {
    max-width: 100%;
  }

  /* Modal on mobile */
  .modal {
    padding: 0.5rem;
  }

  .modal-dialog {
    margin: 0.5rem auto;
  }
}

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575px) {
  /* Even tighter spacing */
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  /* Tables get even smaller text */
  .table {
    font-size: 0.8125rem;
  }

  .table td,
  .table th {
    padding: 0.4rem 0.3rem;
    font-size: 0.8125rem;
  }

  /* Forms full width */
  form .col-md-6,
  form .col-md-4,
  form .col-md-3,
  form .col-md-2,
  form .col-md-1 {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* Buttons full width in forms */
  form .btn {
    width: 100%;
    margin-top: 0.5rem;
  }

  /* Hide less important columns in tables if needed */
  .table .d-none.d-md-table-cell {
    display: none !important;
  }

  /* Stack action buttons */
  .d-flex.gap-2 {
    flex-direction: column;
  }

  .d-flex.gap-2 .btn {
    width: 100%;
  }

  /* Card headers */
  .card-header {
    padding: 0.75rem;
    font-size: 0.9375rem;
  }

  /* H1-H6 smaller */
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.15rem; }
  h4 { font-size: 1rem; }

  /* Pagination smaller */
  .pagination {
    gap: 0.375rem;
  }

  .pagination .page-link {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    font-size: 0.75rem;
  }

  /* Navbar top compact */
  .navbar-top {
    padding: 8px 10px;
  }

  .navbar-top-name .name {
    font-size: 0.9rem;
  }

  .navbar-top-name .role {
    font-size: 0.85rem;
  }

  /* User dropdown */
  .user-dropdown-menu {
    min-width: calc(100vw - 2rem);
    max-width: 320px;
  }

  /* Login page adjustments */
  .bgLogin {
    padding: 1.5rem 1rem;
  }

  .brandLogo {
    padding-bottom: 15px;
    padding-top: 15px;
  }

  .brandLogo img {
    width: 130px;
  }

  .body-index .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  /* Device badges smaller */
  .device-badge {
    font-size: 0.7rem;
    padding: 3px 10px;
  }

  /* Settings sections tighter */
  .settings-section {
    padding: 0.75rem;
  }

  .settings-section-title {
    font-size: 1.15rem;
  }

  /* Impersonation banner */
  .alert-warning.d-flex {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
  }

  .alert-warning.d-flex .d-flex.align-items-center {
    flex-wrap: wrap;
  }

  .alert-warning.d-flex form {
    width: 100%;
  }

  .alert-warning.d-flex .btn {
    width: 100%;
  }
}

/* Medium devices and up - ensure proper spacing */
@media (min-width: 769px) and (max-width: 991px) {
  /* Tablet adjustments */
  .table {
    font-size: 0.9375rem;
  }

  form .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Large screens - optimize spacing */
@media (min-width: 1200px) {
  .container {
    max-width: 1320px;
  }
}

/* Print styles - hide non-essential elements */
@media print {
  .navbar-top,
  .sidebar,
  .breadcrumb-container,
  .btn,
  .pagination,
  .dropdown-menu {
    display: none !important;
  }

  .table {
    font-size: 0.75rem;
  }

  .card {
    border: 1px solid #ddd;
    box-shadow: none;
  }
}
