:root {
  --primary-bg: #0a1929;
  --secondary-bg: #132f4c;
  --accent-bg: #1e4976;
  --hover-bg: #2d5a8a;
  --text-primary: #ffffff;
  --text-secondary: #b0c4de;
  --border-color: #1e4976;
  --success: #4caf50;
  --warning: #ff9800;
  --error: #f44336;
  --info: #2196f3;
  --sidebar-width: 250px;
  --header-height: 60px;
  --transition: all 0.3s ease;
}

[data-theme="light"] {
  --primary-bg: #ffffff;
  --secondary-bg: #f5f5f5;
  --accent-bg: #e3f2fd;
  --hover-bg: #bbdefb;
  --text-primary: #212121;
  --text-secondary: #757575;
  --border-color: #e0e0e0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--primary-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
  padding: 20px;
}

.login-box {
  background: var(--secondary-bg);
  border-radius: 12px;
  padding: 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.login-logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin-bottom: 20px;
  object-fit: cover;
}

.login-title {
  font-size: 24px;
  margin-bottom: 30px;
  color: var(--text-primary);
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 14px;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #000000;
  border-radius: 6px;
  background: var(--accent-bg);
  color: var(--text-primary);
  font-size: 14px;
  transition: var(--transition);
}

.form-group input:focus {
  outline: none;
  border-color: #000000;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2);
}

/* Style pour les select (combobox) - identique aux inputs */
.form-group select,
select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #000000;
  border-radius: 6px;
  background: var(--accent-bg);
  color: var(--text-primary);
  font-size: 14px;
  transition: var(--transition);
  cursor: pointer;
}

.form-group select:focus,
select:focus {
  outline: none;
  border-color: #000000;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2);
}

/* Style pour les textarea */
.form-group textarea,
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #000000;
  border-radius: 6px;
  background: var(--accent-bg);
  color: var(--text-primary);
  font-size: 14px;
  transition: var(--transition);
  resize: vertical;
  font-family: inherit;
}

.form-group textarea:focus,
textarea:focus {
  outline: none;
  border-color: var(--info);
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  box-sizing: border-box;
}

.btn-primary {
  background: var(--info);
  color: white;
  width: auto;
}

.login-box .btn,
.login-box .btn-primary {
  width: 100%;
}

.btn-primary:hover {
  background: #1976d2;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.app-container {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.sidebar {
  width: var(--sidebar-width);
  background: var(--secondary-bg);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  z-index: 100;
}

.sidebar.collapsed {
  width: 70px;
}

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.sidebar-title {
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
}

.sidebar.collapsed .sidebar-title {
  display: none;
}

.sidebar-nav {
  flex: 1;
  padding: 20px 0;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

.nav-item:hover {
  background: var(--accent-bg);
  color: var(--text-primary);
}

.nav-item.active {
  background: var(--accent-bg);
  color: var(--text-primary);
  border-left: 4px solid var(--info);
}

.nav-icon {
  font-size: 20px;
  min-width: 20px;
}

.nav-text {
  white-space: nowrap;
  overflow: hidden;
}

.sidebar.collapsed .nav-text {
  display: none;
}

.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.sidebar.collapsed ~ .main-content {
  margin-left: 70px;
}

.header {
  height: var(--header-height);
  background: var(--secondary-bg);
  border-bottom: 1px solid var(--border-color);
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.menu-toggle {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: var(--transition);
}

.menu-toggle:hover {
  background: var(--accent-bg);
}

.header-title {
  font-size: 20px;
  font-weight: 600;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.theme-toggle {
  background: var(--accent-bg);
  border: none;
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle:hover {
  background: var(--hover-bg);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.logout-btn {
  background: var(--error);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.logout-btn:hover {
  background: #d32f2f;
}

.content {
  flex: 1;
  padding: 30px;
  overflow-y: auto;
  background: var(--primary-bg);
}

.card {
  background: var(--secondary-bg);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.card-title {
  font-size: 20px;
  font-weight: 600;
}

.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.tab {
  padding: 12px 24px;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}

.tab:hover {
  color: var(--text-primary);
}

.tab.active {
  color: var(--info);
  border-bottom-color: var(--info);
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: var(--accent-bg);
}

th {
  padding: 12px;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
}

td {
  padding: 12px;
  border-bottom: 1px solid var(--border-color);
}

tr:hover {
  background: var(--accent-bg);
}

.btn-sm {
  padding: 6px 10px;
  font-size: 14px;
  margin-right: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 34px;
  height: 34px;
  box-sizing: border-box;
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-warning {
  background: var(--warning);
  color: white;
}

.btn-error {
  background: var(--error);
  color: white;
}

.btn-info {
  background: var(--info);
  color: white;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--secondary-bg);
  border-radius: 8px;
  padding: 30px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-title {
  font-size: 20px;
  font-weight: 600;
}

.close-modal {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-secondary);
  cursor: pointer;
}

.close-modal:hover {
  color: var(--text-primary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.kpi-card {
  position: relative;
  padding: 20px;
  border-radius: 12px;
  overflow: hidden;
  border: none;
}

.kpi-icon-bg {
  font-size: 28px;
  margin-bottom: 8px;
  line-height: 1;
  filter: brightness(1.2);
}

.kpi-label {
  font-size: 13px;
  margin-bottom: 8px;
  opacity: 0.85;
  font-weight: 500;
}

.kpi-value {
  font-size: 26px;
  font-weight: 700;
}

/* KPI color variants */
.kpi-revenue {
  background: linear-gradient(135deg, #0d6e3f 0%, #148c50 50%, #1aab62 100%);
  color: #fff;
}

.kpi-sales {
  background: linear-gradient(135deg, #1a56a8 0%, #2176d6 50%, #3b8fe8 100%);
  color: #fff;
}

.kpi-stock {
  background: linear-gradient(135deg, #7b2d8e 0%, #9b3db5 50%, #b254cc 100%);
  color: #fff;
}

.kpi-debt {
  background: linear-gradient(135deg, #b8430a 0%, #d65312 50%, #e8731f 100%);
  color: #fff;
}

.kpi-orders {
  background: linear-gradient(135deg, #0a6e7a 0%, #0d8d9c 50%, #12b0c2 100%);
  color: #fff;
}

.kpi-quotes {
  background: linear-gradient(135deg, #8a6d1b 0%, #b08d24 50%, #cca72e 100%);
  color: #fff;
}

.kpi-card .kpi-label {
  color: rgba(255, 255, 255, 0.85);
}

.kpi-card .kpi-value {
  color: #fff;
}

.search-box {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.search-input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--accent-bg);
  color: var(--text-primary);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
}

.mobile-overlay.active {
  display: block;
}

@media (max-width: 1023px) {
  .sidebar {
    transform: translateX(-100%);
  }
  
  .sidebar.mobile-open {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0 !important;
  }
  
  .hamburger {
    display: flex;
  }
  
  .menu-toggle {
    display: none;
  }
  
  .btn {
    min-height: 42px;
    padding: 12px 18px;
    touch-action: manipulation;
  }
  
  .modal-content {
    width: 92%;
    max-height: 88vh;
  }
}

@media (max-width: 767px) {
  /* ===== HEADER ===== */
  .header {
    padding: 0 6px;
    height: 48px;
    gap: 4px;
    overflow: hidden;
  }
  
  .header-left {
    gap: 6px;
    flex-shrink: 1;
    min-width: 0;
  }
  
  .header-title {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
  }
  
  .header-right {
    gap: 4px;
    flex-shrink: 0;
  }
  
  .theme-toggle {
    padding: 3px 5px;
    font-size: 13px;
  }
  
  .user-avatar {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }
  
  .user-info {
    gap: 0;
  }
  
  .user-info span {
    display: none;
  }
  
  .logout-btn {
    padding: 3px 6px;
    font-size: 9px;
  }
  
  /* ===== CONTENT ===== */
  .content {
    padding: 10px;
  }
  
  .card {
    padding: 10px;
    margin-bottom: 12px;
  }
  
  h2 {
    font-size: 14px;
  }
  
  h3 {
    font-size: 13px;
  }
  
  h4 {
    font-size: 12px;
  }
  
  /* ===== HIDE MOBILE ===== */
  .hide-mobile {
    display: none !important;
  }
  
  /* ===== BUTTONS - very compact ===== */
  .btn {
    min-height: 30px;
    padding: 5px 10px;
    font-size: 11px;
    touch-action: manipulation;
    white-space: nowrap;
  }
  
  .btn-sm {
    min-height: 24px;
    padding: 3px 6px;
    font-size: 10px;
  }
  
  /* ===== CARD HEADER ===== */
  .card-header {
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
    padding-bottom: 8px;
  }
  
  .card-header > div {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }
  
  .card-title {
    font-size: 13px;
    white-space: nowrap;
  }
  
  .card-header .btn,
  .card-header .btn-sm {
    min-height: 26px;
    padding: 3px 7px;
    font-size: 10px;
  }
  
  /* ===== TABS ===== */
  .tabs {
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    margin-bottom: 10px;
    padding-bottom: 4px;
    scrollbar-width: thin;
    scroll-behavior: smooth;
  }
  
  .tabs::-webkit-scrollbar {
    height: 3px;
  }
  
  .tabs::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
  }
  
  .tab {
    padding: 5px 6px;
    font-size: 9px;
    white-space: nowrap;
    flex-shrink: 0;
    border-bottom-width: 2px;
  }
  
  /* ===== SEARCH BOX ===== */
  .search-box {
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
  }
  
  .search-box .search-input {
    font-size: 11px;
    padding: 6px 8px;
    min-width: 0;
  }
  
  .search-box select {
    font-size: 11px;
    padding: 6px 8px;
    max-width: none;
    flex: 1;
    min-width: 0;
  }
  
  .search-box .btn {
    min-height: 28px;
    padding: 4px 10px;
    font-size: 10px;
  }
  
  /* ===== FORMS ===== */
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .form-group {
    margin-bottom: 12px;
  }
  
  .form-group label {
    font-size: 11px;
    margin-bottom: 4px;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 8px 10px;
    font-size: 12px;
  }
  
  select, label {
    font-size: 11px;
  }
  
  select {
    padding: 6px 8px;
  }
  
  /* ===== TABLES ===== */
  table {
    font-size: 9px;
    width: 100%;
  }
  
  th, td {
    padding: 4px 2px;
    word-break: break-word;
  }
  
  th {
    font-size: 8px;
    font-weight: 700;
    white-space: nowrap;
  }
  
  /* ===== KPI GRID ===== */
  .kpi-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  
  .kpi-card {
    padding: 10px 12px;
    border-radius: 10px;
  }
  
  .kpi-icon-bg {
    font-size: 20px;
    margin-bottom: 4px;
  }
  
  .kpi-label {
    font-size: 9px;
    margin-bottom: 3px;
    line-height: 1.2;
  }
  
  .kpi-value {
    font-size: 15px;
    font-weight: 700;
  }
  
  /* ===== MODAL ===== */
  .modal-content {
    padding: 15px;
    width: 95%;
    max-height: 88vh;
  }
  
  .modal-title {
    font-size: 14px;
  }
  
  /* ===== LOGIN ===== */
  .login-container {
    padding: 16px;
    background: linear-gradient(160deg, #0a1628 0%, #1a2744 50%, #0d1f3c 100%);
  }
  
  .login-box {
    padding: 28px 20px;
    border-radius: 20px;
    max-width: 340px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  }
  
  .login-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 12px;
    border: 3px solid var(--info);
    box-shadow: 0 4px 20px rgba(33, 150, 243, 0.3);
  }
  
  .login-title {
    font-size: 18px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
  }
  
  .login-box .form-group {
    margin-bottom: 14px;
  }
  
  .login-box .form-group label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    color: var(--text-secondary);
  }
  
  .login-box .form-group input {
    padding: 12px 14px;
    font-size: 14px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--primary-bg);
    transition: border-color 0.2s;
  }
  
  .login-box .form-group input:focus {
    border-color: var(--info);
    outline: none;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.15);
  }
  
  .login-box .btn {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    margin-top: 6px;
    letter-spacing: 0.3px;
  }
  
  /* ===== CONFIRM DIALOG ===== */
  .confirm-dialog {
    padding: 24px 20px 20px;
    border-radius: 14px;
    max-width: 320px;
  }
  
  .confirm-icon {
    font-size: 32px;
    margin-bottom: 10px;
  }
  
  .confirm-message {
    font-size: 13px;
    margin-bottom: 18px;
  }
  
  .confirm-buttons {
    gap: 8px;
  }
  
  .confirm-cancel,
  .confirm-ok {
    padding: 9px 16px;
    font-size: 12px;
    border-radius: 8px;
  }
  
  /* ===== STOCK BY STORE TABLE ===== */
  #stockByStoreTable {
    font-size: 8px;
  }
  
  #stockByStoreTable th,
  #stockByStoreTable td {
    padding: 3px 2px;
    text-align: center;
    white-space: nowrap;
    min-width: 28px;
  }
  
  #stockByStoreTable th:first-child,
  #stockByStoreTable td:first-child {
    text-align: left;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  /* ===== PRODUCT/SERVICE NAME & STORE TRUNCATION ===== */
  #productsTable td:first-child,
  #servicesTable td:first-child {
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  #productsTable td:nth-child(2) {
    max-width: 65px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 8px;
  }
  
  /* ===== MOVEMENT TABLE ===== */
  #movementTable td:first-child {
    max-width: 55px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 8px;
  }
  
  #movementTable td:nth-child(2) {
    max-width: 55px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  /* ===== TRANSFER TABLE ===== */
  #transferTable td:nth-child(2),
  #transferTable td:nth-child(3),
  #transferTable td:nth-child(4) {
    max-width: 55px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  /* ===== ACCOUNTS TABLE ===== */
  #accountsTable td {
    font-size: 8px;
    padding: 3px 2px;
  }
  
  #accountsTable td:first-child {
    max-width: 50px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  #accountsTable td:nth-child(2) {
    max-width: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 7px;
  }
  
  /* ===== CASH TABLE ===== */
  #cashSessionsTable td {
    font-size: 8px;
    padding: 3px 2px;
  }
  
  #cashSessionsTable td:first-child {
    max-width: 55px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 7px;
  }
  
  #cashSessionsTable td:nth-child(2) {
    max-width: 50px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  /* ===== ACTION BUTTONS INLINE ===== */
  td:last-child {
    white-space: nowrap;
  }
  
  .btn-sm {
    min-height: 20px;
    padding: 1px 3px;
    font-size: 8px;
    margin-right: 1px;
  }
  
  /* ===== TOAST ===== */
  .toast {
    bottom: 10px;
    right: 10px;
    left: 10px;
    max-width: calc(100% - 20px);
    font-size: 12px;
    padding: 10px 14px;
  }
}

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--secondary-bg);
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 2000;
  transform: translateX(400px);
  transition: var(--transition);
}

.toast.show {
  transform: translateX(0);
}

.toast.success {
  border-left: 4px solid var(--success);
}

.toast.error {
  border-left: 4px solid var(--error);
}

.toast.warning {
  border-left: 4px solid var(--warning);
}

.toast.info {
  border-left: 4px solid var(--info);
}

.loading {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading.active {
  display: flex;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--border-color);
  border-top-color: var(--info);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Status indicators */
.status-ok {
  color: var(--success);
  font-weight: 500;
}

.status-warning {
  color: var(--warning);
  font-weight: 500;
}

.status-error {
  color: var(--error);
  font-weight: 500;
}

/* Combobox dropdown styling */
.combobox-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--secondary-bg, #132f4c);
  border: 1px solid var(--border-color, #1e4976);
  border-top: none;
  border-radius: 0 0 4px 4px;
  max-height: 250px;
  overflow-y: auto;
  display: none;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.combobox-item {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  cursor: pointer;
  transition: all 0.15s ease;
  background: var(--secondary-bg, #132f4c);
  color: var(--text-primary, #ffffff);
  display: flex;
  flex-direction: column;
}

.combobox-item:hover {
  background-color: var(--accent-bg, #1e4976);
  border-left: 3px solid var(--info, #2196f3);
  padding-left: 9px;
}

.combobox-item:last-child {
  border-bottom: none;
}

/* ===== CUSTOM CONFIRM DIALOG ===== */
.confirm-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  padding: 20px;
  backdrop-filter: blur(3px);
}

.confirm-overlay.active {
  display: flex;
}

.confirm-dialog {
  background: var(--secondary-bg);
  border-radius: 16px;
  padding: 30px 28px 24px;
  width: 100%;
  max-width: 380px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: confirmSlideIn 0.25s ease-out;
}

@keyframes confirmSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.confirm-icon {
  font-size: 40px;
  margin-bottom: 14px;
  line-height: 1;
}

.confirm-message {
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 24px;
  word-break: break-word;
}

.confirm-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.confirm-cancel {
  background: var(--accent-bg);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  flex: 1;
}

.confirm-cancel:hover {
  background: var(--hover-bg);
}

.confirm-ok {
  background: var(--error);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  flex: 1;
}

.confirm-ok:hover {
  opacity: 0.9;
}

.confirm-ok.confirm-ok-primary {
  background: var(--info);
}

.confirm-ok.confirm-ok-success {
  background: var(--success);
}
