/* Rakhson's Technology brand — Skydash layout with official logo colors. */
:root {
  --brand-blue: #087fc1;
  --brand-blue-dark: #05669d;
  --brand-green: #18c878;
  --brand-lime: #8bea25;
  --brand-black: #000000;
  --brand-cyan: #4fc3f7;
  --brand-indigo: #3d5a99;
  --brand-coral: #f3797e;
}

.btn-primary {
  --bs-btn-bg: #087fc1;
  --bs-btn-border-color: #087fc1;
  --bs-btn-hover-bg: #05669d;
  --bs-btn-hover-border-color: #05669d;
  --bs-btn-active-bg: #05669d;
  --bs-btn-active-border-color: #045886;
  --bs-btn-disabled-bg: #087fc1;
  --bs-btn-disabled-border-color: #087fc1;
}

.btn-outline-primary {
  --bs-btn-color: #087fc1;
  --bs-btn-border-color: #087fc1;
  --bs-btn-hover-bg: #087fc1;
  --bs-btn-hover-border-color: #087fc1;
  --bs-btn-active-bg: #05669d;
  --bs-btn-active-border-color: #05669d;
}

.badge-primary,
.badge-outline-primary {
  color: #087fc1 !important;
  border-color: #087fc1 !important;
  background: transparent !important;
}

a {
  color: #087fc1;
}

a:hover {
  color: #05669d;
}

.sidebar .nav .nav-item.active > .nav-link {
  background: #087fc1 !important;
}

@media (min-width: 992px) {
  .sidebar-fixed .sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    height: calc(100vh - 60px);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }

  .sidebar-fixed .sidebar .nav {
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    margin-bottom: 0;
  }
}

.sidebar .nav .nav-item .nav-link:hover .menu-title,
.sidebar .nav .nav-item .nav-link:hover i {
  color: #087fc1;
}

.navbar .navbar-brand-wrapper {
  background: transparent !important;
  padding-left: 10px;
  padding-right: 8px;
  overflow: hidden;
}

.navbar .navbar-brand-wrapper .navbar-brand {
  padding: 0;
  margin-right: 0 !important;
}

.navbar .navbar-brand-wrapper .navbar-brand.brand-logo {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 100%;
}

.navbar .navbar-brand-wrapper .navbar-brand img {
  height: auto !important;
  width: auto !important;
  max-width: 100% !important;
  max-height: 50px;
  object-fit: contain;
  object-position: left center;
  margin: 0 !important;
}

.navbar .navbar-brand-wrapper .brand-logo-mini img {
  width: 40px;
  height: 40px;
  max-width: 40px;
  object-fit: contain;
}

.auth .brand-logo {
  background: transparent;
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
}

.auth .brand-logo img {
  width: 220px;
  max-width: 100%;
  height: auto;
}

.admin-avatar-initials,
.student-avatar-initials {
  background: #087fc1 !important;
}

#settings-trigger {
  background: #087fc1;
}

.card.card-tale {
  background: linear-gradient(135deg, #4fc3f7 0%, #087fc1 100%);
  color: #fff;
}

.card.card-tale:hover {
  background: linear-gradient(135deg, #6fd0fb 0%, #0b8fd4 100%);
}

.card.card-dark-blue {
  background: linear-gradient(135deg, #3d5a99 0%, #243b6b 100%);
  color: #fff;
}

.card.card-dark-blue:hover {
  background: linear-gradient(135deg, #4a6bb0 0%, #2c4780 100%);
}

.card.card-light-blue {
  background: linear-gradient(135deg, #7b8cff 0%, #5b6be6 100%);
  color: #fff;
}

.card.card-light-blue:hover {
  background: linear-gradient(135deg, #8f9cff 0%, #6c7aeb 100%);
}

.card.card-light-danger {
  background: linear-gradient(135deg, #f78fa3 0%, #f3797e 100%);
  color: #fff;
}

.card.card-light-danger:hover {
  background: linear-gradient(135deg, #faa4b4 0%, #f59095 100%);
}

.stretch-card.transparent .card,
.card.card-tale,
.card.card-dark-blue,
.card.card-light-blue,
.card.card-light-danger {
  border: 0;
  border-radius: 14px;
  box-shadow: none;
}

.stretch-card.text-white,
a.stretch-card {
  text-decoration: none;
}

.card.card-tale p,
.card.card-dark-blue p,
.card.card-light-blue p,
.card.card-light-danger p {
  color: #fff;
}

.date-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #e6e9f4;
  border-radius: 20px;
  padding: 8px 16px;
  color: #6c7383;
  font-size: 13px;
  font-weight: 500;
}

.card {
  border-radius: 12px;
}

.card .card-title {
  font-weight: 600;
}

.badge {
  background: transparent;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  border-radius: 4px;
}

.table .btn-outline-primary,
.table .btn-outline-info {
  border-radius: 20px;
  padding: 0.28rem 1rem;
  font-size: 12px;
}

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

.table-toolbar .table-length {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6c7383;
  font-size: 13px;
  margin: 0;
}

.table-toolbar .table-length select {
  width: auto;
  min-width: 70px;
  display: inline-block;
}

.table-toolbar .table-search {
  margin-left: auto;
  max-width: 240px;
  width: 100%;
}

.table-paginate {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 1rem;
}

.table-paginate button {
  min-width: 34px;
  height: 34px;
  border: 1px solid #e6e9f4;
  background: #fff;
  color: #6c7383;
  border-radius: 4px;
  font-size: 13px;
}

.table-paginate button.is-active,
.table-paginate button:hover {
  background: #087fc1;
  border-color: #087fc1;
  color: #fff;
}

.card .table {
  border-collapse: separate;
  border-spacing: 0;
}

.card .table thead th {
  background: #087fc1;
  color: #fff;
  font-weight: 500;
  font-size: 13px;
  border: 0 !important;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  padding: 0.95rem 1.15rem;
}

.card .table thead th:first-child {
  border-radius: 10px 0 0 10px;
}

.card .table thead th:last-child {
  border-radius: 0 10px 10px 0;
}

.card .table thead th:only-child {
  border-radius: 10px;
}

.card .table thead th.sort-asc::after,
.card .table thead th.sort-desc::after {
  content: "";
  display: inline-block;
  margin-left: 6px;
  border: 4px solid transparent;
  vertical-align: middle;
}

.card .table thead th.sort-asc::after {
  border-bottom-color: #fff;
  margin-bottom: 2px;
}

.card .table thead th.sort-desc::after {
  border-top-color: #fff;
  margin-top: 2px;
}

.card .table tbody td {
  border-top: 0;
  border-bottom: 1px solid #f0f1f6;
  background: transparent;
}

.card .table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-accent-bg: transparent;
  background: transparent;
}

.card .table-hover tbody tr:hover td {
  background: #f7fbfe;
}

.quick-link-grid .btn {
  border-radius: 20px;
  padding: 0.65rem 1rem;
}

.chart-card canvas {
  max-height: 280px;
}

.form-control:focus,
.form-select:focus {
  border-color: #087fc1;
  box-shadow: 0 0 0 0.15rem rgba(8, 127, 193, 0.18);
}
