﻿:root {
  --bs-primary: #00ccff;
}

html {
  font-size: 14px;
  interpolate-size: allow-keywords;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

a {
  color: #00bfff;
}

.btn-outline-secondary {
  --bs-btn-border-color: var(--bs-border-color);
}

#sidebar {
  transition: all 300ms ease-in-out;
}

.content {
  min-height: 100vh;
}

.nav {
  gap: 0.75rem;

  .nav-link {
    transition: 200ms linear;

    &:hover:not(.active) {
      background-color: rgba(0, 191, 255, 0.25);
    }
  }
}

.nav-link.active {
  color: #000 !important;
  font-weight: 700;
}

.icon-link-hover {
  --bs-icon-link-transform: translate3d(0, -0.125rem, 0);
  --bs-icon-link-hover-color: var(--bs-primary);
}

.bi-chevron-down {
  transition: transform 0.3s ease;
}

.bi-chevron-down.rotate,
.nav-link[aria-expanded="true"] > .bi-chevron-down {
  transform: rotate(180deg);
}

.nav-link.menu ~ .submenu .nav-link::before {
  content: "●";
  margin-inline-end: 1rem;
}

.submenu .nav-link.active::before {
  color: darkorange;
  text-shadow: 0 0 5px darkorange;
}

.pagination {
  --bs-pagination-padding-x: 0.675rem;
  --bs-pagination-padding-y: 0.175rem;
  --bs-pagination-color: rgb(var(--bs-secondary-color-rgb));
}

.wo-content {
  grid-template-columns: 1fr;
}

.button-nav-wrap {
  position: fixed;
}

.group-nav-button {
  position: fixed;
  bottom: 4rem;
  right: -100%;
  z-index: 9;
  transition: right 250ms ease;
}

.group-nav-button.show {
  right: 1.5rem;
}

/* --- Tampilan Mobile (Pola Card Stack) --- */
@media screen and (max-width: 575px) {
  .mobile-table thead {
    display: none;
  }

  .mobile-table,
  .mobile-table tbody,
  .mobile-table tr,
  .mobile-table td {
    display: block;
    width: 100%;
  }

  .mobile-table tbody {
    padding: 0.3rem;
  }

  .mobile-table tr {
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    overflow: hidden;
  }

  .mobile-table td {
    border: none;
    border-bottom: 1px solid #eee;
    position: relative;
    text-align: right;
  }

  .mobile-table td:last-child {
    border-bottom: 0;
  }

  .mobile-table td[data-label]::before {
    content: attr(data-label);
    margin-right: auto;
    position: sticky;
    left: 0;
    width: 45%;
    padding-right: 10px;
    font-weight: bold;
    text-align: left;
  }
}

@media (min-width: 576px) {
  .auth-container {
    width: 80%;
  }
}

@media (min-width: 768px) {
  #sidebar {
    aside {
      height: 100vh !important;
    }
  }

  .auth-container {
    width: 60%;
  }

  .button-nav-wrap {
    position: relative;
  }

  .group-nav-button {
    border: none !important;
    box-shadow: none !important;
    position: relative !important;
    bottom: unset !important;
    right: unset !important;
  }
}

@media (min-width: 992px) {
  .gx-8 {
    --bs-gutter-x: 8rem;
  }

  #sidebar {
    position: sticky !important;
    visibility: visible;
  }

  .auth-container {
    width: 40%;
  }

  .wo-content {
    grid-template-columns: 2fr 1fr;
  }
}
