/* css/style.css - Design System & Responsive Styles for Android Tablet & Phone (Argie CSS Theme) */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  /* Argie Workspace Signature Palette (from Branch.css, admin.css) */
  --rust: #AA542B;
  --maroon: #8D244D;
  --terracotta: #C2441C;
  --plum: #852E47;
  --wheat: #EAE297;
  --olive: rgb(74, 90, 48); /* #4A5A30 */
  --olive-dark: #394725;
  --olive-light: rgba(74, 90, 48, 0.12);

  /* Argie Surface & Background Colors */
  --bg-main: #F6F1E4;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FAF7F0;
  --bg-banner: linear-gradient(135deg, #FAF6EE 0%, #F5EDE0 100%);
  --border-color: #D5C9B3;
  --border-light: #EDE4D3;

  /* Argie Typography Colors */
  --text-dark: #2F2116;
  --text-body: #38271A;
  --text-muted: #8A6E5A;
  --text-light: #FBF6E9;
  --text-dim: #E9CFB4;

  /* Argie Status Badge Colors */
  --status-active-bg: #E4F5E6;
  --status-active-color: #1E6B2A;
  --status-active-border: #BCE5C0;

  --status-warning-bg: #FFF4E5;
  --status-warning-color: #B26A00;
  --status-warning-border: #FCE2B8;

  --status-inactive-bg: #FEECEB;
  --status-inactive-color: #B92518;
  --status-inactive-border: #F8C8C4;

  /* Shadows */
  --shadow-sm: 0 2px 6px rgba(74, 90, 48, 0.08);
  --shadow-md: 0 4px 14px rgba(74, 90, 48, 0.12);
  --shadow-glow: 0 0 16px rgba(170, 84, 43, 0.25);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --touch-target: 48px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets & typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  overflow-x: hidden;
}

/* App Container */
.app-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
}

/* ==========================================
   1. TOPBAR (Argie Olive Theme)
   ========================================== */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--olive);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  min-height: 68px;
  gap: 12px;
}

/* Topbar Left: Logo */
.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--wheat);
  padding: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.brand-name {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: -0.2px;
}

.brand-tag {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Topbar Center: Page Title */
.topbar-center {
  flex: 2;
  text-align: center;
}

.page-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.page-title-badge {
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--olive-dark);
  color: var(--wheat);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Topbar Right: User Profile & Logout */
.topbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 1;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.12);
  padding: 5px 14px 5px 6px;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.user-profile:hover {
  background: rgba(255, 255, 255, 0.2);
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--rust);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-weight: 700;
  font-size: 0.95rem;
  position: relative;
}

.user-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--wheat);
  border: 1.5px solid var(--olive);
}

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

.user-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-light);
  line-height: 1.2;
}

.user-role {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 500;
}

.logout-btn {
  background: rgba(141, 36, 77, 0.25);
  border: 1px solid var(--maroon);
  color: #FFC0B0;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  text-decoration: none;
}

.logout-btn:hover {
  background: var(--maroon);
  color: #FFFFFF;
}


/* ==========================================
   SUMMARY STATS OVERVIEW CARDS
   ========================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--olive);
  box-shadow: var(--shadow-md);
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
}

.stat-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.icon-blue { background: var(--olive-light); color: var(--olive); }
.icon-emerald { background: var(--status-active-bg); color: var(--status-active-color); }
.icon-amber { background: var(--status-warning-bg); color: var(--status-warning-color); }
.icon-rose { background: var(--status-inactive-bg); color: var(--status-inactive-color); }


/* ==========================================
   2. THREE ACTION BUTTONS (Stock IN, POS, Inventory)
   ========================================== */
.actions-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.action-btn {
  height: var(--touch-target);
  min-height: 50px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text-dark);
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.action-btn i {
  font-size: 1.2rem;
}

.action-btn:hover {
  transform: translateY(-2px);
  border-color: var(--olive);
}

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

/* Stock IN Button */
.btn-stockin {
  background: #FAF7F0;
  border-color: #D5C9B3;
  color: var(--olive);
}
.btn-stockin:hover {
  background: var(--olive);
  color: var(--wheat);
  border-color: var(--olive);
}

/* POS Button */
.btn-pos {
  background: #FAF5EB;
  border-color: #EFE4D2;
  color: var(--maroon);
}
.btn-pos:hover {
  background: var(--maroon);
  color: #FFFFFF;
  border-color: var(--maroon);
}

/* Inventory Active Button */
.btn-inventory {
  background: var(--rust);
  border-color: var(--rust);
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(170, 84, 43, 0.35);
}
.btn-inventory:hover,
.btn-inventory.active {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(170, 84, 43, 0.45);
}


/* ==========================================
   3. SEARCH BAR & FILTERS
   ========================================== */
.search-filter-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}

.search-input-wrapper {
  flex: 1;
  min-width: 260px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 14px;
  color: var(--olive);
  font-size: 1.1rem;
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: var(--touch-target);
  background: #FAF7F0;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0 40px 0 42px;
  color: var(--text-dark);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(74, 90, 48, 0.15);
  background: #FFFFFF;
}

.clear-search-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.clear-search-btn:hover {
  color: var(--text-dark);
}

.filter-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-select {
  height: var(--touch-target);
  background: #FAF7F0;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0 32px 0 14px;
  color: var(--text-dark);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%3C4A5A30' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  min-width: 140px;
}

.filter-select:focus {
  outline: none;
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(74, 90, 48, 0.15);
}

.reset-filter-btn {
  height: var(--touch-target);
  padding: 0 16px;
  background: #FAF7F0;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--olive);
  font-size: 0.88rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.reset-filter-btn:hover {
  background: var(--olive);
  border-color: var(--olive);
  color: var(--wheat);
}


/* ==========================================
   4. DATA TABLE DISPLAY (Argie Table Style)
   ========================================== */
.table-card {
  background: var(--bg-card);
  border: 1px solid rgba(74, 90, 48, 0.12);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.table-header-info {
  padding: 14px 20px;
  background: #EFE7D8;
  border-bottom: 2px solid #D9CDBC;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.table-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #4A3828;
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-records-count {
  font-size: 0.8rem;
  color: var(--olive-dark);
  background: #FAF5EB;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid #D9CDBC;
  font-weight: 700;
}

.table-wrapper {
  overflow-x: auto;
  max-height: 520px;
  overflow-y: auto;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

/* Custom scrollbars */
.table-wrapper::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.table-wrapper::-webkit-scrollbar-track {
  background: #F6F1E4;
}
.table-wrapper::-webkit-scrollbar-thumb {
  background: #D5C9B3;
  border-radius: 4px;
}
.table-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--olive);
}

.product-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.product-table th {
  background: #EFE7D8;
  color: #4A3828;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 18px;
  border-bottom: 2px solid #D9CDBC;
  position: sticky;
  top: 0;
  z-index: 10;
  white-space: nowrap;
}

.product-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-body);
  vertical-align: middle;
  white-space: nowrap;
}

.product-table tbody tr {
  transition: background 0.15s ease;
}

.product-table tbody tr:nth-child(even) {
  background: #FCFAF5;
}

.product-table tbody tr:hover {
  background: #FAF7F0;
}

.col-product-name {
  font-weight: 700;
  color: var(--text-dark);
}

.category-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--olive-light);
  border: 1px solid rgba(74, 90, 48, 0.2);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--olive);
}

.col-price {
  font-weight: 700;
  color: var(--rust);
  font-size: 0.98rem;
}

.col-qty {
  font-weight: 700;
}

/* Status Badges (Matching Argie .badge Classes) */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

/* In Stock (.badge-active argie palette) */
.status-in-stock {
  background: var(--status-active-bg);
  color: var(--status-active-color);
  border: 1px solid var(--status-active-border);
}
.status-in-stock .status-dot {
  background: var(--status-active-color);
}

/* Low Stock (.badge-warning argie palette) */
.status-low-stock {
  background: var(--status-warning-bg);
  color: var(--status-warning-color);
  border: 1px solid var(--status-warning-border);
}
.status-low-stock .status-dot {
  background: var(--status-warning-color);
  animation: pulse-dot 1.5s infinite;
}

/* Out of Stock (.badge-inactive argie palette) */
.status-out-stock {
  background: var(--status-inactive-bg);
  color: var(--status-inactive-color);
  border: 1px solid var(--status-inactive-border);
}
.status-out-stock .status-dot {
  background: var(--status-inactive-color);
}

@keyframes pulse-dot {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
  100% { opacity: 1; transform: scale(1); }
}

.col-datetime {
  color: var(--text-muted);
  font-size: 0.84rem;
}

.table-empty-state {
  padding: 50px 20px;
  text-align: center;
  color: var(--text-muted);
}
.table-empty-state i {
  font-size: 2.5rem;
  margin-bottom: 12px;
  color: var(--olive);
}


/* ==========================================
   5. LOGIN UI STYLES (Argie Palette)
   ========================================== */
.login-body-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-color: var(--bg-main);
}

.login-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 440px;
  box-shadow: 0 10px 30px rgba(74, 90, 48, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.login-header {
  background: var(--olive);
  padding: 28px 24px 22px;
  text-align: center;
}

.login-brand-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 12px;
  background: var(--wheat);
  padding: 6px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.login-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light);
}

.login-subtitle {
  font-size: 0.85rem;
  color: var(--wheat);
  font-weight: 500;
  margin-top: 2px;
}

.login-body {
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.input-icon-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--olive);
  font-size: 1.15rem;
  pointer-events: none;
}

.input-with-icon {
  padding-left: 44px !important;
}

.password-toggle-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.15rem;
  cursor: pointer;
  padding: 4px;
}

.password-toggle-btn:hover {
  color: var(--olive);
}

.btn-login-submit {
  height: 50px;
  background: var(--rust);
  border: none;
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 6px rgba(170, 84, 43, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-login-submit:hover {
  background: var(--terracotta);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(170, 84, 43, 0.45);
}

.login-demo-pills {
  margin-top: 8px;
  background: #FAF7F0;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.demo-title {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  margin-bottom: 8px;
  text-align: center;
}

.demo-pills-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.demo-account-btn {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  color: var(--olive);
  padding: 5px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.demo-account-btn:hover {
  background: var(--olive);
  color: var(--wheat);
}


/* ==========================================
   MODAL DIALOGS (Argie Color Scheme)
   ========================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(47, 33, 22, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transform: translateY(20px) scale(0.95);
  transition: var(--transition);
}

.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 18px 24px;
  background: var(--olive);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 10px;
}

.close-modal-btn {
  background: none;
  border: none;
  color: var(--wheat);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
}

.modal-body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1 1 auto;
  overflow-y: auto !important;
  overflow-x: hidden;
  max-height: 100%;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.form-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
}

.form-control {
  height: var(--touch-target);
  background: #FAF7F0;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  color: var(--text-dark);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(74, 90, 48, 0.15);
  background: #FFFFFF;
}

.modal-footer {
  padding: 16px 24px;
  background: #FAF7F0;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.btn-secondary {
  height: var(--touch-target);
  padding: 0 20px;
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  border: 1.5px solid var(--border-color);
  color: var(--olive);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

.btn-primary {
  height: var(--touch-target);
  padding: 0 24px;
  border-radius: var(--radius-sm);
  background: var(--rust);
  border: none;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(170, 84, 43, 0.35);
}


/* ==========================================
   TOAST NOTIFICATIONS
   ========================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-message {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  color: var(--text-dark);
  font-size: 0.92rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  pointer-events: auto;
  animation: slide-in-toast 0.3s ease-out forwards;
}

.toast-success { border-left: 4px solid var(--status-active-color); }
.toast-error { border-left: 4px solid var(--terracotta); }
.toast-info { border-left: 4px solid var(--olive); }

@keyframes slide-in-toast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}


/* ==========================================
   RESPONSIVE BREAKPOINTS
   ========================================== */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .topbar { padding: 10px 16px; }
  .page-title { font-size: 1.25rem; }
}

@media (max-width: 767px) {
  .app-container { padding: 10px; gap: 14px; }
  .topbar { flex-wrap: wrap; min-height: auto; }
  .topbar-left { flex: 0 0 auto; }
  .topbar-center { order: 3; flex: 1 0 100%; margin-top: 6px; text-align: left; }
  .page-title { justify-content: flex-start; }
  .topbar-right { flex: 0 0 auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .actions-bar { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .action-btn { font-size: 0.85rem; padding: 0 6px; }
  .search-filter-section { flex-direction: column; align-items: stretch; }
  .filter-controls { justify-content: space-between; }
  .filter-select { flex: 1; }
}

@media (max-width: 599px) {
  .user-name, .user-role { display: none; }
  .user-profile { padding: 4px; border-radius: 50%; }
  .actions-bar { grid-template-columns: 1fr; }
  .action-btn { height: 48px; }
}
