@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0');
/* Bootstrap Icons (assuming installed in node_modules or available via CDN in usage) */
/* Ideally we'd import from node_modules if using a bundler, but for simple use we can suggest CDN or rely on user including it. 
   However, since user asked to install it, let's try to reference it if we support it. 
   If this is a no-build raw import system, node_modules import might fail in browser without a server handling it.
   But I will add a comment or try to use a relative path if plausible. 
   For now, just keeping CDN backup in mind. */
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css");

/* M3 Design Tokens */
:root {
  /* Colors (Google Material 3 - Baseline Blue) */
  --md-sys-color-primary: #0B57D0;
  --md-sys-color-on-primary: #FFFFFF;
  --md-sys-color-primary-container: #D3E3FD;
  --md-sys-color-on-primary-container: #041E49;

  /* Neutral Secondary (Gray-ish) */
  --md-sys-color-secondary: #5e6c75;
  --md-sys-color-on-secondary: #ffffff;
  --md-sys-color-secondary-container: #dfe8ed;
  --md-sys-color-on-secondary-container: #1b1d1f;

  --md-sys-color-tertiary: #52634f;
  --md-sys-color-on-tertiary: #FFFFFF;
  --md-sys-color-tertiary-container: #D5E8D0;
  --md-sys-color-on-tertiary-container: #101F0F;

  --md-sys-color-error: #B3261E;
  --md-sys-color-on-error: #FFFFFF;
  --md-sys-color-error-container: #F9DEDC;
  --md-sys-color-on-error-container: #410E0B;

  --md-sys-color-background: #F8F9FA;
  /* Google App Background */
  --md-sys-color-on-background: #1C1B1F;
  --md-sys-color-surface: #FFFFFF;
  /* Cards are white */
  --md-sys-color-on-surface: #1C1B1F;
  --md-sys-color-surface-variant: #E1E3E1;
  /* Neutral variant for dividers/outlines */
  --md-sys-color-on-surface-variant: #444746;
  --md-sys-color-outline: #747775;
  --md-sys-color-outline-variant: #C4C7C5;

  /* Typography */
  --md-sys-typescale-body-large-font: 'Roboto', sans-serif;
  --md-sys-typescale-body-large-size: 16px;
  --md-sys-typescale-body-large-weight: 400;

  /* Elevation */
  --md-sys-elevation-1: 0px 1px 3px 1px rgba(0, 0, 0, 0.15), 0px 1px 2px 0px rgba(0, 0, 0, 0.3);
  --md-sys-elevation-2: 0px 2px 6px 2px rgba(0, 0, 0, 0.15), 0px 1px 2px 0px rgba(0, 0, 0, 0.3);
  --md-sys-elevation-3: 0px 4px 8px 3px rgba(0, 0, 0, 0.15), 0px 1px 3px 0px rgba(0, 0, 0, 0.3);

  /* Shape */
  --md-sys-shape-corner-extra-small: 4px;
  --md-sys-shape-corner-small: 8px;
  --md-sys-shape-corner-medium: 12px;
  --md-sys-shape-corner-large: 16px;
  --md-sys-shape-corner-extra-large: 28px;
  --md-sys-shape-corner-full: 9999px;

  /* Bootstrap Overrides */
  --bs-primary: var(--md-sys-color-primary);
  --bs-secondary: var(--md-sys-color-secondary);
  --bs-success: #468e6f;
  /* Custom mapped */
  --bs-danger: var(--md-sys-color-error);
  --bs-body-font-family: var(--md-sys-typescale-body-large-font);
  --bs-body-bg: var(--md-sys-color-background);
  --bs-body-color: var(--md-sys-color-on-background);
  --bs-border-radius: var(--md-sys-shape-corner-small);
  --bs-border-radius-lg: var(--md-sys-shape-corner-medium);
  --bs-border-radius-sm: var(--md-sys-shape-corner-extra-small);
  --bs-border-color: var(--md-sys-color-outline-variant);
}

/* Button Refinements (M3) */
.btn {
  border-radius: var(--md-sys-shape-corner-full);
  /* M3 Buttons are pill-shaped */
  font-weight: 500;
  letter-spacing: 0.1px;
  text-transform: capitalize;
  padding: 10px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--md-sys-color-primary);
  border-color: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
}

.btn-primary:hover {
  background-color: color-mix(in srgb, var(--md-sys-color-primary), black 8%);
  border-color: color-mix(in srgb, var(--md-sys-color-primary), black 8%);
  box-shadow: var(--md-sys-elevation-1);
}

.btn-outline-primary {
  color: var(--md-sys-color-primary);
  border-color: var(--md-sys-color-outline);
}

.btn-outline-primary:hover {
  background-color: color-mix(in srgb, var(--md-sys-color-primary), transparent 92%);
  color: var(--md-sys-color-primary);
  border-color: var(--md-sys-color-primary);
}

.btn-link {
  color: var(--md-sys-color-primary);
  text-decoration: none;
}

.btn-link:hover {
  background-color: color-mix(in srgb, var(--md-sys-color-primary), transparent 92%);
}

/* Card Refinements (M3) */
.card {
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--md-sys-shape-corner-medium);
  background-color: var(--md-sys-color-surface);
  box-shadow: none;
  /* Outlined card default */
}

/* M3 Card Variants */
.card.elevated {
  border: none;
  background-color: var(--md-sys-color-surface);
  box-shadow: var(--md-sys-elevation-1);
}

.card.filled {
  border: none;
  background-color: var(--md-sys-color-surface-variant);
}

.card-header {
  background-color: transparent;
  border-bottom: none;
  padding: 16px 16px 0 16px;
}

.card-body {
  padding: 16px;
}

.card-footer {
  background-color: transparent;
  border-top: none;
  padding: 0 16px 16px 16px;
}

/* Inputs (M3 Styled) */
.form-control {
  border-radius: 4px 4px 0 0;
  border: 1px solid var(--md-sys-color-outline);
  background-color: var(--md-sys-color-surface);
  border-bottom-width: 1px;
}

.form-control:focus {
  border-color: var(--md-sys-color-primary);
  box-shadow: none;
  border-bottom-width: 2px;
  background-color: color-mix(in srgb, var(--md-sys-color-surface-variant), transparent 50%);
}

/* Icon Support */
.material-symbols-outlined {
  font-size: 20px;
  vertical-align: middle;
}

/* Navigation Drawer */
.m3-navigation-drawer {
  width: 300px;
  /* Standard width */
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background-color: var(--md-sys-color-surface);
  border-right: 1px solid var(--md-sys-color-surface-variant);
  /* For standard modal, or just surface color */
  border-top-right-radius: var(--md-sys-shape-corner-large);
  border-bottom-right-radius: var(--md-sys-shape-corner-large);
  padding: 12px;
  z-index: 1045;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.2, 0.0, 0, 1.0);
}

.m3-navigation-drawer.open {
  transform: translateX(0);
}

.m3-drawer-link {
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 24px;
  border-radius: var(--md-sys-shape-corner-full);
  color: var(--md-sys-color-on-surface-variant);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 4px;
}

.m3-drawer-link:hover {
  background-color: color-mix(in srgb, var(--md-sys-color-on-surface), transparent 92%);
  color: var(--md-sys-color-on-surface);
}

.m3-drawer-link.active {
  background-color: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
}

.m3-drawer-link i {
  margin-right: 12px;
}

/* FAB */
.m3-fab {
  position: fixed;
  bottom: 16px;
  right: 16px;
  border-radius: var(--md-sys-shape-corner-large);
  background-color: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
  box-shadow: var(--md-sys-elevation-3);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  z-index: 1050;
  transition: all 0.2s;
}

.m3-fab:hover {
  box-shadow: 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12), 0px 3px 5px -1px rgba(0, 0, 0, 0.20);
}

.m3-fab.small {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.m3-fab.large {
  width: 96px;
  height: 96px;
  border-radius: 28px;
}

.m3-fab.extended {
  width: auto;
  padding-left: 16px;
  padding-right: 20px;
  border-radius: 16px;
}

.m3-fab.extendedspan {
  margin-left: 8px;
  font-weight: 500;
}

/* Switch */
.form-check-input.m3-switch {
  width: 52px;
  height: 32px;
  background-color: var(--md-sys-color-surface-variant);
  border-color: var(--md-sys-color-outline);
  background-image: none;
  /* Handle via pseudo-element */
  position: relative;
  border-radius: 100px;
  border: 2px solid var(--md-sys-color-outline);
}

.form-check-input.m3-switch:checked {
  background-color: var(--md-sys-color-primary);
  border-color: var(--md-sys-color-primary);
}

/* Thumb */
.form-check-input.m3-switch::after {
  content: "";
  width: 16px;
  height: 16px;
  background-color: var(--md-sys-color-outline);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 6px;
  transform: translateY(-50%);
  transition: all 0.2s;
}

.form-check-input.m3-switch:checked::after {
  background-color: var(--md-sys-color-on-primary);
  left: calc(100% - 24px);
  width: 24px;
  height: 24px;
}

/* Top App Bar */
.m3-top-app-bar {
  background-color: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface);
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 16px;
}

.m3-top-app-bar.center-aligned {
  justify-content: center;
}

/* Chips */
.m3-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--md-sys-color-outline);
  border-radius: 8px;
  padding: 6px 16px;
  background-color: transparent;
  color: var(--md-sys-color-on-surface);
  margin-right: 8px;
  cursor: pointer;
}

.m3-chip.selected {
  background-color: var(--md-sys-color-secondary-container);
  border-color: transparent;
  color: var(--md-sys-color-on-secondary-container);
}

.m3-chip i {
  font-size: 18px;
  margin-right: 8px;
}
/* ========================================
   Sprint 4 Components Styling
   ======================================== */

/* DataTable Styles */
.datatable {
  border-collapse: collapse;
  font-size: 0.95rem;
}

.datatable thead {
  background-color: #f5f5f5;
  border-bottom: 2px solid #e0e0e0;
}

.datatable th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: #333;
}

.datatable th.sortable {
  cursor: pointer;
  user-select: none;
}

.datatable th.sortable:hover {
  background-color: #ececec;
}

.datatable th.sorted-asc i,
.datatable th.sorted-desc i {
  opacity: 1 !important;
  color: var(--md-sys-color-primary);
}

.datatable tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
}

.datatable tbody tr:hover {
  background-color: #f9f9f9;
}

.datatable tbody tr.table-active {
  background-color: #e3f2fd;
}

.datatable-row.cursor-pointer {
  cursor: pointer;
}

.datatable-search {
  margin-bottom: 1rem;
}

.datatable-checkbox {
  width: 40px;
  text-align: center;
}

.datatable-container {
  width: 100%;
  overflow: auto;
}

/* StatCard Styles */
.stat-card {
  border: none;
  box-shadow: var(--md-sys-elevation-1);
  transition: all 0.3s ease;
  cursor: default;
}

.stat-card.cursor-pointer {
  cursor: pointer;
}

.stat-card.cursor-pointer:hover {
  box-shadow: var(--md-sys-elevation-2);
  transform: translateY(-2px);
}

.stat-card.bg-primary {
  background-color: #e3f2fd !important;
  border-left: 4px solid var(--md-sys-color-primary);
}

.stat-card.bg-success {
  background-color: #e8f5e9 !important;
  border-left: 4px solid #4caf50;
}

.stat-card.bg-danger {
  background-color: #ffebee !important;
  border-left: 4px solid var(--md-sys-color-error);
}

.stat-card.bg-warning {
  background-color: #fff3e0 !important;
  border-left: 4px solid #ff9800;
}

.stat-card.bg-info {
  background-color: #e0f2f1 !important;
  border-left: 4px solid #00bcd4;
}

.stat-card.bg-light {
  background-color: #f5f5f5 !important;
  border-left: 4px solid #999;
}

.stat-icon {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
}

/* Skeleton Styles */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  border-radius: 4px;
  display: inline-block;
}

.skeleton-wave {
  animation: skeleton-wave 1.5s ease-in-out infinite;
}

@keyframes skeleton-wave {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-pulse {
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

@keyframes skeleton-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.skeleton-circle {
  border-radius: 50%;
}

.skeleton-rectangle {
  border-radius: 4px;
}

.skeleton-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skeleton-line {
  display: block;
}

.skeleton-table {
  width: 100%;
}

.skeleton-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.skeleton-header {
  font-weight: 600;
  margin-bottom: 12px;
}

.skeleton-cell {
  flex: 1;
  min-width: 0;
}

.skeleton-card {
  border: none;
  overflow: hidden;
}

/* EmptyState Styles */
.empty-state {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #999;
}

.empty-state i {
  opacity: 0.5;
}

/* ErrorState Styles */
.error-state {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.error-state i {
  opacity: 0.8;
}

.error-details-toggle {
  margin-top: 1rem;
}

.error-state-action {
  margin-top: 1rem;
}

/* DatePicker Styles */
.datepicker-wrapper {
  display: block;
}

.datepicker-input {
  border-radius: 4px;
}

.datepicker-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  z-index: 1050;
  margin-top: 4px;
  min-width: 280px;
}

.datepicker-calendar {
  padding: 0;
}

.datepicker-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}

.datepicker-header button {
  padding: 4px 8px;
}

.datepicker-calendar table {
  margin: 8px 0;
}

.datepicker-calendar th {
  background-color: transparent;
  font-weight: 600;
  font-size: 12px;
  color: #6c757d;
  padding: 8px 4px;
  border: none;
}

.datepicker-calendar td {
  padding: 2px;
}

.datepicker-day {
  border: none;
  border-radius: 4px;
  padding: 6px;
  font-size: 14px;
}

.datepicker-day:not(:disabled):hover {
  background-color: #e7f3ff;
}

.datepicker-day.btn-primary {
  background-color: #0b57d0;
  color: white;
}

.datepicker-day:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  color: #adb5bd;
}

/* Autocomplete Styles */
.autocomplete-wrapper {
  display: block;
  position: relative;
}

.autocomplete-input {
  border-radius: 4px;
}

.autocomplete-input:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.autocomplete-loading {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1050;
  max-height: 300px;
  overflow-y: auto;
  margin-top: 4px;
  display: block;
}

.autocomplete-item {
  cursor: pointer;
  padding: 8px 12px;
  transition: background-color 0.15s ease-in-out;
}

.autocomplete-item:hover {
  background-color: #e7f3ff;
}

.autocomplete-item.active {
  background-color: #e7f3ff;
  color: #0b57d0;
}

.autocomplete-item.selected {
  background-color: #f0f0f0;
}

.autocomplete-item input[type="checkbox"] {
  cursor: pointer;
}

.autocomplete-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.autocomplete-tags .badge {
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.autocomplete-remove {
  padding: 0 !important;
  width: 16px;
  height: 16px;
  min-width: 16px;
  border: none;
  background: transparent;
  opacity: 0.7;
}

.autocomplete-remove:hover {
  opacity: 1;
}

.autocomplete-empty {
  background-color: #f8f9fa;
  border-top: 1px solid #dee2e6;
  padding: 12px;
  text-align: center;
  font-size: 14px;
  color: #6c757d;
}

/* Breadcrumb Styles */
.breadcrumb {
  background-color: transparent;
  padding: 0;
  margin-bottom: 0;
}

.breadcrumb-item {
  font-size: 14px;
}

.breadcrumb-item a {
  color: #0b57d0;
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}

.breadcrumb-item a:hover {
  color: #0847ab;
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: #6c757d;
}

.breadcrumb-separator {
  color: #adb5bd;
}

/* ===== Sprint 4 Phase 2 Component Styles ===== */

/* FileUpload Styles */
.file-upload {
  border: 2px dashed #dee2e6;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  background-color: #f8f9fa;
  transition: all 0.3s ease;
}

.file-upload.drag-over {
  border-color: #0b57d0;
  background-color: #e3f2fd;
}

.file-upload-input {
  display: none;
}

.file-upload-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.file-upload-text {
  font-size: 1rem;
  color: #212529;
  margin-bottom: 0.5rem;
}

.file-upload-hint {
  font-size: 0.875rem;
  color: #6c757d;
  margin-bottom: 1.5rem;
}

.file-upload-button {
  background-color: #0b57d0;
  color: white;
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.file-upload-button:hover {
  background-color: #0847ab;
}

.file-upload-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0 0;
}

.file-upload-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background-color: white;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.file-upload-item-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.file-upload-item-info {
  flex: 1;
}

.file-upload-item-name {
  font-weight: 500;
  color: #212529;
  font-size: 0.95rem;
}

.file-upload-item-size {
  font-size: 0.875rem;
  color: #6c757d;
}

.file-upload-item-remove {
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
  font-size: 1.25rem;
  padding: 0;
  transition: color 0.2s ease;
}

.file-upload-item-remove:hover {
  color: #a02622;
}

/* ProgressBar Styles */
.progress-bar-wrapper {
  width: 100%;
  background-color: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
  height: 8px;
}

.progress-bar {
  height: 100%;
  background-color: #0b57d0;
  transition: width 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
}

.progress-bar.striped {
  background: linear-gradient(
    45deg,
    #0b57d0 25%,
    transparent 25%,
    transparent 50%,
    #0b57d0 50%,
    #0b57d0 75%,
    transparent 75%,
    transparent
  );
  background-size: 1rem 1rem;
}

.progress-bar.striped.animated {
  animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
  0% { background-position: 1rem 0; }
  100% { background-position: 0 0; }
}

.progress-bar.indeterminate {
  width: 100% !important;
  animation: progress-bar-indeterminate 1.5s ease-in-out infinite;
}

@keyframes progress-bar-indeterminate {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(400%); }
  100% { transform: translateX(500%); }
}

.progress-bar-success {
  background-color: #0f9e6e;
}

.progress-bar-danger {
  background-color: #dc3545;
}

.progress-bar-warning {
  background-color: #fd7e14;
}

.progress-bar-info {
  background-color: #0dcaf0;
}

/* Tooltip Styles */
.tooltip {
  position: absolute;
  background-color: #212529;
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1070;
}

.tooltip.visible {
  opacity: 1;
  pointer-events: auto;
}

.tooltip-arrow {
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: inherit;
  transform: rotate(45deg);
}

/* Sidebar Styles */
.sidebar {
  background-color: #ffffff;
  border-right: 1px solid #e0e0e0;
  overflow-y: auto;
  transition: width 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 999;
}

.sidebar-dark {
  background-color: #212529;
  color: white;
  border-right-color: #333;
}

.sidebar-header {
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e0e0e0;
  flex-shrink: 0;
}

.sidebar-dark .sidebar-header {
  border-bottom-color: #333;
}

.sidebar-brand-text {
  font-weight: 600;
  font-size: 1.1rem;
}

.sidebar-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  color: inherit;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-toggle:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.sidebar-dark .sidebar-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
}

.sidebar-menu {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
}

.sidebar-item {
  list-style: none;
  margin: 0.25rem 0;
}

.sidebar-item-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  font-size: 0.95rem;
}

.sidebar-item-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.sidebar-dark .sidebar-item-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-item.active > .sidebar-item-btn,
.sidebar-item.active > .sidebar-parent-toggle .sidebar-item-btn {
  background-color: #0b57d0;
  color: white;
}

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

.sidebar-submenu {
  list-style: none;
  padding-left: 0.5rem;
  border-left: 2px solid #e0e0e0;
  margin-left: 0.5rem;
}

.sidebar-dark .sidebar-submenu {
  border-left-color: #444;
}

.sidebar-subitem {
  list-style: none;
}

.sidebar-subitem-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: inherit;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  font-size: 0.9rem;
}

.sidebar-subitem-link:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

.sidebar-dark .sidebar-subitem-link:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.sidebar-subitem.active > .sidebar-subitem-link {
  background-color: #d1e7ff;
  color: #0b57d0;
  font-weight: 500;
}

.sidebar-dark .sidebar-subitem.active > .sidebar-subitem-link {
  background-color: rgba(11, 87, 208, 0.2);
  color: #90caf9;
}

.sidebar-submenu-arrow {
  margin-left: auto;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-collapsed .sidebar-item-text,
.sidebar-collapsed .sidebar-submenu-arrow,
.sidebar-collapsed .sidebar-brand-text {
  display: none !important;
}

/* Stepper Styles */
.stepper {
  width: 100%;
}

.stepper-steps {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.stepper-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  position: relative;
}

.stepper-step-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.stepper-step-indicator {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #e9ecef;
  border: 2px solid #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #666;
  flex-shrink: 0;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.stepper-step.active .stepper-step-indicator {
  background-color: #0b57d0;
  border-color: #0b57d0;
  color: white;
}

.stepper-step.completed .stepper-step-indicator {
  background-color: #0f9e6e;
  border-color: #0f9e6e;
  color: white;
}

.stepper-step-title {
  font-weight: 500;
  color: #666;
  font-size: 0.95rem;
  text-align: center;
}

.stepper-step.active .stepper-step-title {
  color: #0b57d0;
  font-weight: 600;
}

.stepper-step.completed .stepper-step-title {
  color: #0f9e6e;
}

.stepper-connector {
  flex: 1;
  height: 2px;
  background-color: #e9ecef;
  margin: 0 0.5rem;
  transition: background-color 0.3s ease;
}

.stepper-step.completed ~ .stepper-step .stepper-connector,
.stepper-step.completed .stepper-connector {
  background-color: #0f9e6e;
}

.stepper-content {
  padding: 2rem 1rem;
  background-color: #f9f9f9;
  border-radius: 8px;
}

/* Vertical Stepper */
.stepper-vertical {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.stepper-vertical .stepper-step {
  flex-direction: row;
  align-items: flex-start;
  gap: 1.5rem;
  position: relative;
  padding: 1.5rem 0;
}

.stepper-vertical .stepper-step-header {
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 0;
}

.stepper-vertical .stepper-content {
  flex: 1;
  padding: 1rem;
}

.stepper-connector-vertical {
  position: absolute;
  left: 20px;
  top: 60px;
  bottom: -60px;
  width: 2px;
  background-color: #e9ecef;
  transition: background-color 0.3s ease;
}

.stepper-vertical .stepper-step.completed .stepper-connector-vertical {
  background-color: #0f9e6e;
}

.stepper-vertical .stepper-step:last-child .stepper-connector-vertical {
  display: none;
}

/* Dropdown Styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  font-weight: 500;
}

.dropdown-trigger:hover:not(:disabled) {
  background-color: #efefef;
  border-color: #ccc;
}

.dropdown-trigger:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.dropdown-trigger[aria-expanded="true"] {
  background-color: #e8e8e8;
  border-color: #999;
}

.dropdown-arrow {
  display: inline-flex;
  transition: transform 0.3s ease;
  align-items: center;
  justify-content: center;
}

.dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  min-width: 200px;
  animation: dropdown-fadeIn 0.2s ease;
}

@keyframes dropdown-fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-bottom-left {
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
}

.dropdown-bottom-right {
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
}

.dropdown-top-left {
  bottom: 100%;
  left: 0;
  margin-bottom: 0.5rem;
}

.dropdown-top-right {
  bottom: 100%;
  right: 0;
  margin-bottom: 0.5rem;
}

.dropdown-list {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
}

.dropdown-item {
  list-style: none;
  margin: 0;
}

.dropdown-item.divider {
  border-top: 1px solid #e0e0e0;
  margin: 0.5rem 0;
  height: 0;
  padding: 0;
}

.dropdown-item-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-size: 0.95rem;
}

.dropdown-item:not(.disabled) .dropdown-item-link:hover {
  background-color: #f5f5f5;
}

.dropdown-item.active .dropdown-item-link {
  background-color: #e3f2fd;
  color: #0b57d0;
  font-weight: 500;
}

.dropdown-item.disabled .dropdown-item-link {
  opacity: 0.5;
  cursor: not-allowed;
}

.dropdown-item-icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.dropdown-item-text {
  flex: 1;
}

.dropdown-item-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background-color: #0b57d0;
  color: white;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

/* Dropdown Variants */
.dropdown-outline .dropdown-trigger {
  background-color: transparent;
  border: 1px solid #666;
}

.dropdown-outline .dropdown-trigger:hover {
  background-color: #f5f5f5;
}

.dropdown-minimal .dropdown-trigger {
  background-color: transparent;
  border: none;
  border-bottom: 1px solid #666;
  border-radius: 0;
}

.dropdown-danger .dropdown-trigger {
  background-color: #fee;
  border-color: #f44336;
  color: #d32f2f;
}

.dropdown-danger .dropdown-trigger:hover {
  background-color: #fdd;
}

/* Responsive Design */
@media (max-width: 768px) {
  .sidebar {
    width: 100% !important;
  }

  .stepper-step-title {
    font-size: 0.85rem;
  }

  .stepper-step-indicator {
    width: 35px;
    height: 35px;
    font-size: 0.85rem;
  }

  .stepper-connector {
    display: none;
  }

  .dropdown-menu {
    min-width: 150px;
  }
}
