:root {
  /* Base Colors - Dark Theme (Default) */
  --bg: #080b13;
  --surface: #121728;
  --surface-alt: #1c2230;
  --surface-hover: #252d3d;
  --accent: #00c3bd;
  --accent-2: #ffb703;
  --text: #f5f6fb;
  --text-secondary: #c4c9d4;
  --muted: #94a0b6;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
  
  /* Primary/Accent Colors */
  --primary: #0ea5e9;
  --primary-light: #38bdf8;
  --primary-alpha: rgba(14, 165, 233, 0.15);
  
  /* Status Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #0ea5e9;
  
  /* Component Backgrounds */
  --card-bg: #121728;
  --input-bg: #121728;
  --modal-bg: #121728;
  --sidebar-bg: #0a0d14;
  --header-bg: rgba(8, 11, 19, 0.95);
  
  /* Border Radius */
  --border-radius: 0.75rem;
  --border-radius-lg: 1rem;
  --border-radius-sm: 0.5rem;
  
  /* Spacing/Density */
  --spacing-density: 1rem;
  --gap-density: 0.75rem;
  
  /* Transitions */
  --transition-speed: 0.2s;
  
  /* Typography */
  --font-size-base: 16px;
  font-family: "Poppins", "Montserrat", system-ui, -apple-system, sans-serif;
}

/* Hide Google Translate toolbar */
.goog-te-banner-frame,
.goog-te-balloon-frame,
.goog-logo-link,
.goog-te-gadget {
  display: none !important;
}

body {
  top: 0 !important;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ===== MODERN INPUT & SELECT STYLES ===== */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="week"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.2s ease;
  outline: none;
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="tel"]:hover,
input[type="number"]:hover,
input[type="date"]:hover,
input[type="week"]:hover,
input[type="password"]:hover,
select:hover,
textarea:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: var(--surface-alt);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="week"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  background: var(--surface-alt);
  box-shadow: 0 0 0 3px rgba(0, 195, 189, 0.1);
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a0b6' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  padding-right: 2.5rem;
}

select option {
  background: var(--surface);
  color: var(--text);
  padding: 0.5rem;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

/* Remove autofill yellow background */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px var(--surface) inset !important;
  -webkit-text-fill-color: var(--text) !important;
}

/* Date and Week input specific styles */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="week"]::-webkit-calendar-picker-indicator {
  filter: invert(0.7);
  cursor: pointer;
}

/* Range input styles */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: var(--surface-alt);
  border-radius: 5px;
  outline: none;
  padding: 0;
  border: 1px solid var(--border);
}

input[type="range"]:hover {
  background: var(--surface);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 195, 189, 0.3);
}

input[type="range"]::-webkit-slider-thumb:hover {
  background: #00e6de;
  box-shadow: 0 4px 12px rgba(0, 195, 189, 0.5);
  transform: scale(1.1);
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--accent);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 195, 189, 0.3);
}

input[type="range"]::-moz-range-thumb:hover {
  background: #00e6de;
  box-shadow: 0 4px 12px rgba(0, 195, 189, 0.5);
  transform: scale(1.1);
}

/* Filter labels */
label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}

label > span {
  color: var(--text);
  font-weight: 600;
}

.language-switcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: fixed;
}

.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  color: #0c0c0c;
  font-weight: 600;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.lang-trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.lang-trigger:hover {
  transform: translateY(-1px);
}

.lang-trigger .flag-icon {
  font-size: 1.1rem;
}

.lang-trigger .lang-code {
  font-size: 0.9rem;
  letter-spacing: 0.15em;
}

.lang-trigger .caret {
  font-size: 0.75rem;
}

.lang-menu {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 0.5rem;
  background: #ffffff;
  border-radius: 0.9rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
  display: none;
  flex-direction: column;
  min-width: 160px;
  padding: 0.35rem 0;
}

.lang-menu.open {
  display: flex;
}

.lang-menu button {
  border: none;
  background: transparent;
  color: #0c0c0c;
  font-weight: 600;
  text-align: left;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.lang-menu button:hover,
.lang-menu button:focus-visible {
  background: rgba(0, 0, 0, 0.04);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.top-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(8, 11, 19, 0.95);
  border-bottom: 1px solid var(--border);
}

.menu-toggle {
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  display: block;
}

.top-bar h1 {
  margin: 0;
  font-size: 1.4rem;
}

.top-bar .eyebrow {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.top-actions {
  display: flex;
  gap: 0.75rem;
}

button.primary,
button.ghost {
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
}

button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #041014;
}

button.ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text);
}

.layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  /* Transição suave e elegante para o grid */
  transition: grid-template-columns 450ms cubic-bezier(0.23, 1, 0.32, 1);
}

.layout:has(nav.offcanvas.collapsed) {
  grid-template-columns: 80px 1fr !important;
}

.layout:has(nav.offcanvas.collapsed:hover) {
  grid-template-columns: 240px 1fr !important;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.offcanvas {
  background: var(--surface);
  padding: 2rem 1.25rem;
  border-right: 1px solid var(--border);
  width: 240px !important;
  /* Transição suave com cubic-bezier otimizado para movimento natural */
  transition: 
    width 450ms cubic-bezier(0.23, 1, 0.32, 1),
    padding 450ms cubic-bezier(0.23, 1, 0.32, 1),
    min-width 450ms cubic-bezier(0.23, 1, 0.32, 1),
    max-width 450ms cubic-bezier(0.23, 1, 0.32, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100vh;
  /* Otimização de performance */
  will-change: width, padding;
}

nav.offcanvas.collapsed {
  width: 80px !important;
  padding: 2rem 0.75rem !important;
  min-width: 80px !important;
  max-width: 80px !important;
}

nav.offcanvas.collapsed:hover {
  width: 240px !important;
  padding: 2rem 1.25rem !important;
  min-width: 240px !important;
  max-width: 240px !important;
}

.offcanvas .brand {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  position: relative;
  /* Transição suave para reposicionamento */
  transition: justify-content 350ms cubic-bezier(0.23, 1, 0.32, 1) 50ms;
}

nav.offcanvas.collapsed .brand {
  justify-content: center;
}

nav.offcanvas.collapsed:hover .brand {
  justify-content: space-between;
}

.offcanvas .brand-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  display: none;
  /* Transição de aparecimento suave */
  opacity: 0;
  transform: scale(0.8);
  transition: 
    opacity 250ms cubic-bezier(0.23, 1, 0.32, 1),
    transform 250ms cubic-bezier(0.23, 1, 0.32, 1);
}

nav.offcanvas.collapsed .brand-icon {
  display: block;
  opacity: 1;
  transform: scale(1);
  transition-delay: 150ms;
}

nav.offcanvas.collapsed:hover .brand-icon {
  display: none;
  opacity: 0;
  transform: scale(0.8);
  transition-delay: 0ms;
}

.offcanvas .brand-text {
  opacity: 1;
  transform: translateX(0);
  white-space: nowrap;
  flex: 1;
  /* Transição suave de fade e slide */
  transition: 
    opacity 300ms cubic-bezier(0.23, 1, 0.32, 1) 100ms,
    transform 300ms cubic-bezier(0.23, 1, 0.32, 1) 100ms;
}

nav.offcanvas.collapsed .brand-text {
  display: none;
  opacity: 0;
  transform: translateX(-10px);
}

nav.offcanvas.collapsed:hover .brand-text {
  display: block;
  opacity: 1;
  transform: translateX(0);
  transition-delay: 200ms;
}

.sidebar-toggle-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  color: white;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: all !important;
  z-index: 10;
  position: relative;
}

.sidebar-toggle-btn:hover {
  background: var(--accent-2);
  transform: scale(1.1);
}

.sidebar-toggle-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
  display: block !important;
}

nav.offcanvas.collapsed .sidebar-toggle-btn svg {
  transform: rotate(180deg);
}

.offcanvas ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.offcanvas li {
  padding: 0.7rem 1rem;
  border-radius: 0.65rem;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  /* Transições suaves e coordenadas */
  transition: 
    background 200ms cubic-bezier(0.23, 1, 0.32, 1),
    padding 400ms cubic-bezier(0.23, 1, 0.32, 1) 50ms,
    justify-content 400ms cubic-bezier(0.23, 1, 0.32, 1) 50ms;
}

.offcanvas li svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke-width: 2;
  opacity: 1;
}

nav.offcanvas.collapsed li {
  padding: 0.7rem 0;
  justify-content: center;
}

nav.offcanvas.collapsed:hover li {
  padding: 0.7rem 1rem;
  justify-content: flex-start;
}

.offcanvas li span {
  opacity: 1;
  transform: translateX(0);
  /* Transição suave de fade e slide para textos */
  transition: 
    opacity 300ms cubic-bezier(0.23, 1, 0.32, 1) 150ms,
    transform 300ms cubic-bezier(0.23, 1, 0.32, 1) 150ms;
}

nav.offcanvas.collapsed li span {
  display: none;
  opacity: 0;
  transform: translateX(-8px);
}

nav.offcanvas.collapsed:hover li span {
  display: block;
  opacity: 1;
  transform: translateX(0);
  /* Delay maior no hover para esperar a expansão do sidebar */
  transition-delay: 250ms;
}

/* User Badge in Sidebar */
.user-badge-sidebar {
  flex-shrink: 0;
  /* Transições suaves para o badge do usuário */
  transition: 
    padding 400ms cubic-bezier(0.23, 1, 0.32, 1) 50ms,
    font-size 400ms cubic-bezier(0.23, 1, 0.32, 1) 50ms;
}

nav.offcanvas.collapsed .user-badge-sidebar {
  padding: 0.75rem 0.5rem !important;
  font-size: 0.75rem !important;
}

nav.offcanvas.collapsed .user-badge-sidebar small {
  display: none;
  opacity: 0;
  transform: translateY(5px);
  transition: 
    opacity 250ms cubic-bezier(0.23, 1, 0.32, 1),
    transform 250ms cubic-bezier(0.23, 1, 0.32, 1);
}

nav.offcanvas.collapsed:hover .user-badge-sidebar {
  padding: 1rem !important;
  font-size: 0.875rem !important;
}

nav.offcanvas.collapsed:hover .user-badge-sidebar small {
  display: block;
  opacity: 1;
  transform: translateY(0);
  transition-delay: 250ms;
}

.offcanvas li.active,
.offcanvas li:hover {
  background: rgba(0, 195, 189, 0.15);
}

main {
  padding: 2rem;
  background: linear-gradient(180deg, #0c0f1d, #05070f);
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.dashboard-header h2 {
  margin: 0.15rem 0 0;
}

.filter-panel {
  display: flex;
  align-items: end;
  gap: 0.75rem;
}

/* Filter panel uses global input/select styles */

.advanced-filters {
  margin-top: 1.25rem;
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.stats-grid {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.stats-grid article {
  background: var(--surface);
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
}

.stat {
  font-size: 2rem;
  margin: 0.25rem 0;
  color: var(--accent);
}

.modules {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.module {
  background: var(--surface);
  border-radius: 1.1rem;
  border: 1px solid var(--border);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.module.full {
  grid-column: 1 / -1;
  margin: 1.5rem 0;
}

.module header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.module-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-list article {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}

.project-list article:last-child {
  border-bottom: none;
}

.progress {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
}

.module-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.module-body th,
.module-body td {
  text-align: left;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.module-body tr:last-child td {
  border-bottom: none;
}

.module-body.cash-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.module.demo .demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.module.demo ul {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.module.demo li {
  line-height: 1.5;
}

.teams-hero,
.projects-hero {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1rem;
}

.teams-hero .lead,
.projects-hero .lead {
  color: var(--muted);
  max-width: 460px;
  line-height: 1.5;
}

.teams-actions,
.projects-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.teams-stats {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.teams-stats article {
  background: var(--surface);
  border-radius: 1rem;
  border: 1px solid var(--border);
  padding: 1rem;
}

.teams-roster,
.projects-table {
  margin-top: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
}

.teams-roster header,
.projects-table header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.teams-filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Teams filters use global styles */

.teams-roster table,
.projects-table table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.teams-roster th,
.teams-roster td,
.projects-table th,
.projects-table td {
  text-align: left;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.teams-roster tr:last-child td,
.projects-table tr:last-child td {
  border-bottom: none;
}

.teams-panels {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.teams-panels article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem;
}

.teams-panels ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.invoices-hero,
.invoices-summary,
.invoices-filters,
.invoices-table,
.invoices-board {
  margin-bottom: 1.5rem;
}

.invoices-hero {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1rem;
}

.invoices-hero .lead {
  color: var(--muted);
  max-width: 460px;
  line-height: 1.5;
}

.invoices-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.invoices-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.invoices-summary article {
  background: var(--surface);
  border-radius: 1rem;
  border: 1px solid var(--border);
  padding: 1rem;
}

.invoices-filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem;
  background: var(--surface);
  border-radius: 1rem;
  border: 1px solid var(--border);
}

/* Invoices filters use global styles */

.invoices-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
}

.invoices-table header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.invoices-actions-grid {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.invoices-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.invoices-board article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem;
}

.invoices-board ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

/* ===== STATUS BADGES ===== */
.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

.status-badge.aguardando {
  background: #fff3cd;
  color: #856404;
}

.status-badge.em-andamento {
  background: #d1ecf1;
  color: #0c5460;
}

.status-badge.finalizado {
  background: #d4edda;
  color: #155724;
}

/* ===== PROJECT NUMBER BADGE ===== */
.project-number-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  background: linear-gradient(135deg, var(--primary), #00a8a3);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.03em;
  border-radius: 4px;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 195, 189, 0.3);
}

.project-number-badge::before {
  content: '#';
  margin-right: 1px;
  opacity: 0.8;
}

/* Archived project badge */
.status-badge.archived {
  background: rgba(156, 163, 175, 0.2);
  color: #9ca3af;
}

/* Projects page specific styles */
.projects-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* ===== CUSTOMERS PAGE ===== */
.customers-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 1rem;
}

.customers-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.customers-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.customers-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* ===== CUSTOMERS / PROJECTS CARDS GRID ===== */
.customers-grid,
.projects-grid,
.teams-grid,
.finance-grid,
.invoices-grid,
.cash-grid,
.assets-grid,
.reports-grid,
.settings-grid {
  margin-bottom: 2rem;
}

.customers-grid-header,
.projects-grid-header,
.teams-grid-header,
.finance-grid-header,
.invoices-grid-header,
.cash-grid-header,
.assets-grid-header,
.reports-grid-header,
.settings-grid-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.customers-grid-header h3,
.projects-grid-header h3,
.finance-grid-header h3,
.invoices-grid-header h3,
.cash-grid-header h3,
.assets-grid-header h3,
.reports-grid-header h3,
.settings-grid-header h3 {
  margin: 0.25rem 0;
}

.customers-count,
.projects-count,
.finance-count,
.invoices-count,
.cash-count,
.assets-count,
.reports-count,
.settings-count {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: block;
}

.customers-count span,
.projects-count span,
.finance-count span,
.invoices-count span,
.cash-count span,
.assets-count span,
.reports-count span,
.settings-count span {
  font-weight: 600;
  color: var(--accent);
}

.view-toggle {
  display: flex;
  gap: 0.5rem;
  background: var(--surface-alt);
  padding: 0.25rem;
  border-radius: 0.5rem;
}

.view-btn {
  padding: 0.5rem;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.view-btn:hover {
  background: var(--surface);
  color: var(--text);
}

.view-btn.active {
  background: var(--accent);
  color: #000;
}

.customers-cards,
.projects-cards,
.teams-cards,
.finance-cards,
.invoices-cards,
.cash-cards,
.assets-cards,
.reports-cards,
.settings-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.customers-cards.list-view,
.projects-cards.list-view,
.teams-cards.list-view,
.finance-cards.list-view,
.invoices-cards.list-view,
.cash-cards.list-view,
.assets-cards.list-view,
.reports-cards.list-view,
.settings-cards.list-view {
  grid-template-columns: 1fr;
}

.customer-card,
.project-card,
.team-card,
.finance-card,
.invoice-card,
.cash-card,
.asset-card,
.report-card,
.setting-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.customer-card::before,
.project-card::before,
.team-card::before,
.finance-card::before,
.invoice-card::before,
.cash-card::before,
.asset-card::before,
.report-card::before,
.setting-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.customer-card:hover,
.project-card:hover,
.team-card:hover,
.finance-card:hover,
.invoice-card:hover,
.cash-card:hover,
.asset-card:hover,
.report-card:hover,
.setting-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 195, 189, 0.15);
}

.customer-card:hover::before,
.project-card:hover::before,
.team-card:hover::before,
.finance-card:hover::before,
.invoice-card:hover::before,
.cash-card:hover::before,
.asset-card:hover::before,
.report-card:hover::before,
.setting-card:hover::before {
  opacity: 1;
}

.customer-card-header,
.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
}

.customer-avatar,
.project-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: #000;
  flex-shrink: 0;
}

.customer-info,
.project-info {
  flex: 1;
  min-width: 0;
}

.customer-company,
.project-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.25rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.customer-type,
.project-client {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--surface-alt);
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.customer-contact {
  margin: 0.75rem 0;
  padding: 0.625rem 0.875rem;
  background: var(--surface-alt);
  border-radius: 0.5rem;
}

.customer-contact-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 0.375rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.customer-contact-name svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
  flex-shrink: 0;
}

.customer-contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.customer-contact-item {
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.customer-contact-item svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.customer-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.customer-meta-item {
  text-align: center;
}

.customer-meta-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
}

.customer-meta-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
  display: block;
}

.customer-actions,
.project-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.customer-actions button,
.project-actions button {
  flex: 1;
  padding: 0.5rem 0.875rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.customer-actions .btn-primary,
.project-actions .btn-primary {
  background: var(--accent);
  border: none;
  color: #000;
}

.customer-actions .btn-primary:hover,
.project-actions .btn-primary:hover {
  background: #00d4cd;
  transform: translateY(-1px);
}

.customer-actions .btn-ghost,
.project-actions .btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.customer-actions .btn-ghost:hover,
.project-actions .btn-ghost:hover {
  background: var(--surface-alt);
  border-color: var(--accent);
}

/* Project-specific sections */
.project-client {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-details,
.project-schedule {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 0.75rem 0;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
}

.project-details {
  border-bottom: 1px solid var(--border);
}

.project-detail,
.project-schedule-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.project-detail-label,
.project-schedule-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.project-detail-value,
.project-schedule-value {
  font-weight: 600;
  color: var(--text);
}

.project-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.project-stat {
  padding: 0.75rem;
  background: var(--surface-alt);
  border-radius: 0.5rem;
}

.project-stat span {
  display: block;
}

.project-stat small {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.project-stat strong {
  font-size: 1.1rem;
  color: var(--text);
}

/* ========================================
   NEW LIST VIEW (TABLE) - Hide cards when table is present
   ======================================== */
.customers-cards.list-view .customer-card,
.projects-cards.list-view .project-card,
.teams-cards.list-view .team-card,
.finance-cards.list-view .finance-card,
.invoices-cards.list-view .invoice-card,
.cash-cards.list-view .cash-card,
.assets-cards.list-view .asset-card,
.reports-cards.list-view .report-card,
.settings-cards.list-view .setting-card {
  display: none !important; /* Hide cards completely in list view - table is used instead */
}

/* Old list-view card styles removed - now using table-based list view */

/* Empty state */
.customers-empty,
.projects-empty,
.finance-empty,
.invoices-empty,
.cash-empty,
.assets-empty,
.reports-empty,
.settings-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--muted);
}

.customers-empty svg,
.projects-empty svg,
.finance-empty svg,
.invoices-empty svg,
.cash-empty svg,
.assets-empty svg,
.reports-empty svg,
.settings-empty svg {
  margin-bottom: 1.5rem;
  opacity: 0.5;
}

.customers-empty h3,
.projects-empty h3,
.finance-empty h3,
.invoices-empty h3,
.cash-empty h3,
.assets-empty h3,
.reports-empty h3,
.settings-empty h3 {
  margin: 0 0 0.5rem 0;
  color: var(--text);
}

.customers-empty p,
.projects-empty p,
.finance-empty p,
.invoices-empty p,
.cash-empty p,
.assets-empty p,
.reports-empty p,
.settings-empty p {
  margin: 0 0 1.5rem 0;
}

/* Responsive */
@media (max-width: 768px) {
  .customers-cards,
  .projects-cards {
    grid-template-columns: 1fr;
  }
  
  .customers-grid-header,
  .projects-grid-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .view-toggle {
    width: 100%;
    justify-content: center;
  }
  
  .customer-meta {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Old list-view responsive styles removed - now using table-based list view */
}

@media (max-width: 480px) {
  .customer-card {
    padding: 1rem;
  }
  
  .customer-avatar {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .customer-company {
    font-size: 1rem;
  }
  
  .customer-contact {
    padding: 0.625rem 0.75rem;
  }
  
  .customer-actions {
    flex-direction: column;
  }
  
  .customer-actions button {
    width: 100%;
  }
}

.lang-selector {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999999;
  pointer-events: auto;
}

.lang-btn {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.8rem;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  color: #333;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  opacity: 1 !important;
  visibility: visible !important;
  min-width: 90px;
}

.lang-btn:hover {
  background: #f8f8f8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.lang-btn .flag-icon {
  width: 24px;
  height: 18px;
  border-radius: 3px;
  object-fit: cover;
  display: block;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.lang-menu button img {
  width: 20px;
  height: 15px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.lang-btn .lang-text {
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #333;
}

.lang-btn::after {
  content: '▼';
  font-size: 0.6rem;
  color: #666;
  margin-left: 0.2rem;
}

.lang-menu {
  position: absolute;
  bottom: calc(100% + 0.5rem);
  right: 0;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 0.4rem;
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lang-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-menu button {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.6rem 0.8rem;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: #333;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
  transition: background 0.15s ease;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Poppins", sans-serif;
}

.lang-menu button:hover {
  background: #f5f5f5;
}

.lang-menu button::before {
  font-size: 1.3rem;
}

.windsurf-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 999998;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  transition: all 0.3s ease;
}

.windsurf-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.6);
}

.windsurf-btn.active {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.windsurf-highlight {
  outline: 3px solid #667eea !important;
  outline-offset: 2px;
  cursor: crosshair !important;
  position: relative;
}

.windsurf-highlight::after {
  content: attr(data-windsurf-path);
  position: absolute;
  top: -30px;
  left: 0;
  background: #667eea;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-family: monospace;
  white-space: nowrap;
  z-index: 999999;
  pointer-events: none;
}

.finance-hero,
.finance-summary,
.finance-filters,
.finance-table,
.finance-panels {
  margin-bottom: 1.5rem;
}

.finance-hero {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1rem;
}

.finance-hero .lead {
  color: var(--muted);
  max-width: 460px;
  line-height: 1.5;
}

.finance-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.finance-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.finance-summary article {
  background: var(--surface);
  border-radius: 1rem;
  border: 1px solid var(--border);
  padding: 1rem;
}

.finance-filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem;
  background: var(--surface);
  border-radius: 1rem;
  border: 1px solid var(--border);
}

/* Finance filters use global styles */

.finance-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
}

.finance-table header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.finance-actions-grid {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.finance-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.finance-panels article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem;
}

.finance-panels ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

/* ================================================
   FINANCE LIST TABLE (List View)
   ================================================ */
.finance-list-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.875rem;
}

.finance-list-table thead {
  position: sticky;
  top: 0;
  z-index: 10;
}

.finance-list-table th {
  background: var(--surface);
  color: var(--muted);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.finance-list-table th.text-right {
  text-align: right;
}

.finance-list-table th.text-center {
  text-align: center;
}

.finance-list-table tbody tr {
  transition: background 0.15s ease;
  border-bottom: 1px solid var(--border);
}

.finance-list-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.finance-list-table tbody tr:last-child {
  border-bottom: none;
}

.finance-list-table td {
  padding: 0.875rem 1rem;
  color: var(--text);
  vertical-align: middle;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.finance-list-table .date-cell {
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

.finance-list-table .description-cell {
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.finance-list-table .customer-cell,
.finance-list-table .project-cell {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finance-list-table .category-cell {
  color: var(--muted);
}

.finance-list-table .payment-cell {
  color: var(--muted);
  font-size: 0.85rem;
}

.finance-list-table .amount-cell {
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
}

.finance-list-table .text-right {
  text-align: right;
}

.finance-list-table .text-center {
  text-align: center;
}

/* Type Badge */
.finance-list-table .type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.finance-list-table .type-badge.expense {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.finance-list-table .type-badge.expense::before {
  content: '↓';
  font-size: 0.75rem;
}

.finance-list-table .type-badge.income {
  background: rgba(0, 195, 189, 0.15);
  color: #00c3bd;
}

.finance-list-table .type-badge.income::before {
  content: '↑';
  font-size: 0.75rem;
}

/* Table Actions */
.finance-list-table .table-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.finance-list-table .btn-icon-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.finance-list-table .btn-icon-sm:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.finance-list-table .btn-icon-sm.btn-danger:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.finance-list-table .btn-icon-sm svg {
  width: 16px;
  height: 16px;
}

/* Responsive adjustments for list table */
@media (max-width: 1200px) {
  .finance-list-table .payment-cell,
  .finance-list-table th:nth-child(7) {
    display: none;
  }
}

@media (max-width: 992px) {
  .finance-list-table .project-cell,
  .finance-list-table th:nth-child(5) {
    display: none;
  }
}

@media (max-width: 768px) {
  .finance-list-table .customer-cell,
  .finance-list-table th:nth-child(4),
  .finance-list-table .category-cell,
  .finance-list-table th:nth-child(6) {
    display: none;
  }
  
  .finance-list-table th,
  .finance-list-table td {
    padding: 0.625rem 0.5rem;
  }
  
  .finance-list-table .description-cell {
    max-width: 150px;
  }
}

/* Hide list view styles when showing table */
.finance-cards.list-view,
.customers-cards.list-view,
.projects-cards.list-view,
.teams-cards.list-view,
.invoices-cards.list-view {
  display: block !important;
}

/* ================================================
   GENERIC LIST VIEW TABLE STYLES
   ================================================ */
.list-view-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.875rem;
}

.list-view-table thead {
  position: sticky;
  top: 0;
  z-index: 10;
}

.list-view-table th {
  background: var(--surface);
  color: var(--muted);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.list-view-table th.text-right {
  text-align: right;
}

.list-view-table th.text-center {
  text-align: center;
}

.list-view-table tbody tr {
  transition: background 0.15s ease;
  border-bottom: 1px solid var(--border);
}

.list-view-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.list-view-table tbody tr:last-child {
  border-bottom: none;
}

.list-view-table td {
  padding: 0.875rem 1rem;
  color: var(--text);
  vertical-align: middle;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.list-view-table .text-right {
  text-align: right;
}

.list-view-table .text-center {
  text-align: center;
}

/* Cells */
.list-view-table .date-cell {
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

.list-view-table .company-cell,
.list-view-table .project-name-cell,
.list-view-table .name-cell,
.list-view-table .invoice-number-cell {
  font-weight: 500;
}

.list-view-table .email-cell,
.list-view-table .phone-cell {
  color: var(--muted);
  font-size: 0.85rem;
}

.list-view-table .amount-cell {
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
}

/* Type Badges */
.list-view-table .type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.list-view-table .type-badge.residential {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.list-view-table .type-badge.commercial {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
}

.list-view-table .type-badge.contractor {
  background: rgba(249, 115, 22, 0.15);
  color: #f97316;
}

/* Status Badges in tables */
.list-view-table .status-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.list-view-table .status-badge.active {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.list-view-table .status-badge.inactive {
  background: rgba(156, 163, 175, 0.15);
  color: #9ca3af;
}

.list-view-table .status-badge.draft {
  background: rgba(156, 163, 175, 0.15);
  color: #9ca3af;
}

.list-view-table .status-badge.sent,
.list-view-table .status-badge.pending {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.list-view-table .status-badge.paid {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.list-view-table .status-badge.overdue {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

/* Table Actions */
.list-view-table .table-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.list-view-table .btn-icon-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.list-view-table .btn-icon-sm:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.list-view-table .btn-icon-sm.btn-danger:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.list-view-table .btn-icon-sm svg {
  width: 16px;
  height: 16px;
}

/* Responsive adjustments for generic list tables */
@media (max-width: 1200px) {
  .list-view-table .email-cell,
  .list-view-table .region-cell {
    display: none;
  }
  
  .customers-list-table th:nth-child(3),
  .teams-list-table th:nth-child(3) {
    display: none;
  }
}

@media (max-width: 992px) {
  .list-view-table .phone-cell,
  .projects-list-table .budget-cell {
    display: none;
  }
  
  .customers-list-table th:nth-child(4),
  .teams-list-table th:nth-child(5),
  .projects-list-table th:nth-child(5) {
    display: none;
  }
}

@media (max-width: 768px) {
  .list-view-table th,
  .list-view-table td {
    padding: 0.625rem 0.5rem;
    font-size: 0.8rem;
  }
  
  .list-view-table .contact-cell,
  .list-view-table .role-cell,
  .list-view-table .client-cell,
  .invoices-list-table .project-cell {
    display: none;
  }
  
  .customers-list-table th:nth-child(2),
  .teams-list-table th:nth-child(2),
  .projects-list-table th:nth-child(3),
  .invoices-list-table th:nth-child(3) {
    display: none;
  }
}

.cash-hero,
.cash-summary,
.cash-filters,
.cash-table,
.cash-timeline,
.cash-panels {
  margin-bottom: 1.5rem;
}

.cash-hero {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1rem;
}

.cash-hero .lead {
  color: var(--muted);
  max-width: 460px;
  line-height: 1.5;
}

.cash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.cash-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.cash-summary article {
  background: var(--surface);
  border-radius: 1rem;
  border: 1px solid var(--border);
  padding: 1rem;
}

.cash-filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem;
  background: var(--surface);
  border-radius: 1rem;
  border: 1px solid var(--border);
}

/* Cash filters use global styles */

.cash-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
}

.cash-table header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cash-actions-grid {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cash-timeline {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
}

.cash-timeline ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.cash-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.cash-panels article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem;
}

.cash-panels ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.assets-hero,
.assets-summary,
.assets-filters,
.assets-table,
.assets-panels {
  margin-bottom: 1.5rem;
}

.assets-hero {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1rem;
}

.assets-hero .lead {
  color: var(--muted);
  max-width: 460px;
  line-height: 1.5;
}

.assets-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.assets-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.assets-summary article {
  background: var(--surface);
  border-radius: 1rem;
  border: 1px solid var(--border);
  padding: 1rem;
}

.assets-filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem;
  background: var(--surface);
  border-radius: 1rem;
  border: 1px solid var(--border);
}

/* Assets filters use global styles */

.assets-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
}

.assets-table header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.assets-actions-grid {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.assets-table table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.assets-table th,
.assets-table td {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.assets-table tr:last-child td {
  border-bottom: none;
}

.assets-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.assets-panels article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem;
}

.assets-panels ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.reports-hero,
.reports-summary,
.reports-filters,
.reports-table,
.reports-panels {
  margin-bottom: 1.5rem;
}

.reports-hero {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1rem;
}

.reports-hero .lead {
  color: var(--muted);
  max-width: 460px;
  line-height: 1.5;
}

.reports-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.reports-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.reports-summary article {
  background: var(--surface);
  border-radius: 1rem;
  border: 1px solid var(--border);
  padding: 1rem;
}

.reports-filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem;
  background: var(--surface);
  border-radius: 1rem;
  border: 1px solid var(--border);
}

/* Reports filters use global styles */

.reports-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
}

.reports-table header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.reports-actions-grid {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.reports-table table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.reports-table th,
.reports-table td {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.reports-table tr:last-child td {
  border-bottom: none;
}

.reports-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.reports-panels article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem;
}

.reports-panels ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.settings-hero,
.settings-grid,
.settings-table {
  margin-bottom: 1.5rem;
}

.settings-hero {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1rem;
}

.settings-hero .lead {
  color: var(--muted);
  max-width: 460px;
  line-height: 1.5;
}

.settings-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.settings-grid article,
.settings-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
}

.settings-grid header {
  margin-bottom: 0.75rem;
}

.settings-grid .muted {
  color: var(--muted);
  font-size: 0.85rem;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.settings-form input,
.settings-form select {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text);
}

.settings-switches {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}

.toggle-row small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
}

.settings-actions-grid {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.settings-table header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.settings-table table {
  width: 100%;
  border-collapse: collapse;
}

.settings-table th,
.settings-table td {
  text-align: left;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.settings-table tr:last-child td {
  border-bottom: none;
}

.projects-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 0;
}

.projects-hero .lead {
  margin: 0.5rem 0 0;
  color: var(--muted);
  max-width: 420px;
  font-size: 0.95rem;
}

.projects-actions {
  display: flex;
  gap: 0.75rem;
}

.projects-filters {
  margin-top: 0.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  align-items: end;
}

/* Projects filters use global styles */

.projects-advanced {
  margin-top: 1rem;
}

.project-status-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.project-status-grid article {
  background: var(--surface-alt);
  border-radius: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
}

.project-status-grid h4 {
  margin: 0;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.project-status-grid p {
  margin: 0.65rem 0 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.projects-table {
  margin-top: 1.5rem;
  background: var(--surface);
  border-radius: 1rem;
  border: 1px solid var(--border);
  padding: 1.25rem;
}

.projects-table header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.table-wrap {
  overflow-x: auto;
}

.projects-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.projects-table th,
.projects-table td {
  text-align: left;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.projects-table tr:last-child td {
  border-bottom: none;
}

.projects-panels {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.project-panel {
  background: var(--surface);
  border-radius: 1rem;
  border: 1px solid var(--border);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.project-panel h4 {
  margin: 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.project-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.projects-actions-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.projects-actions-grid button {
  flex: 1 1 140px;
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
}

.project-panel .lead {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

/* ===== CUSTOMER TYPES SETTINGS ===== */
.customer-types-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--surface-alt);
  border: 1px dashed var(--border);
  border-radius: 1rem;
  padding: 1rem;
}

.customer-types-form label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-weight: 600;
}

.customer-types-input {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
}

.customer-types-input input {
  width: 100%;
}

.customer-types-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.customer-types-empty {
  width: 100%;
  text-align: center;
  padding: 0.75rem;
  border-radius: 0.5rem;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9rem;
}

.customer-type-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
}

.customer-type-pill button {
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  padding: 0;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.customer-type-pill button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

/* ===== MODERN TOGGLE SWITCH ===== */
.switcher-row {
  padding: 0.75rem 0;
}

.switch {
  position: relative;
  display: inline-block;
  width: 80px;
  height: 40px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #ff5a7e 0%, #f06292 100%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 40px;
  border: 3px solid rgba(255, 90, 126, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.slider:before {
  position: absolute;
  content: "";
  height: 28px;
  width: 28px;
  left: 4px;
  bottom: 3px;
  background-color: white;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.slider:after {
  content: attr(data-off);
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  font-weight: bold;
  transition: opacity 0.3s ease;
}

input:checked + .slider {
  background: linear-gradient(135deg, #66bb6a 0%, #81c784 100%);
  border-color: rgba(102, 187, 106, 0.3);
}

input:checked + .slider:before {
  transform: translateX(40px);
}

input:checked + .slider:after {
  content: attr(data-on);
  left: 10px;
  right: auto;
  color: rgba(255, 255, 255, 0.9);
}

.slider:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

input:focus + .slider {
  box-shadow: 0 0 0 3px rgba(102, 187, 106, 0.2);
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .offcanvas {
    position: fixed;
    inset: 0;
    width: 240px !important;
    transform: translateX(-100%);
    transition: transform 0.3s ease, width 0.3s ease;
    z-index: 20;
  }
  
  nav.offcanvas.collapsed {
    width: 80px !important;
  }
  
  nav.offcanvas.collapsed:hover {
    width: 240px !important;
  }

  .offcanvas.open {
    transform: translateX(0);
  }
  
  .user-badge-sidebar {
    margin-bottom: 1rem;
  }

  main {
    padding-top: 4rem;
  }
}

/* ===== BUDGET VS ACTUAL STYLES ===== */
.module-body.budget-comparison {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.budget-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.budget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  font-size: 0.95rem;
}

.budget-percentage {
  color: var(--accent);
  font-weight: 600;
}

.budget-bar {
  width: 100%;
  height: 8px;
  background: var(--surface-alt);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.budget-actual {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.budget-values {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ===== WIP (WORK IN PROGRESS) STYLES ===== */
.module-body.wip-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.25rem;
}

.wip-stat {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.wip-stat:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
}

.wip-stat.highlight {
  background: linear-gradient(135deg, rgba(0, 195, 189, 0.1) 0%, rgba(255, 183, 3, 0.1) 100%);
  border-color: var(--accent);
}

.wip-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 500;
}

.wip-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.wip-stat.highlight .wip-value {
  color: var(--accent);
}

.wip-margin {
  font-size: 0.8rem;
  color: var(--accent-2);
  font-weight: 600;
}

@media (max-width: 768px) {
  .module-body.budget-comparison {
    gap: 1.25rem;
  }
  
  .module-body.wip-summary {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== MODERN SETTINGS PAGE STYLES ===== */

/* Settings Card Modern */
.settings-card-modern {
  background: linear-gradient(135deg, rgba(18, 23, 40, 0.95) 0%, rgba(28, 34, 48, 0.9) 100%);
  border: 1px solid rgba(0, 195, 189, 0.2);
  border-radius: 1.25rem;
  padding: 0;
  margin-bottom: 2.5rem;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.settings-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 80px rgba(0, 195, 189, 0.2);
  border-color: rgba(0, 195, 189, 0.4);
}

/* Settings Header with Gradient */
.settings-header-gradient {
  background: linear-gradient(135deg, rgba(0, 195, 189, 0.15) 0%, rgba(255, 183, 3, 0.1) 100%);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border-bottom: 2px solid rgba(0, 195, 189, 0.3);
  position: relative;
  overflow: hidden;
}

.settings-header-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.settings-card-modern:hover .settings-header-gradient::before {
  left: 100%;
}

.settings-icon {
  font-size: 3rem;
  line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(0, 195, 189, 0.3));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.settings-header-gradient h3 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, #00c3bd 0%, #ffb703 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.settings-header-gradient p {
  margin: 0.25rem 0 0 0;
  font-size: 0.95rem;
}

/* Settings Content Modern */
.settings-content-modern {
  padding: 2.5rem;
}

/* Form Grid Modern */
.form-grid-modern {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group-modern {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group-modern.button-group-modern {
  justify-content: flex-end;
}

.label-modern {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.input-modern {
  padding: 1rem 1.25rem;
  background: rgba(18, 23, 40, 0.6);
  border: 2px solid rgba(0, 195, 189, 0.2);
  border-radius: 0.75rem;
  color: var(--text);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.input-modern:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(18, 23, 40, 0.8);
  box-shadow: 0 0 0 4px rgba(0, 195, 189, 0.1);
}

.input-modern::placeholder {
  color: var(--muted);
}

/* Gradient Buttons */
.btn-gradient-primary {
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #00c3bd 0%, #00a89e 100%);
  border: none;
  border-radius: 0.75rem;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 195, 189, 0.3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.btn-gradient-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 195, 189, 0.5);
}

.btn-gradient-primary:active {
  transform: translateY(0);
}

.btn-gradient-success {
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  border-radius: 0.75rem;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.btn-gradient-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(16, 185, 129, 0.5);
}

.btn-gradient-warning {
  padding: 0.6rem 1.25rem;
  background: linear-gradient(135deg, #ffb703 0%, #fb8500 100%);
  border: none;
  border-radius: 0.5rem;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 12px rgba(255, 183, 3, 0.3);
}

.btn-gradient-warning:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(255, 183, 3, 0.5);
}

.btn-gradient-danger {
  padding: 0.6rem 1.25rem;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border: none;
  border-radius: 0.5rem;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 12px rgba(239, 68, 68, 0.3);
}

.btn-gradient-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(239, 68, 68, 0.5);
}

.btn-gradient-danger:disabled,
.btn-gradient-warning:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* Info Badge */
.info-badge {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 183, 3, 0.1);
  border-left: 4px solid var(--accent-2);
  border-radius: 0.5rem;
  font-size: 0.9rem;
}

/* Divider Modern */
.divider-modern {
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 195, 189, 0.3) 50%, transparent 100%);
  margin: 2rem 0;
}

/* Items List Modern */
.items-list-modern {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.items-list-modern li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  background: rgba(18, 23, 40, 0.6);
  border: 2px solid rgba(0, 195, 189, 0.15);
  border-radius: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.items-list-modern li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.items-list-modern li:hover {
  border-color: rgba(0, 195, 189, 0.4);
  background: rgba(18, 23, 40, 0.8);
  transform: translateX(4px);
}

.items-list-modern li:hover::before {
  opacity: 1;
}

.items-list-modern li > div:first-child {
  flex: 1;
}

.items-list-modern strong {
  font-size: 1.1rem;
  color: var(--text);
  display: block;
  margin-bottom: 0.5rem;
}

.items-list-modern small {
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.items-list-modern code {
  background: rgba(0, 195, 189, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: var(--accent);
  border: 1px solid rgba(0, 195, 189, 0.3);
}

.items-list-modern .btn-actions {
  display: flex;
  gap: 0.75rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .form-grid-modern {
    grid-template-columns: 1fr 1fr;
  }
  
  .form-group-modern.button-group-modern {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .settings-header-gradient {
    padding: 1.5rem;
    flex-direction: column;
    text-align: center;
  }
  
  .settings-content-modern {
    padding: 1.5rem;
  }
  
  .form-grid-modern {
    grid-template-columns: 1fr;
  }
  
  .items-list-modern li {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .items-list-modern .btn-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* ===== SETTINGS TABS SYSTEM ===== */

.settings-tabs-container {
  background: var(--surface);
  border-radius: 1rem;
  padding: 0.5rem;
  margin: 2rem 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 195, 189, 0.15);
}

.settings-tabs-nav {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.settings-tabs-nav::-webkit-scrollbar {
  height: 4px;
}

.settings-tabs-nav::-webkit-scrollbar-track {
  background: transparent;
}

.settings-tabs-nav::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

.settings-tab {
  flex: 1;
  min-width: 150px;
  padding: 1.25rem 2rem;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 0.75rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
}

.settings-tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 195, 189, 0.1) 0%, rgba(255, 183, 3, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.settings-tab:hover::before {
  opacity: 1;
}

.settings-tab:hover {
  color: var(--text);
  border-color: rgba(0, 195, 189, 0.3);
  transform: translateY(-2px);
}

.settings-tab.active {
  background: linear-gradient(135deg, rgba(0, 195, 189, 0.2) 0%, rgba(255, 183, 3, 0.15) 100%);
  border-color: var(--accent);
  color: var(--text);
  box-shadow: 0 4px 20px rgba(0, 195, 189, 0.3);
}

.settings-tab.active::before {
  opacity: 1;
}

.tab-icon {
  font-size: 1.5rem;
  filter: drop-shadow(0 2px 4px rgba(0, 195, 189, 0.3));
}

.tab-label {
  position: relative;
  z-index: 1;
}

/* Tab Content */
.settings-tab-content {
  display: none;
  animation: fadeIn 0.4s ease;
}

.settings-tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.settings-grid-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 450px), 1fr));
  gap: 2.5rem;
  margin: 2rem 0;
}

.settings-grid-tabs article {
  background: linear-gradient(135deg, rgba(18, 23, 40, 0.6) 0%, rgba(28, 34, 48, 0.5) 100%);
  border: 1px solid rgba(0, 195, 189, 0.15);
  border-radius: 1.25rem;
  padding: 2rem;
  transition: all 0.3s ease;
}

.settings-grid-tabs article:hover {
  border-color: rgba(0, 195, 189, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 15px 50px rgba(0, 195, 189, 0.15);
}

.settings-grid-tabs article header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(0, 195, 189, 0.2);
}

.settings-grid-tabs article header h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  color: var(--text);
}

.settings-grid-tabs article header p {
  margin: 0;
  font-size: 0.9rem;
}

/* Responsive Tabs */
@media (max-width: 768px) {
  .settings-tabs-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .settings-tab {
    min-width: 120px;
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
  }
  
  .tab-icon {
    font-size: 1.25rem;
  }
  
  .settings-grid-tabs {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
/* ===== PROJECT STATUSES MANAGEMENT STYLES ===== */

/* Status Badge "In Use" */
.status-badge.in-use {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  background: linear-gradient(135deg, rgba(255, 183, 3, 0.15) 0%, rgba(255, 183, 3, 0.05) 100%);
  border: 1px solid rgba(255, 183, 3, 0.4);
  border-radius: 1rem;
  color: #ffb703;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Item Content Modern */
.item-content-modern {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.item-name-modern {
  font-size: 1.05rem;
  color: var(--text);
  font-weight: 500;
}

/* Item Actions Modern */
.item-actions-modern {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Button Delete Modern */
.btn-delete-modern {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 0.5rem;
  color: #ef4444;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-delete-modern:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.2);
}

.btn-delete-modern:active {
  transform: translateY(0);
}

.btn-delete-modern svg {
  width: 16px;
  height: 16px;
}

/* Action Disabled (locked items) */
.action-disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(107, 114, 128, 0.1);
  border: 1px solid rgba(107, 114, 128, 0.2);
  border-radius: 0.5rem;
  color: var(--muted);
  font-size: 1.1rem;
  cursor: not-allowed;
  opacity: 0.5;
}

/* Item Modern (for list items) */
.item-modern {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  background: rgba(18, 23, 40, 0.4);
  border: 1px solid rgba(0, 195, 189, 0.15);
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.item-modern::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #00c3bd 0%, #ffb703 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.item-modern:hover {
  background: rgba(18, 23, 40, 0.6);
  border-color: rgba(0, 195, 189, 0.3);
  transform: translateX(4px);
}

.item-modern:hover::before {
  opacity: 1;
}

/* Empty State Modern */
.empty-state-modern {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-style: italic;
}

/* ========================================
   LIGHT THEME OVERRIDES
   ======================================== */

/* Light theme base - colors are applied via JavaScript */

[data-theme="light"] .sidebar {
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
}

[data-theme="light"] .card,
[data-theme="light"] .customer-card,
[data-theme="light"] .project-card,
[data-theme="light"] .finance-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .card:hover,
[data-theme="light"] .customer-card:hover,
[data-theme="light"] .project-card:hover,
[data-theme="light"] .finance-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .modal {
  background: var(--modal-bg);
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea {
  background: var(--input-bg);
  border-color: var(--border);
  color: var(--text);
}

[data-theme="light"] input:focus,
[data-theme="light"] select:focus,
[data-theme="light"] textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-alpha);
}

[data-theme="light"] .btn-secondary {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--text);
}

[data-theme="light"] .btn-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
}

[data-theme="light"] table th {
  background: var(--surface-alt);
  border-bottom: 2px solid var(--border);
}

[data-theme="light"] table td {
  border-bottom: 1px solid var(--border);
}

[data-theme="light"] table tr:hover {
  background: var(--surface-alt);
}

[data-theme="light"] .nav-item,
[data-theme="light"] .sidebar-item {
  color: var(--text);
}

[data-theme="light"] .nav-item:hover,
[data-theme="light"] .sidebar-item:hover {
  background: var(--surface-alt);
}

[data-theme="light"] .nav-item.active,
[data-theme="light"] .sidebar-item.active {
  background: var(--primary-alpha);
  color: var(--primary);
}

[data-theme="light"] .badge {
  background: var(--surface-alt);
}

[data-theme="light"] .status-badge.active,
[data-theme="light"] .status-badge.completed {
  background: rgba(22, 163, 74, 0.1);
  color: #16a34a;
}

[data-theme="light"] .status-badge.pending,
[data-theme="light"] .status-badge.waiting {
  background: rgba(217, 119, 6, 0.1);
  color: #d97706;
}

[data-theme="light"] .status-badge.inactive,
[data-theme="light"] .status-badge.cancelled {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}

/* Scrollbar for Light Theme */
[data-theme="light"] ::-webkit-scrollbar-track {
  background: var(--surface-alt);
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: var(--border);
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

/* Settings Cards Light Theme */
[data-theme="light"] .settings-card-compact {
  background: var(--card-bg);
  border: 1px solid var(--border);
}

[data-theme="light"] .settings-card-compact:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Dashboard Stats Light Theme */
[data-theme="light"] .stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
}

/* Charts Light Theme */
[data-theme="light"] .chart-container {
  background: var(--card-bg);
  border: 1px solid var(--border);
}

/* Dropdown Light Theme */
[data-theme="light"] .dropdown-menu {
  background: var(--card-bg);
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .dropdown-item:hover {
  background: var(--surface-alt);
}

/* Toast Light Theme */
[data-theme="light"] .toast {
  background: var(--card-bg);
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Filters Light Theme */
[data-theme="light"] .filters-section {
  background: var(--surface-alt);
  border: 1px solid var(--border);
}
