/* ==========================================================================
   Sneat HTML (Bootstrap 5) Modern Light Theme Stylesheet
   Signature Theme Color: #0099e6 (Logo Sky Blue)
   Background: #f5f5f9
   ========================================================================== */

:root {
  --bs-primary: #0099e6;
  --bs-primary-rgb: 0, 153, 230;
  --bs-primary-hover: #0088cc;
  --bs-secondary: #8592a3;
  --bs-success: #71dd37;
  --bs-info: #03c3ec;
  --bs-warning: #ffab00;
  --bs-danger: #ff3e1d;
  --bs-dark: #233446;
  --bs-light: #f5f5f9;
  --bs-body-bg: #f5f5f9;
  --bs-body-color: #566a7f;
  --bs-font-sans-serif: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --sneat-sidebar-width: 260px;
  --sneat-navbar-height: 64px;
}

body {
  font-family: var(--bs-font-sans-serif);
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
  font-size: 0.9375rem;
  line-height: 1.53;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #0099e6;
  text-decoration: none;
}
a:hover {
  color: #0088cc;
}


/* ==========================================================================
   Layout Wrapper & Structure
   ========================================================================== */
.layout-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

.layout-container {
  display: flex;
  flex: 1 1 auto;
  width: 100%;
  min-height: 100vh;
}

/* Sidebar */
.layout-menu {
  width: var(--sneat-sidebar-width);
  min-width: var(--sneat-sidebar-width);
  background: #ffffff;
  border-right: 1px solid #d9dee3;
  box-shadow: 0 0.125rem 0.375rem 0 rgba(161, 172, 184, 0.12);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transition: all 0.25s ease-in-out;
}

.app-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--sneat-navbar-height);
  padding: 0 1.5rem;
}

.app-brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.app-brand-logo {
  max-height: 38px;
  width: auto;
  object-fit: contain;
}

.app-brand-text {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0099e6;
  letter-spacing: -0.5px;
}

/* Menu items */
.menu-inner {
  padding: 0.5rem 0.75rem;
  list-style: none;
  margin: 0;
  flex: 1;
  overflow-y: auto;
}

.menu-header {
  padding: 1.25rem 1rem 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #a1acb8;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.menu-item {
  margin-bottom: 0.25rem;
}

.menu-link {
  display: flex;
  align-items: center;
  padding: 0.625rem 1rem;
  color: #697a8d;
  font-weight: 500;
  border-radius: 0.375rem;
  transition: all 0.15s ease-in-out;
  text-decoration: none;
  gap: 0.75rem;
}

.menu-link i {
  font-size: 1.25rem;
  color: #7e8d9f;
  transition: color 0.15s ease-in-out;
}

.menu-link:hover {
  background-color: rgba(0, 153, 230, 0.06);
  color: #0088cc;
}

.menu-link:hover i {
  color: #0099e6;
}

.menu-item.active > .menu-link {
  background-color: rgba(0, 153, 230, 0.12);
  color: #0099e6;
  font-weight: 600;
}

.menu-item.active > .menu-link i {
  color: #0099e6;
}

/* Submenu */
.menu-sub {

  list-style: none;
  padding-left: 2.25rem;
  margin: 0.25rem 0;
}

.menu-sub .menu-link {
  padding: 0.45rem 0.75rem;
  font-size: 0.875rem;
}

/* Page Layout Content */
.layout-page {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background-color: var(--bs-body-bg);
}

/* Top Navbar */
.layout-navbar {
  height: var(--sneat-navbar-height);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  margin: 0.75rem 1.5rem 0 1.5rem;
  background: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 2px 6px 0 rgba(67, 89, 113, 0.12);
  z-index: 999;
}

.layout-navbar .navbar-nav {
  display: flex;
  align-items: center;
  flex-direction: row;
  width: 100%;
}

.layout-menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: #566a7f;
  margin-right: 1rem;
}

@media (max-width: 1199.98px) {
  .layout-menu {
    position: fixed;
    top: 0;
    bottom: 0;
    left: -260px;
  }
  .layout-wrapper.layout-menu-expanded .layout-menu {
    left: 0;
  }
  .layout-menu-toggle {
    display: block;
  }
  .layout-navbar {
    margin: 0.5rem 1rem 0 1rem;
  }
}

/* User Avatar Dropdown */
.avatar {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  background-color: #e7e7ff;
  color: #696cff;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-online::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #71dd37;
  border: 2px solid #ffffff;
}

/* Content Container */
.content-wrapper {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
}

.container-xxl {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

/* Page Header & Breadcrumbs */
.page-header-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: #566a7f;
  margin-bottom: 0.25rem;
}

.breadcrumb {
  margin-bottom: 1.5rem;
  font-size: 0.8125rem;
}

.breadcrumb-item a {
  color: #8592a3;
}

.breadcrumb-item.active {
  color: #566a7f;
  font-weight: 600;
}

/* ==========================================================================
   Cards & UI Components
   ========================================================================== */
.card {
  background: #ffffff;
  border: none;
  border-radius: 0.5rem;
  box-shadow: 0 2px 6px 0 rgba(67, 89, 113, 0.12);
  margin-bottom: 1.5rem;
  transition: all 0.2s ease-in-out;
}

.card-header {
  background: transparent;
  border-bottom: 1px solid #eceef1;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #566a7f;
  margin: 0;
}

.card-body {
  padding: 1.5rem;
}

/* KPI / Stat Cards */
.card-stats {
  position: relative;
  overflow: hidden;
}

.card-stats .avatar-initial {
  width: 42px;
  height: 42px;
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.card-stats .stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #566a7f;
  line-height: 1.2;
}

.card-stats .stat-label {
  font-size: 0.875rem;
  color: #8592a3;
  font-weight: 500;
}

/* Buttons */
.btn {
  font-weight: 500;
  border-radius: 0.375rem;
  padding: 0.4375rem 1.25rem;
  font-size: 0.9375rem;
  transition: all 0.2s ease-in-out;
}

.btn-primary {
  background-color: #0099e6;
  border-color: #0099e6;
  color: #ffffff;
  box-shadow: 0 0.125rem 0.25rem 0 rgba(0, 153, 230, 0.4);
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background-color: #0088cc !important;
  border-color: #0088cc !important;
  box-shadow: 0 0.25rem 0.5rem 0 rgba(0, 153, 230, 0.4) !important;
}

.btn-success {
  background-color: #71dd37;
  border-color: #71dd37;
  color: #ffffff;
  box-shadow: 0 0.125rem 0.25rem 0 rgba(113, 221, 55, 0.4);
}

.btn-info {
  background-color: #03c3ec;
  border-color: #03c3ec;
  color: #ffffff;
  box-shadow: 0 0.125rem 0.25rem 0 rgba(3, 195, 236, 0.4);
}

.btn-warning {
  background-color: #ffab00;
  border-color: #ffab00;
  color: #ffffff;
  box-shadow: 0 0.125rem 0.25rem 0 rgba(255, 171, 0, 0.4);
}

.btn-danger {
  background-color: #ff3e1d;
  border-color: #ff3e1d;
  color: #ffffff;
  box-shadow: 0 0.125rem 0.25rem 0 rgba(255, 62, 29, 0.4);
}

.btn-outline-primary {
  color: #0099e6;
  border-color: #0099e6;
}

.btn-outline-primary:hover {
  background-color: #0099e6;
  color: #ffffff;
}

/* Badges */
.badge {
  padding: 0.35em 0.65em;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0.25rem;
  text-transform: capitalize;
}

.bg-label-primary {
  background-color: #e0f4ff !important;
  color: #0088cc !important;
}


.bg-label-success {
  background-color: #e8fadf !important;
  color: #71dd37 !important;
}

.bg-label-info {
  background-color: #d7f5fc !important;
  color: #03c3ec !important;
}

.bg-label-warning {
  background-color: #fff2d6 !important;
  color: #ffab00 !important;
}

.bg-label-danger {
  background-color: #ffe5e5 !important;
  color: #ff3e1d !important;
}

.bg-label-secondary {
  background-color: #ebeeed !important;
  color: #8592a3 !important;
}

/* Form controls */
.form-control, .form-select {
  border: 1px solid #d9dee3;
  border-radius: 0.375rem;
  padding: 0.4375rem 0.875rem;
  font-size: 0.9375rem;
  color: #566a7f;
  background-color: #ffffff;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus, .form-select:focus {
  border-color: #0099e6;
  box-shadow: 0 0 0 0.2rem rgba(0, 153, 230, 0.25);
}

.form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #566a7f;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 0.375rem;
}

.form-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0099e6;
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 0.5rem;
  margin: 1.5rem 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Dashboard Logo Watermark */
.content-wrapper {
  position: relative;
  overflow: hidden;
}

.content-wrapper::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  width: 520px;
  height: 520px;
  background-image: url('../../img/logo-watermark.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

/* Keep the content above the watermark with paint order only.
   Do NOT add a z-index here: it would turn .container-xxl into a stacking
   context, so any Bootstrap modal rendered inside the page content would be
   painted below .modal-backdrop (z-index 1050) and become un-clickable. */
.container-xxl {
  position: relative;
}

/* Tables & DataTables */
.table {
  color: #566a7f;
}

.table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
  color: #566a7f;
  background-color: #f5f5f9;
  border-bottom: 1px solid #d9dee3;
}

.table td {
  vertical-align: middle;
  border-color: #eceef1;
  font-size: 0.875rem;
}

.table-hover tbody tr:hover {
  background-color: rgba(67, 89, 113, 0.02);
}

/* DataTables Length Select & Filter Input */
.dataTables_length select,
div.dataTables_wrapper div.dataTables_length select {
  display: inline-block !important;
  width: auto !important;
  min-width: 80px !important;
  padding: 0.4375rem 2.25rem 0.4375rem 0.875rem !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  color: #566a7f !important;
  background-color: #ffffff !important;
  border: 1px solid #d9dee3 !important;
  border-radius: 0.375rem !important;
  margin: 0 0.5rem !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23566a7f' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.75rem center !important;
  background-size: 14px 12px !important;
}

div.dataTables_wrapper div.dataTables_filter input {
  border: 1px solid #d9dee3;
  border-radius: 0.375rem;
  padding: 0.4375rem 0.875rem;
  font-size: 0.875rem;
  color: #566a7f;
  background-color: #ffffff;
  outline: none;
  transition: all 0.2s ease-in-out;
}

div.dataTables_wrapper div.dataTables_filter input:focus {
  border-color: #0099e6;
  box-shadow: 0 0 0 0.2rem rgba(0, 153, 230, 0.25);
}

div.dataTables_wrapper div.dataTables_length label,
div.dataTables_wrapper div.dataTables_filter label {
  font-weight: 500;
  color: #697a8d;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
}

/* Modals */
.modal-content {

  border: none;
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.modal-header {
  border-bottom: 1px solid #eceef1;
  padding: 1.25rem 1.5rem;
}

.modal-footer {
  border-top: 1px solid #eceef1;
  padding: 1rem 1.5rem;
}

/* Footer */
.content-footer {
  padding: 1rem 0;
  font-size: 0.8125rem;
  color: #a1acb8;
  border-top: 1px solid #eceef1;
  margin-top: 2rem;
}

