@charset "UTF-8";
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 14px;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-attachment: fixed;
  color: #1e293b;
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: #6366f1;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  color: #1e293b;
  margin-top: 0;
}

.page {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(20px);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}
.sidebar.collapsed {
  transform: translateX(-100%);
}

.navbar-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.top-row.navbar {
  padding: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none !important;
}
.navbar-brand:hover {
  text-decoration: none !important;
}
.navbar-brand i {
  color: #6366f1;
  font-size: 1.5rem;
}

.navbar-toggler {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-scrollable {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0;
}
.nav-scrollable::-webkit-scrollbar {
  width: 4px;
}
.nav-scrollable::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.nav-menu {
  padding: 0 0.75rem;
}
.nav-menu .nav-loading {
  padding: 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}
.nav-menu .nav-item {
  margin-bottom: 0.25rem;
}
.nav-menu .nav-item .nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: rgba(255, 255, 255, 0.7);
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}
.nav-menu .nav-item .nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  text-decoration: none;
  transform: translateX(4px);
}
.nav-menu .nav-item .nav-link.active {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}
.nav-menu .nav-icon {
  font-size: 1.125rem;
  width: 1.25rem;
  text-align: center;
}
.nav-menu .nav-text {
  flex: 1;
}
.nav-menu .nav-arrow {
  font-size: 0.75rem;
  opacity: 0.7;
  transition: transform 0.2s ease;
}
.nav-menu .nav-header {
  padding: 0.75rem 1rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.75rem;
}
.nav-menu .nav-separator {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0.75rem 0;
}
.nav-menu .nav-submenu {
  display: none;
  margin-left: 1rem;
  padding-left: 0.75rem;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  margin-top: 0.25rem;
}
.nav-menu .nav-submenu.show {
  display: block;
}
.nav-menu .nav-submenu .nav-link {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}
.nav-menu .nav-submenu .nav-link:hover {
  transform: translateX(2px);
}

main {
  flex: 1;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left 0.3s ease;
}
main.sidebar-collapsed {
  margin-left: 0;
}

.toprow-container {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  gap: 1rem;
}

.sidebar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #1e293b;
}
.sidebar-toggle:hover {
  background: #6366f1;
  color: #ffffff;
  border-color: #6366f1;
  transform: scale(1.05);
}
.sidebar-toggle i {
  font-size: 1.25rem;
}

.top-row-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.top-row-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.content-container {
  flex: 1;
  padding: 1.5rem;
  position: relative;
  z-index: 0;
}

.content {
  position: relative;
  border-radius: 1rem;
  padding: 1.5rem;
  min-height: calc(100vh - 8rem);
}
.content::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: inherit;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}
.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
  color: #ffffff;
}

.btn-secondary {
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #e2e8f0;
}
.btn-secondary:hover {
  background: #f8fafc;
  color: #6366f1;
  border-color: #6366f1;
}

.btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-outline-primary {
  background: transparent;
  color: #6366f1;
  border: 1px solid #6366f1;
}
.btn-outline-primary:hover {
  background: #6366f1;
  color: #ffffff;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

.btn-link {
  background: none;
  border: none;
  color: #6366f1;
  padding: 0;
}
.btn-link:hover {
  transform: none;
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 0.5rem;
}

.action-dropdown {
  position: relative;
  display: inline-block;
}

.action-dropdown-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #64748b;
}
.action-dropdown-btn:hover {
  background: #f8fafc;
  color: #1e293b;
  border-color: #cbd5e1;
}

.action-dropdown-menu {
  position: fixed;
  min-width: 180px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  overflow: hidden;
  animation: slideDown 0.15s ease;
}

.action-dropdown-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: transparent;
}

.action-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.625rem 1rem;
  background: none;
  border: none;
  color: #334155;
  font-size: 0.875rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}
.action-dropdown-item:hover {
  background: #f8fafc;
}
.action-dropdown-item i {
  font-size: 0.9375rem;
  width: 18px;
  color: #64748b;
}
.action-dropdown-item:hover i {
  color: #6366f1;
}
.action-dropdown-item.text-primary {
  color: #6366f1;
}
.action-dropdown-item.text-primary i {
  color: #6366f1;
}
.action-dropdown-item.text-success {
  color: #10b981;
}
.action-dropdown-item.text-success i {
  color: #10b981;
}
.action-dropdown-item.text-danger {
  color: #ef4444;
}
.action-dropdown-item.text-danger i {
  color: #ef4444;
}
.action-dropdown-item.text-warning {
  color: #f59e0b;
}
.action-dropdown-item.text-warning i {
  color: #f59e0b;
}
.action-dropdown-item.text-info {
  color: #0ea5e9;
}
.action-dropdown-item.text-info i {
  color: #0ea5e9;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.card-header {
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 600;
}

.card-body {
  padding: 1.25rem;
}

.card-footer {
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.table {
  width: 100%;
  border-collapse: collapse;
}
.table th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  background: rgba(248, 250, 252, 0.8);
  border-bottom: 2px solid #e2e8f0;
}
.table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  vertical-align: middle;
}
.table tbody tr {
  transition: background 0.15s ease;
}
.table tbody tr:hover {
  background: rgba(248, 250, 252, 0.5);
}

.form-control,
.form-select {
  width: 100%;
  padding: 0.625rem 1rem;
  font-size: 0.9375rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #ffffff;
  color: #1e293b;
  transition: all 0.2s ease;
}
.form-control:hover,
.form-select:hover {
  border-color: #cbd5e1;
}
.form-control:focus,
.form-select:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.form-control::placeholder,
.form-select::placeholder {
  color: #94a3b8;
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #1e293b;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
}

.bg-primary {
  background: rgba(99, 102, 241, 0.15) !important;
  color: #6366f1 !important;
}

.bg-success {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #10b981 !important;
}

.bg-warning {
  background: rgba(245, 158, 11, 0.15) !important;
  color: #b45309 !important;
}

.bg-danger {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #ef4444 !important;
}

.bg-info {
  background: rgba(6, 182, 212, 0.15) !important;
  color: #0891b2 !important;
}

.bg-secondary {
  background: rgba(100, 116, 139, 0.15) !important;
  color: #64748b !important;
}

.modal-backdrop {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-weight: 600;
  font-size: 1.125rem;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  gap: 0.5rem;
}

body.modal-open {
  overflow: hidden;
  padding-right: 0 !important;
}

.modal-custom-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1055;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.15s ease;
}
.modal-custom-backdrop .modal-dialog {
  position: relative;
  width: 100%;
  margin: auto;
  pointer-events: auto;
}
.modal-custom-backdrop .modal-dialog.modal-sm {
  max-width: 400px;
}
.modal-custom-backdrop .modal-dialog.modal-lg {
  max-width: 800px;
}
.modal-custom-backdrop .modal-dialog.modal-xl {
  max-width: 1200px;
}

.alert {
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  border: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.alert-success {
  background: rgba(16, 185, 129, 0.15);
  color: #065f46;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.15);
  color: #92400e;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #991b1b;
}

.alert-info {
  background: rgba(6, 182, 212, 0.15);
  color: #0e7490;
}

.text-primary {
  color: #6366f1 !important;
}

.text-success {
  color: #10b981 !important;
}

.text-warning {
  color: #f59e0b !important;
}

.text-danger {
  color: #ef4444 !important;
}

.text-muted {
  color: #94a3b8 !important;
}

.valid.modified:not([type=checkbox]) {
  border-color: #10b981;
}

.invalid {
  border-color: #ef4444;
}

.validation-message {
  color: #ef4444;
  font-size: 0.8125rem;
  margin-top: 0.25rem;
}

.blazor-error-boundary {
  background: #ef4444;
  color: #ffffff;
  padding: 1rem;
  border-radius: 0.5rem;
}
.blazor-error-boundary::after {
  content: "Đã xảy ra lỗi.";
}

#blazor-error-ui {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: #ef4444;
  color: #ffffff;
  text-align: center;
  z-index: 9999;
}
#blazor-error-ui .reload {
  color: #ffffff;
  margin-left: 0.5rem;
}
#blazor-error-ui .dismiss {
  cursor: pointer;
  position: absolute;
  right: 1rem;
}

@media (max-width: 991.98px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.show {
    transform: translateX(0);
  }
  main {
    margin-left: 0;
  }
  .navbar-toggler {
    display: block;
  }
  .content-container {
    padding: 1rem;
  }
}
.spinner-border {
  width: 2rem;
  height: 2rem;
  border-width: 0.2rem;
}

.spinner-border-sm {
  width: 1rem;
  height: 1rem;
  border-width: 0.15rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fade-in {
  animation: fadeIn 0.3s ease;
}

.animate-slide-up {
  animation: slideUp 0.3s ease;
}

.nav-tabs {
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}
.nav-tabs .nav-link {
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s ease;
  padding: 0.75rem 1.25rem;
}
.nav-tabs .nav-link:hover {
  color: #6366f1 !important;
  border-color: transparent;
  background: rgba(255, 255, 255, 0.05);
}
.nav-tabs .nav-link.active, .nav-item.show .nav-tabs .nav-link {
  color: #6366f1 !important;
  background: transparent !important;
  border-bottom: 2px solid #6366f1 !important;
  font-weight: 600;
}

.col-action {
  width: 150px;
}

.col-action-sm {
  width: 100px;
}

body.modal-open {
  overflow: hidden;
}

.modal-custom-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1055;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.15s ease;
}
.modal-custom-backdrop .modal-dialog {
  position: relative;
  width: 100%;
  margin: auto;
  pointer-events: auto;
}
.modal-custom-backdrop .modal-dialog.modal-sm {
  max-width: 400px;
}
.modal-custom-backdrop .modal-dialog.modal-lg {
  max-width: 800px;
}
.modal-custom-backdrop .modal-dialog.modal-xl {
  max-width: 1200px;
}

.confirm-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.15s ease;
}

.confirm-modal {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  min-width: 320px;
  max-width: 420px;
  animation: slideUp 0.2s ease;
}

.confirm-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem;
  border-bottom: 1px solid #e2e8f0;
}
.confirm-header i {
  font-size: 1.5rem;
}
.confirm-header h5 {
  margin: 0;
  font-weight: 600;
}

.confirm-body {
  padding: 1.25rem;
}
.confirm-body p {
  margin: 0;
  color: #64748b;
}

.confirm-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 0 0 0.75rem 0.75rem;
}

.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 360px;
}

.toast-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: slideIn 0.2s ease;
}

.toast-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
}

.toast-content {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.toast-message {
  font-size: 0.8125rem;
  color: #64748b;
}

.toast-close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0;
  font-size: 1rem;
  transition: color 0.15s;
}
.toast-close:hover {
  color: #1e293b;
}

.toast-success .toast-icon {
  color: #10b981;
}

.toast-error .toast-icon {
  color: #ef4444;
}

.toast-warning .toast-icon {
  color: #d97706;
}

.toast-info .toast-icon {
  color: #0284c7;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.user-menu-container {
  position: relative;
}

.user-menu-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem;
  padding-right: 0.75rem;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.user-menu-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.user-avatar {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8125rem;
}

.user-avatar-lg {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
}

.chevron {
  font-size: 0.75rem;
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: 260px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  overflow: hidden;
}

.dropdown-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: #1e293b;
}

.user-role {
  font-size: 0.75rem;
  color: #64748b;
}

.dropdown-divider {
  height: 1px;
  background: #e2e8f0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: #334155;
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.15s ease;
}
.dropdown-item:hover {
  background: #f8fafc;
  text-decoration: none;
}
.dropdown-item:hover i {
  color: #6366f1;
}
.dropdown-item i {
  font-size: 1rem;
  width: 20px;
  color: #64748b;
}
.dropdown-item.text-danger {
  color: #ef4444;
}
.dropdown-item.text-danger i {
  color: #ef4444;
}

.dropdown-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
}

.modal-top {
  z-index: 1060;
}

.text-pre-wrap {
  white-space: pre-wrap;
}

.table-scroll-container {
  max-height: 400px;
  overflow-y: auto;
}

.login-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%), radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
}

.login-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  padding: 2rem;
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.login-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 1px rgba(255, 255, 255, 0.5) inset;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.brand-section {
  text-align: center;
  margin-bottom: 2rem;
}

.app-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}
.app-icon i {
  font-size: 2.5rem;
  color: white;
}

.app-title {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.app-subtitle {
  font-size: 1rem;
  color: #6b7280;
  font-weight: 500;
  margin: 0;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
  margin: 2rem 0;
}

.info-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(102, 126, 234, 0.05);
  border-radius: 12px;
  transition: all 0.3s ease;
}
.info-item:hover {
  background: rgba(102, 126, 234, 0.1);
  transform: translateY(-2px);
}
.info-item i {
  font-size: 1.5rem;
  color: #667eea;
}
.info-item span {
  font-size: 0.75rem;
  color: #4b5563;
  font-weight: 500;
  text-align: center;
}

.description {
  margin-bottom: 2rem;
}
.description p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #6b7280;
  text-align: center;
  margin: 0;
}

.action-section {
  text-align: center;
}

.login-button {
  width: 100%;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.login-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.5);
}
.login-button:active {
  transform: translateY(0);
}
.login-button i {
  font-size: 1.125rem;
}

.login-hint {
  font-size: 0.75rem;
  color: #9ca3af;
  margin: 0;
}

.footer-info {
  text-align: center;
  margin-top: 2rem;
}
.footer-info p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

@media (max-width: 640px) {
  .login-content {
    padding: 1rem;
  }
  .login-card {
    padding: 2rem 1.5rem;
    border-radius: 20px;
  }
  .app-icon {
    width: 64px;
    height: 64px;
  }
  .app-icon i {
    font-size: 2rem;
  }
  .app-title {
    font-size: 1.5rem;
  }
  .info-section {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .info-item {
    flex-direction: row;
    justify-content: center;
  }
}
@media print {
  .sidebar,
  .navbar-container,
  .nav-scrollable,
  .nav-menu {
    display: none !important;
  }
  .toprow-container,
  .top-row,
  .sidebar-toggle {
    display: none !important;
  }
  .d-print-none,
  .no-print {
    display: none !important;
  }
  .modal-backdrop,
  .action-dropdown-overlay,
  .action-dropdown-menu {
    display: none !important;
  }
  .toast-container,
  .notification-bell {
    display: none !important;
  }
  main {
    margin-left: 0 !important;
    padding: 0 !important;
  }
  .page {
    display: block !important;
  }
  .content-container {
    padding: 0 !important;
  }
  .content {
    padding: 0 !important;
    min-height: auto !important;
    background: white !important;
  }
  .content::before {
    display: none !important;
  }
  body {
    background: white !important;
    color: black !important;
    font-size: 11pt !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .report-container {
    background: white !important;
    padding: 0 !important;
  }
  .report-page {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 1cm !important;
    box-shadow: none !important;
    border: none !important;
  }
  .badge {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  table {
    page-break-inside: auto;
  }
  tr {
    page-break-inside: avoid;
    page-break-after: auto;
  }
  thead {
    display: table-header-group;
  }
  a[href]:after {
    content: none !important;
  }
}
.report-container {
  background-color: #f5f5f5;
  padding: 20px;
  min-height: 100vh;
}

.report-page {
  background-color: white;
  padding: 2cm;
  margin: 0 auto;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.report-page.landscape {
  width: 297mm;
  min-height: 210mm;
}
.report-page.portrait {
  width: 210mm;
  min-height: 297mm;
}

.report-table {
  font-size: 11px;
}
.report-table th {
  background-color: #f8f9fa;
  font-weight: bold;
  vertical-align: middle;
}
.report-table td {
  vertical-align: middle;
}

.criteria-node {
  margin-bottom: 1rem;
}

.criteria-item {
  padding: 0.5rem;
  border-left: 3px solid #dee2e6;
  margin-bottom: 0.5rem;
}
.criteria-item.level-0 {
  border-left-color: #0d6efd;
  background-color: #f8f9fa;
  font-weight: bold;
}
.criteria-item.level-1 {
  border-left-color: #6c757d;
  margin-left: 1rem;
}
.criteria-item.level-2 {
  border-left-color: #adb5bd;
  margin-left: 2rem;
}
.criteria-item.level-3 {
  border-left-color: #ced4da;
  margin-left: 3rem;
}

.comment-item {
  background-color: #fff3cd;
  padding: 0.5rem;
  margin: 0.25rem 0;
  border-radius: 4px;
  font-size: 0.9rem;
}

.opinion-item {
  background-color: #f8f9fa;
}

.unit-reply {
  border-left: 3px solid #0d6efd;
}

/* Page Loader Overlay */
.page-loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  /* Dark semi-transparent */
  backdrop-filter: blur(8px);
  /* Glassmorphism blur */
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  /* Highest priority */
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

.page-loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/* Quantum Spinner Animation */
.quantum-spinner {
  position: relative;
  width: 100px;
  height: 100px;
  perspective: 800px;
}

.quantum-spinner .ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid transparent;
}

.quantum-spinner .ring-1 {
  border-bottom: 4px solid #06b6d4;
  /* Cyan */
  transform: rotateX(60deg) rotateY(0deg);
  animation: spin-x 2s linear infinite;
}

.quantum-spinner .ring-2 {
  border-right: 4px solid #8b5cf6;
  /* Violet */
  transform: rotateX(0deg) rotateY(60deg);
  animation: spin-y 2.5s linear infinite;
}

.quantum-spinner .ring-3 {
  border-top: 4px solid #ec4899;
  /* Pink */
  transform: rotateX(60deg) rotateY(60deg);
  animation: spin-z 3s linear infinite;
}

.quantum-spinner .core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, #fff, #3b82f6);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 20px #3b82f6, 0 0 40px #3b82f6;
  animation: pulse-core 1.5s ease-in-out infinite alternate;
}

.loader-text {
  color: white;
  font-family: "Segoe UI", sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.pulse-text {
  animation: pulse-opacity 1.5s ease-in-out infinite alternate;
}

/* Animations */
@keyframes spin-x {
  0% {
    transform: rotateX(60deg) rotateY(0deg) rotate(0deg);
  }
  100% {
    transform: rotateX(60deg) rotateY(0deg) rotate(360deg);
  }
}
@keyframes spin-y {
  0% {
    transform: rotateX(0deg) rotateY(60deg) rotate(0deg);
  }
  100% {
    transform: rotateX(0deg) rotateY(60deg) rotate(360deg);
  }
}
@keyframes spin-z {
  0% {
    transform: rotateX(60deg) rotateY(60deg) rotate(0deg);
  }
  100% {
    transform: rotateX(60deg) rotateY(60deg) rotate(360deg);
  }
}
@keyframes pulse-core {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes pulse-opacity {
  from {
    opacity: 0.6;
  }
  to {
    opacity: 1;
  }
}
.table th.table-col-highlight,
.table td.table-col-highlight {
  background-color: #fff3cd;
}

.card-header-tabs {
  margin: 0;
}

.leaflet-top.leaflet-right:has(.leaflet-routing-alternatives-container:empty) {
  display: none !important;
}

/*# sourceMappingURL=app.css.map */
