:root {
  --admin-bg: #f3f6fb;
  --sidebar-bg: #0c5fa9;
  --sidebar-active: #10d4ff;
  --text-muted: #6c757d;
  --card-border: #e9ecef;
  --card-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 2px 4px rgba(16, 24, 40, .04);
}

.admin-bg {
  background: var(--admin-bg);
  height: 100vh;
  width: 100vw;
  overflow-y: auto;
  overflow-x: hidden;
}

/* .admin-bg {
  background: var(--admin-bg);
  min-height: 100vh;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
} */


.login-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: .5rem;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.login-left {
  background: linear-gradient(180deg, #0b5ed7 0%, #10d4ff 100%);
  min-height: 340px;
}

.login-right {
  padding: 2rem;
}

.btn-cyan {
  background: #10d4ff;
  border-color: #10d4ff;
  color: #003547;
}

.btn-cyan:hover {
  background: #0fc6f0;
  border-color: #0fc6f0;
}

.password-toggle {
  position: absolute;
  right: .5rem;
  top: 50%;
  transform: translateY(-50%);
  text-decoration: none;
  color: var(--text-muted);
}

.admin-shell {
  display: flex;
  min-height: 100vh;
  background: var(--admin-bg);
  width: 100%;
  overflow-x: hidden;
}

.admin-sidebar {
  width: 260px;
  height: 100vh;
  background: var(--sidebar-bg);
  color: #fff;
  position: relative;
  transition: width 0.3s ease-in-out;
}



.sidebar-extra {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  width: calc(100vw - 260px);
  height: 100vh;
  background-color: #6c757d63;
}

@media screen and (max-width: 768px) {
  #admin-sidebar.collapsed {
    transform: translateX(-100%);
    width: 0;
    padding: 0 !important;
    border: 0;
    overflow: hidden;
  }

  .sidebar-extra {
    display: block;
  }
}

.admin-brand {
  font-weight: 700;
  letter-spacing: .02em;
}

.admin-menu .nav-link {
  color: #cfe6ff;
  padding: .6rem 1rem;
  border-radius: .375rem;
}

.admin-menu .nav-link.active {
  background: var(--sidebar-active);
  color: #003547;
}

.admin-topbar {
  height: 56px;
  background: #fff;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  padding: 0 1rem;
}

.admin-content {
  padding: 1.25rem 1.75rem;
  height: calc(100vh - 56px);
  overflow: auto;
}

.admin-card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: .75rem;
  box-shadow: var(--card-shadow);
}

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

.metric-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #003547;
  background: linear-gradient(180deg, #b3ecff 0%, #10d4ff 100%);
}

@media screen and (max-width: 768px) {
  .table {
    width: max-content;
  }
}

.table thead th {
  background: #f8f9fa;
  font-weight: 500;
  border-bottom: 1px solid var(--card-border);
}

.table tbody td {
  border-top: 1px solid var(--card-border);
}

.table-responsive {
  border: 1px solid var(--card-border);
  border-radius: .75rem;
  background: #fff;
}

.toolbar {
  display: flex;
  gap: .5rem;
  margin-bottom: .75rem;
}

.btn-soft {
  background: #eef6ff;
  border: 1px solid #d7e8ff;
  color: #0b5ed7;
}

.btn-soft:hover {
  background: #e0efff;
}

.search-input {
  max-width: 420px;
}

.search-input .form-control {
  border-radius: 999px;
  background: #f8fbff;
}

.search-input .input-group-text {
  border-radius: 999px 0 0 999px;
  background: #eef6ff;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #dee2e6;
}

.toggle-sidebar {
  color: #0b5ed7;
}


@media (max-width: 768px) {
  .login-card {
    grid-template-columns: 1fr;
  }

  .login-left {
    min-height: 180px;
  }

  .login-right {
    padding: 1.5rem;
  }
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

main {
  width: 100%;
  overflow-x: hidden;
}

 .table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.export-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.search-box {
  width: 260px;
}

@media (max-width: 767px) {
  .table-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .export-buttons {
    justify-content: flex-start;
  }

  .search-box {
    width: 100%;
  }
}