html, body {
  height: 100%;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #f5f7fb;
}

.sa-layout--full {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.sa-layout--full > nav {
  flex-shrink: 0;
  position: relative;
  z-index: 1000;
}

.sa-navbar {
  background: linear-gradient(135deg, #3949ab 0%, #5c6bc0 100%) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  padding: 0.75rem 1.5rem;
  min-height: 60px;
}

.sa-navbar .navbar-brand {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff !important;
  letter-spacing: -0.3px;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.sa-navbar .navbar-brand:hover,
.sa-navbar .navbar-brand:focus {
  color: #e8eaf6 !important;
  text-decoration: none;
}

.sa-navbar .navbar-nav {
  align-items: center;
}

.sa-navbar .nav-link {
  color: rgba(255, 255, 255, 0.95) !important;
  font-weight: 500;
  font-size: 14px;
  padding: 0.5rem 1rem !important;
  transition: all 0.2s ease;
}

.sa-navbar .nav-link:hover {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.sa-navbar .nav-link.text-white {
  color: rgba(255, 255, 255, 0.95) !important;
}

.sa-navbar .nav-link.text-white:hover {
  color: #ffffff !important;
}

.sa-navbar .dropdown-menu {
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  margin-top: 8px;
  padding: 0.5rem 0;
}

.sa-navbar .dropdown-item {
  padding: 0.5rem 1rem;
  font-size: 14px;
  transition: all 0.2s ease;
}

.sa-navbar .dropdown-item:hover {
  background-color: #f5f7fb;
  color: #3949ab;
}

.sa-navbar .dropdown-toggle::after {
  margin-left: 0.5rem;
}

.sa-navbar .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3);
}

.sa-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.sa-toolbar {
  background: #ffffff;
  color: #333333;
  border-bottom: 1px solid #e2e6f0;
}

.sa-toolbar__title {
  font-size: 18px;
  font-weight: 600;
  margin-left: 8px;
}

.sa-sidenav {
  width: 230px;
  background: #ffffff;
  border-right: 1px solid #e2e6f0;
}

.sa-sidenav__item--active p {
  font-weight: 600;
  color: #5c6bc0;
}

.sa-layout-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.sa-sidebar-container {
  width: 240px;
  background-color: #ffffff;
  border-right: 1px solid #e2e6f0;
  overflow-y: auto;
  flex-shrink: 0;
}

.sa-sidebar {
  padding: 16px 0;
}

.sa-sidebar .nav-link {
  color: #666;
  padding: 12px 20px;
  border-radius: 0;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}

.sa-sidebar .nav-link:hover {
  background-color: #f5f7fb;
  color: #3949ab;
}

.sa-sidebar .nav-link.active {
  background-color: #e8eaf6;
  color: #3949ab;
  font-weight: 600;
  border-left: 3px solid #3949ab;
}

.sa-content-header {
  margin-bottom: 24px;
  padding: 0;
}

.sa-content-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: #1a1a1a;
}

.sa-content {
  background-color: #f5f7fb;
  padding: 24px;
  overflow-y: auto;
}

.sa-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 24px;
  margin-bottom: 24px;
}

.sa-card-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e6f0;
}

.sa-card-title {
  font-size: 20px;
  font-weight: 600;
  color: #1a237e;
  margin: 0;
}

.sa-card-body {
  /* Body content */
}

.simple-layout {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f6f0ff, #fdfbff);
  padding: 20px;
}

.login-container {
  width: 100%;
  max-width: 480px;
}

.login-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 40px;
}

.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-title {
  font-size: 32px;
  font-weight: 700;
  color: #3949ab;
  margin: 0 0 8px 0;
  letter-spacing: -0.5px;
}

.login-subtitle {
  font-size: 14px;
  color: #757575;
  margin: 0;
  font-weight: 400;
}

.sa-layout--simple {
  background: linear-gradient(135deg, #f6f0ff, #fdfbff);
}

.sa-auth-card {
  max-width: 380px;
  width: 100%;
  padding: 24px 32px;
  border-radius: 12px;
  background-color: #ffffff;
}

.sa-auth-title {
  text-align: center;
  margin-bottom: 16px;
  font-weight: 600;
  color: #3949ab;
}

.sa-auth-button {
  width: 100%;
  margin-top: 8px;
}

.sa-auth-error {
  color: #e53935;
  margin-top: 4px;
  margin-bottom: 8px;
}

.sa-dashboard {
  max-width: 1400px;
  margin: 0 auto;
}

.sa-dashboard__title {
  font-size: 28px;
  font-weight: 700;
  color: #1a237e;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.sa-dashboard__cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.sa-dashboard-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #e8eaf6;
}

.sa-dashboard-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.sa-dashboard-card__label {
  font-size: 12px;
  text-transform: uppercase;
  color: #9e9e9e;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: block;
}

.sa-dashboard-card__value {
  font-size: 32px;
  font-weight: 700;
  color: #3949ab;
  line-height: 1.2;
}

.sa-dashboard__empty {
  margin-top: 48px;
  text-align: center;
  color: #9e9e9e;
  font-size: 15px;
  padding: 40px 20px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Modal View Styles */
.modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.modal-header {
  background: linear-gradient(135deg, #3949ab 0%, #5c6bc0 100%);
  color: #ffffff;
  border-radius: 12px 12px 0 0;
  padding: 20px 28px;
  border-bottom: none;
}

.modal-header .modal-title {
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.modal-header .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
  opacity: 0.9;
}

.modal-header .btn-close:hover {
  opacity: 1;
}

.modal-body {
  padding: 28px;
  background-color: #fafbfc;
}

.modal-body .view-section {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid #e8eaf6;
  transition: box-shadow 0.2s ease;
}

.modal-body .view-section:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.modal-body .view-section-title {
  font-size: 14px;
  font-weight: 600;
  color: #3949ab;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8eaf6;
}

.modal-body .view-field {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.modal-body .view-field:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.modal-body .view-field-label {
  font-size: 12px;
  font-weight: 600;
  color: #757575;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
  display: block;
}

.modal-body .view-field-value {
  font-size: 15px;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.6;
  word-break: break-word;
}

.modal-body .view-field-value strong {
  color: #3949ab;
  font-weight: 600;
}

.modal-body .view-field-value.text-break {
  white-space: pre-wrap;
  word-wrap: break-word;
}

.modal-body .badge {
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
}

.modal-body .row {
  margin-left: -8px;
  margin-right: -8px;
}

.modal-body .row > [class*="col-"] {
  padding-left: 8px;
  padding-right: 8px;
}

.modal-footer {
  background-color: #ffffff;
  border-top: 1px solid #e8eaf6;
  border-radius: 0 0 12px 12px;
  padding: 16px 28px;
}

.modal-footer .btn {
  padding: 10px 24px;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.modal-footer .btn-secondary {
  background-color: #f5f7fb;
  border-color: #e8eaf6;
  color: #3949ab;
}

.modal-footer .btn-secondary:hover {
  background-color: #e8eaf6;
  border-color: #c5cae9;
  color: #283593;
}

/* Info boxes for special content */
.view-info-box {
  background-color: #f5f7fb;
  border-left: 3px solid #3949ab;
  padding: 12px 16px;
  border-radius: 4px;
  margin-top: 8px;
}

.view-info-box small {
  color: #757575;
  font-size: 13px;
}

/* Badge improvements */
.modal-body .badge i {
  margin-right: 4px;
}

@media (max-width: 960px) {
  .sa-sidenav {
    width: 220px;
  }

  .sa-auth-card {
    margin: 0 16px;
  }

  .modal-body {
    padding: 20px;
  }

  .modal-header {
    padding: 16px 20px;
  }

  .modal-footer {
    padding: 12px 20px;
  }
}


