/* body {
  font: Arial;
 } */

* {
  font-family: Arial;
}

/* body.theme-light {
  background: #f9fafb;
  color: #111827;
} */

a {
  color: #a5b4fc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.topbar {
  background: #020617;
  color: #f9fafb;
  padding: 8px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #1f2937;
  font-size: 0.9rem;
}

body.theme-light .topbar {
  background: #ffffff;
  color: #111827;
  border-bottom-color: #e5e7eb;
}

.topbar-right a {
  color: inherit;
  margin-left: 12px;
  font-size: 0.85rem;
}

.topbar-right a {
  color: #4f46e5;
  /* Indigo color */
}

.topbar-lang,
.topbar-theme {
  margin-left: 10px;
  font-size: 0.8rem;
  color: #9ca3af;
  display: inline-block;
}

body.theme-light .topbar-lang,
body.theme-light .topbar-theme {
  color: #6b7280;
}

.topbar-lang a,
.topbar-theme a {
  margin: 0 4px;
}

.app-layout {
  display: flex;
  min-height: calc(100vh - 40px);
}

.sidebar {
  width: 230px;
  flex-shrink: 0;
  background: #020617;
  color: #e5e7eb;
  border-right: 1px solid #1f2937;
  padding: 16px 14px 18px 14px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

body.theme-light .sidebar {
  background: #f9fafb;
  color: #111827;
  border-right-color: #e5e7eb;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.sidebar-header img {
  max-height: 80px;
  width: auto;
  border-radius: 6px;

  -webkit-border-radius: 6px;
  -moz-border-radius: 6px;
  -ms-border-radius: 6px;
  -o-border-radius: 6px;
}

.sidebar-title {
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
}

.sidebar-nav a {
  display: block;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.86rem;
  color: inherit;
  border: 1px solid transparent;
  text-decoration: none;
}

.sidebar-nav a:hover {
  border-color: #4f46e5;
  background: rgba(79, 70, 229, 0.15);
}

body.theme-light .sidebar-nav a:hover {
  background: rgba(59, 130, 246, 0.07);
  border-color: #60a5fa;
}

.sidebar-section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  margin-top: 8px;
  margin-bottom: 4px;
}


/* ============================================================================= */
.sidebar-section {
  margin-bottom: 10px;
}

.sidebar-section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.sidebar-section-label::after {
  content: '▾';
  font-size: 0.7rem;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.sidebar-section.collapsed .sidebar-section-label::after {
  transform: rotate(-90deg);
}

.sidebar-section .sidebar-nav {
  max-height: 1000px;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.sidebar-section.collapsed .sidebar-nav {
  max-height: 0;
  display: none;
}



/* ============================================================================= */

body.theme-light .sidebar-section-label {
  color: #9ca3af;
}

.main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 18px 30px 18px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 10px;
}



/* -------------------- FOOTER -------------------- */
footer {
  padding: 14px 16px 18px;
  font-size: 12px;
  color: #6b7280;
  text-align: center;
}

body.theme-dark footer {
  color: #9ca3af;
}



.sidebar-label-link {
  display: block;
  text-decoration: none;
  color: #9ca3af;
  /* normal label color */
  padding: 6px 0;
}

.sidebar-label-link.active {
  font-weight: 600;

  color: #2563eb;
  /* active color */
}

.sidebar-label-link:hover {
  color: #1d4ed8;
  text-decoration: none;
}

.sidebar-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  margin-top: 8px;
  margin-bottom: 4px;
}



@media (max-width: 900px) {
  .app-layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .sidebar-nav a {
    font-size: 0.8rem;
    padding: 5px 8px;
  }

  .sidebar-section-label {
    display: none;
    cursor: pointer;
  }

  .main {
    padding: 14px 14px 24px 14px;
  }
}









.header-h1 {
  font-size: 28px;
  color: black;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: capitalize;
}

body.theme-dark .header-h1 {
  color: #e5e7eb;
}

.btn {
  align-self: flex-end;
  margin-bottom: 8px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
}


button {
  align-self: flex-end;
  margin-bottom: 8px;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
}

.btn:hover {
  text-decoration: none;
}

.btn-create {
  background-color: #16a34a;
  color: #ffffff;
  text-decoration: none;
}

.btn-edit {
  background-color: #2563eb;
  color: #ffffff;
  text-decoration: none;
}

.btn-create-new {
  background-color: #1D4ED8;
  color: #ffffff;
  text-decoration: none;
}

.btn-update {
  background-color: #16a34a;
  color: #ffffff;
  text-decoration: none;
}

.btn-delete {
  background-color: #dc2626;
  color: #ffffff;
  text-decoration: none;
}

.btn-pdf {
  background-color: #374151;
  color: #ffffff;
  text-decoration: none;
}

.btn-search {
  background-color: #6b7280;
  color: #ffffff;
  text-decoration: none;
}


.btn-export {
  background: #1d4ed8;
  color: #fff;
  text-decoration: none;
}

.btn-reset {
  background: #555555;
  color: #fff;
  text-decoration: none;
}

.btn-qr {
  background: #154c79;
  color: #fff;
  text-decoration: none;
}