/* ═══════════════════════════════════════════════════════════════
   BrolloDrive — Premium UI
   Palette: Dark Cosmos + Kenya Emerald + Signal Red + Gold
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg-base:       #080C18;
  --bg-surface:    #0F1421;
  --bg-card:       #141929;
  --bg-card-hover: #1A2035;
  --bg-elevated:   #1F2740;
  --bg-glass:      rgba(255,255,255,0.035);

  --border:        rgba(255,255,255,0.07);
  --border-hover:  rgba(255,255,255,0.14);

  --primary:       #00D4AA;
  --primary-dim:   rgba(0,212,170,0.15);
  --primary-glow:  rgba(0,212,170,0.35);
  --accent-red:    #FF4E4E;
  --accent-red-dim:rgba(255,78,78,0.15);
  --accent-gold:   #FFB300;
  --accent-blue:   #4F8EF7;
  --accent-purple: #9B6DFF;

  --text-primary:  #F0F4FF;
  --text-secondary:#8892A4;
  --text-muted:    #525E72;

  --sidebar-w:     260px;
  --topbar-h:      64px;
  --radius:        12px;
  --radius-sm:     8px;
  --radius-lg:     18px;
  --transition:    0.2s cubic-bezier(.4,0,.2,1);

  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-float: 0 12px 48px rgba(0,0,0,0.6);
}

*, *::before, *::after { box-sizing:border-box; margin:0; padding:0; }

html { scroll-behavior:smooth; }

body {
  font-family:'Inter', system-ui, sans-serif;
  background:var(--bg-base);
  color:var(--text-primary);
  font-size:14px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}

/* ═══ SCROLLBAR ═══ */
::-webkit-scrollbar { width:6px; height:6px; }
::-webkit-scrollbar-track { background:transparent; }
::-webkit-scrollbar-thumb { background:var(--bg-elevated); border-radius:99px; }
::-webkit-scrollbar-thumb:hover { background:var(--text-muted); }

/* ═══ UTILITIES ═══ */
.hidden { display:none !important; }
.flex { display:flex; }
.flex-col { flex-direction:column; }
.items-center { align-items:center; }
.gap-2 { gap:.5rem; }
.gap-3 { gap:.75rem; }
.gradient-text {
  background:linear-gradient(135deg, var(--primary), var(--accent-blue));
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}

/* ═══════════════════════════════════════════════════════════════
   LOGIN PAGE
   ═══════════════════════════════════════════════════════════════ */
.login-body {
  background:var(--bg-base);
  min-height:100vh;
  display:flex;
}

.login-wrap {
  display:flex;
  width:100%;
  min-height:100vh;
}

/* ── Left panel ── */
.login-left {
  flex:1;
  position:relative;
  overflow:hidden;
  background:linear-gradient(145deg, #0B1A2E 0%, #0D2413 40%, #0A1A0E 100%);
  display:flex;
  flex-direction:column;
  padding:3rem;
}

.login-brand {
  display:flex;
  align-items:center;
  gap:.75rem;
  z-index:2;
}
.login-brand svg { width:40px; height:40px; }
.brand-name { font-size:1.4rem; font-weight:700; color:var(--text-primary); letter-spacing:-.02em; }

.login-left-content {
  flex:1;
  display:flex;
  flex-direction:column;
  justify-content:center;
  z-index:2;
}

.login-left-content h1 {
  font-size:3rem;
  font-weight:800;
  line-height:1.15;
  margin-bottom:1.25rem;
  color:#fff;
}

.login-left-content p {
  font-size:1.05rem;
  color:rgba(255,255,255,.55);
  max-width:360px;
  margin-bottom:2.5rem;
  line-height:1.7;
}

.feature-list {
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:.9rem;
}
.feature-list li {
  display:flex;
  align-items:center;
  gap:.75rem;
  color:rgba(255,255,255,.7);
  font-size:.95rem;
}
.feat-icon { font-size:1.2rem; }

.login-left-footer {
  z-index:2;
  color:rgba(255,255,255,.25);
  font-size:.8rem;
}

/* ── Animated blobs ── */
.blob {
  position:absolute;
  border-radius:50%;
  filter:blur(80px);
  opacity:.25;
  animation:blobPulse 8s ease-in-out infinite;
}
.blob-1 {
  width:400px; height:400px;
  background:radial-gradient(circle, #00D4AA, transparent 70%);
  top:-100px; right:-100px;
  animation-delay:0s;
}
.blob-2 {
  width:300px; height:300px;
  background:radial-gradient(circle, #006B3C, transparent 70%);
  bottom:50px; left:-80px;
  animation-delay:-3s;
}
.blob-3 {
  width:250px; height:250px;
  background:radial-gradient(circle, #BB0000, transparent 70%);
  bottom:200px; right:100px;
  animation-delay:-5s;
}
@keyframes blobPulse {
  0%,100% { transform:scale(1) translate(0,0); }
  33%     { transform:scale(1.1) translate(20px,-20px); }
  66%     { transform:scale(.95) translate(-15px,10px); }
}

/* ── Right / form panel ── */
.login-right {
  width:500px;
  background:var(--bg-surface);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:2rem;
}

.login-card {
  width:100%;
  max-width:380px;
}

.login-card-header { margin-bottom:2rem; }
.login-card-header h2 { font-size:1.75rem; font-weight:700; margin-bottom:.35rem; }
.login-card-header p  { color:var(--text-secondary); }

.form-group { margin-bottom:1.2rem; }
.form-group label { display:block; font-size:.8rem; font-weight:500; color:var(--text-secondary); margin-bottom:.45rem; text-transform:uppercase; letter-spacing:.05em; }

.input-wrap {
  position:relative;
  display:flex;
  align-items:center;
}
.input-icon {
  position:absolute;
  left:.9rem;
  width:16px; height:16px;
  color:var(--text-muted);
  pointer-events:none;
}
.input-wrap input {
  width:100%;
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  padding:.75rem 2.75rem .75rem 2.6rem;
  color:var(--text-primary);
  font-family:inherit;
  font-size:.9rem;
  transition:border-color var(--transition), box-shadow var(--transition);
  outline:none;
}
.input-wrap input:focus {
  border-color:var(--primary);
  box-shadow:0 0 0 3px var(--primary-dim);
}
.eye-toggle {
  position:absolute;
  right:.8rem;
  background:none;
  border:none;
  cursor:pointer;
  color:var(--text-muted);
  padding:.25rem;
  display:flex;
  align-items:center;
}
.eye-toggle svg { width:16px; height:16px; }

.btn-login {
  width:100%;
  padding:.875rem;
  background:linear-gradient(135deg, var(--primary) 0%, #00A88A 100%);
  border:none;
  border-radius:var(--radius-sm);
  color:#000;
  font-family:inherit;
  font-size:.95rem;
  font-weight:700;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  transition:opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  margin-top:1.5rem;
  letter-spacing:.02em;
}
.btn-login:hover:not(:disabled) {
  opacity:.9;
  transform:translateY(-1px);
  box-shadow:0 8px 24px var(--primary-glow);
}
.btn-login:disabled { opacity:.6; cursor:not-allowed; }

.btn-spinner {
  width:18px; height:18px;
  border:2px solid rgba(0,0,0,.3);
  border-top-color:#000;
  border-radius:50%;
  animation:spin .7s linear infinite;
}
@keyframes spin { to { transform:rotate(360deg); } }

.alert {
  padding:.75rem 1rem;
  border-radius:var(--radius-sm);
  font-size:.85rem;
  margin-bottom:1.2rem;
}
.alert-error { background:var(--accent-red-dim); color:var(--accent-red); border:1px solid rgba(255,78,78,.25); }

.login-card-footer { margin-top:2rem; text-align:center; color:var(--text-muted); font-size:.78rem; }

/* ═══════════════════════════════════════════════════════════════
   APP LAYOUT
   ═══════════════════════════════════════════════════════════════ */
.app-body { display:flex; min-height:100vh; overflow:hidden; }

/* ── Sidebar ── */
.sidebar {
  width:var(--sidebar-w);
  background:linear-gradient(180deg, #0C1628 0%, #0A1A0E 60%, #0C1628 100%);
  border-right:1px solid var(--border);
  display:flex;
  flex-direction:column;
  position:fixed;
  top:0; left:0; bottom:0;
  z-index:100;
  overflow-y:auto;
  overflow-x:hidden;
  transition:transform var(--transition);
}

.sidebar-header {
  display:flex;
  align-items:center;
  gap:.75rem;
  padding:1.25rem 1rem;
  border-bottom:1px solid var(--border);
  flex-shrink:0;
}
.sidebar-logo svg { width:32px; height:32px; flex-shrink:0; }
.sidebar-brand { flex:1; min-width:0; }
.sidebar-brand-name { display:block; font-size:.95rem; font-weight:700; color:var(--text-primary); }
.sidebar-brand-sub  { display:block; font-size:.7rem; color:var(--text-muted); }
.sidebar-close { display:none; background:none; border:none; color:var(--text-muted); cursor:pointer; font-size:1rem; padding:.25rem; }

.sidebar-search {
  display:flex;
  align-items:center;
  gap:.5rem;
  margin:1rem;
  padding:.6rem .75rem;
  background:var(--bg-glass);
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
}
.sidebar-search svg { width:14px; height:14px; color:var(--text-muted); flex-shrink:0; }
.sidebar-search input {
  background:none;
  border:none;
  outline:none;
  color:var(--text-primary);
  font-family:inherit;
  font-size:.82rem;
  width:100%;
}
.sidebar-search input::placeholder { color:var(--text-muted); }

/* ── Sidebar nav ── */
.sidebar-nav { padding:0 .6rem; flex-shrink:0; }

.nav-section-label {
  font-size:.65rem;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.1em;
  color:var(--text-muted);
  padding:.5rem .5rem .35rem;
}

.nav-item {
  display:flex;
  align-items:center;
  gap:.65rem;
  padding:.65rem .75rem;
  border-radius:var(--radius-sm);
  color:var(--text-secondary);
  text-decoration:none;
  font-size:.85rem;
  font-weight:500;
  transition:background var(--transition), color var(--transition);
  margin-bottom:.1rem;
  cursor:pointer;
}
.nav-item svg { width:16px; height:16px; flex-shrink:0; }
.nav-item:hover { background:var(--bg-glass); color:var(--text-primary); }
.nav-item.active {
  background:linear-gradient(90deg, var(--primary-dim), transparent);
  color:var(--primary);
  border-left:2px solid var(--primary);
}

.nav-badge {
  margin-left:auto;
  background:var(--bg-elevated);
  color:var(--text-secondary);
  font-size:.67rem;
  padding:.15rem .45rem;
  border-radius:99px;
  font-weight:600;
}
.nav-badge-danger { background:var(--accent-red-dim); color:var(--accent-red); }

/* ── Storage bar ── */
.sidebar-storage {
  margin:1rem;
  padding:.9rem;
  background:var(--bg-glass);
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  flex-shrink:0;
}
.storage-header { display:flex; justify-content:space-between; font-size:.75rem; color:var(--text-secondary); margin-bottom:.6rem; }
.storage-bar { height:4px; background:var(--bg-elevated); border-radius:99px; overflow:hidden; margin-bottom:.5rem; }
.storage-fill {
  height:100%;
  background:linear-gradient(90deg, var(--primary), var(--accent-blue));
  border-radius:99px;
  transition:width .6s ease;
}
.storage-meta { font-size:.7rem; color:var(--text-muted); }

/* ── Customer quick list ── */
.sidebar-customer-list { flex:1; padding:.5rem .6rem; overflow-y:auto; }
.sidebar-customer-item {
  display:flex;
  align-items:center;
  gap:.6rem;
  padding:.55rem .75rem;
  border-radius:var(--radius-sm);
  cursor:pointer;
  transition:background var(--transition);
}
.sidebar-customer-item:hover { background:var(--bg-glass); }
.cust-avatar-sm {
  width:28px; height:28px;
  border-radius:7px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:.7rem;
  font-weight:700;
  color:#fff;
  flex-shrink:0;
}
.cust-info { min-width:0; }
.cust-name { font-size:.78rem; font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cust-code { font-size:.65rem; color:var(--text-muted); }

/* ── Main wrap ── */
.main-wrap {
  margin-left:var(--sidebar-w);
  flex:1;
  display:flex;
  flex-direction:column;
  min-height:100vh;
  overflow:hidden;
}

/* ── Topbar ── */
.topbar {
  height:var(--topbar-h);
  background:var(--bg-surface);
  border-bottom:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 1.5rem;
  position:sticky;
  top:0;
  z-index:50;
  flex-shrink:0;
  backdrop-filter:blur(12px);
}

.topbar-left { display:flex; align-items:center; gap:1rem; }
.hamburger {
  display:none;
  flex-direction:column;
  gap:4px;
  background:none;
  border:none;
  cursor:pointer;
  padding:.25rem;
}
.hamburger span { display:block; width:20px; height:2px; background:var(--text-secondary); border-radius:2px; transition:var(--transition); }

.breadcrumb { display:flex; align-items:center; gap:.35rem; font-size:.82rem; }
.bc-sep { color:var(--text-muted); }
.bc-item { color:var(--text-secondary); cursor:pointer; }
.bc-item:hover { color:var(--text-primary); }
.bc-item.active { color:var(--text-primary); font-weight:600; }

.topbar-right { display:flex; align-items:center; gap:.75rem; }

.topbar-btn {
  display:flex;
  align-items:center;
  gap:.5rem;
  padding:.55rem 1rem;
  background:var(--primary-dim);
  border:1px solid rgba(0,212,170,.25);
  border-radius:var(--radius-sm);
  color:var(--primary);
  font-family:inherit;
  font-size:.82rem;
  font-weight:600;
  cursor:pointer;
  transition:background var(--transition), transform var(--transition);
}
.topbar-btn svg { width:15px; height:15px; }
.topbar-btn:hover { background:rgba(0,212,170,.25); transform:translateY(-1px); }

/* ── User menu ── */
.user-menu {
  display:flex;
  align-items:center;
  gap:.6rem;
  cursor:pointer;
  padding:.4rem .65rem;
  border-radius:var(--radius-sm);
  border:1px solid var(--border);
  position:relative;
  transition:background var(--transition);
}
.user-menu:hover { background:var(--bg-card); }
.user-avatar {
  width:32px; height:32px;
  border-radius:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:.8rem;
  font-weight:700;
  color:#fff;
  flex-shrink:0;
}
.user-info { display:flex; flex-direction:column; }
.user-name { font-size:.82rem; font-weight:600; line-height:1.1; }
.user-role { font-size:.67rem; color:var(--text-muted); text-transform:capitalize; }

.user-dropdown {
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  background:var(--bg-elevated);
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  min-width:160px;
  padding:.4rem;
  display:none;
  z-index:200;
  box-shadow:var(--shadow-float);
}
.user-dropdown.open { display:block; animation:fadeInDown .15s ease; }
@keyframes fadeInDown { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:translateY(0); } }
.dropdown-item {
  display:flex;
  align-items:center;
  gap:.6rem;
  padding:.6rem .75rem;
  border-radius:6px;
  color:var(--text-secondary);
  font-size:.82rem;
  cursor:pointer;
  text-decoration:none;
  transition:background var(--transition), color var(--transition);
}
.dropdown-item svg { width:14px; height:14px; }
.dropdown-item:hover { background:var(--accent-red-dim); color:var(--accent-red); }

/* ── Content area ── */
.content {
  flex:1;
  padding:1.75rem;
  overflow-y:auto;
}

/* ── View loader ── */
.view-loader { display:flex; align-items:center; justify-content:center; min-height:300px; }
.spinner-ring {
  width:40px; height:40px;
  border:3px solid var(--border);
  border-top-color:var(--primary);
  border-radius:50%;
  animation:spin .8s linear infinite;
}

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD VIEW
   ═══════════════════════════════════════════════════════════════ */
.view-header {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  margin-bottom:1.75rem;
  gap:1rem;
}
.view-title h1 { font-size:1.6rem; font-weight:700; margin-bottom:.2rem; }
.view-title p  { color:var(--text-secondary); font-size:.87rem; }

/* ── Stat cards ── */
.stats-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(200px, 1fr));
  gap:1rem;
  margin-bottom:2rem;
}
.stat-card {
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:1.25rem;
  display:flex;
  align-items:flex-start;
  gap:1rem;
  transition:border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor:default;
}
.stat-card:hover { border-color:var(--border-hover); transform:translateY(-2px); box-shadow:var(--shadow-card); }
.stat-icon {
  width:44px; height:44px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}
.stat-icon svg { width:20px; height:20px; }
.stat-icon.green  { background:rgba(16,185,129,.15); color:#10B981; }
.stat-icon.blue   { background:rgba(79,142,247,.15); color:var(--accent-blue); }
.stat-icon.purple { background:rgba(155,109,255,.15); color:var(--accent-purple); }
.stat-icon.gold   { background:rgba(255,179,0,.15);  color:var(--accent-gold); }
.stat-card-body { flex:1; min-width:0; }
.stat-value { font-size:1.75rem; font-weight:800; line-height:1; margin-bottom:.25rem; }
.stat-label { font-size:.77rem; color:var(--text-secondary); }

/* ── Section headers ── */
.section-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:1rem;
}
.section-title { font-size:1rem; font-weight:600; }
.section-link  { font-size:.78rem; color:var(--primary); cursor:pointer; text-decoration:none; }
.section-link:hover { text-decoration:underline; }

/* ── Activity feed ── */
.activity-feed { display:flex; flex-direction:column; }
.activity-item {
  display:flex;
  align-items:flex-start;
  gap:.85rem;
  padding:.85rem 0;
  border-bottom:1px solid var(--border);
}
.activity-item:last-child { border-bottom:none; }
.activity-avatar {
  width:32px; height:32px;
  border-radius:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:.72rem;
  font-weight:700;
  color:#fff;
  flex-shrink:0;
}
.activity-body { flex:1; min-width:0; }
.activity-text { font-size:.83rem; color:var(--text-primary); line-height:1.4; }
.activity-text strong { color:var(--primary); }
.activity-meta { font-size:.72rem; color:var(--text-muted); margin-top:.2rem; }
.activity-badge {
  font-size:.67rem;
  padding:.2rem .5rem;
  border-radius:99px;
  font-weight:600;
  white-space:nowrap;
}
.badge-upload   { background:rgba(16,185,129,.15); color:#10B981; }
.badge-download { background:rgba(79,142,247,.15); color:var(--accent-blue); }
.badge-delete   { background:var(--accent-red-dim); color:var(--accent-red); }
.badge-create   { background:rgba(155,109,255,.15); color:var(--accent-purple); }
.badge-login    { background:rgba(255,179,0,.15); color:var(--accent-gold); }
.badge-rename   { background:rgba(0,212,170,.1); color:var(--primary); }
.badge-view     { background:var(--bg-elevated); color:var(--text-muted); }

/* ═══════════════════════════════════════════════════════════════
   CUSTOMERS VIEW
   ═══════════════════════════════════════════════════════════════ */
.customers-toolbar {
  display:flex;
  align-items:center;
  gap:.75rem;
  margin-bottom:1.25rem;
  flex-wrap:wrap;
}
.search-input-wrap {
  position:relative;
  flex:1;
  min-width:200px;
  max-width:360px;
}
.search-input-wrap svg {
  position:absolute;
  left:.75rem;
  top:50%;
  transform:translateY(-50%);
  width:15px; height:15px;
  color:var(--text-muted);
  pointer-events:none;
}
.search-input-wrap input {
  width:100%;
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  padding:.6rem .75rem .6rem 2.25rem;
  color:var(--text-primary);
  font-family:inherit;
  font-size:.85rem;
  outline:none;
  transition:border-color var(--transition);
}
.search-input-wrap input:focus { border-color:var(--primary); }

.customers-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(280px, 1fr));
  gap:1rem;
}

.customer-card {
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:1.25rem;
  cursor:pointer;
  transition:border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position:relative;
  overflow:hidden;
}
.customer-card::before {
  content:'';
  position:absolute;
  top:0; left:0; right:0;
  height:3px;
}
.customer-card:hover {
  border-color:var(--border-hover);
  transform:translateY(-3px);
  box-shadow:var(--shadow-card);
}
.customer-card-top { display:flex; align-items:flex-start; gap:.9rem; margin-bottom:1rem; }
.cust-avatar {
  width:44px; height:44px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1rem;
  font-weight:700;
  color:#fff;
  flex-shrink:0;
}
.cust-card-info { flex:1; min-width:0; }
.cust-company { font-size:.95rem; font-weight:600; margin-bottom:.15rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cust-code    { font-size:.72rem; padding:.15rem .5rem; background:var(--bg-elevated); border-radius:99px; color:var(--text-muted); display:inline-block; }
.cust-status  { font-size:.7rem; padding:.15rem .5rem; border-radius:99px; font-weight:500; }
.status-active   { background:rgba(16,185,129,.15); color:#10B981; }
.status-inactive { background:var(--bg-elevated); color:var(--text-muted); }
.status-suspended{ background:var(--accent-red-dim); color:var(--accent-red); }
.customer-card-meta { display:flex; gap:1.25rem; }
.cust-meta-item { display:flex; flex-direction:column; }
.cust-meta-val { font-size:.95rem; font-weight:700; }
.cust-meta-lbl { font-size:.67rem; color:var(--text-muted); text-transform:uppercase; letter-spacing:.04em; }

/* ═══════════════════════════════════════════════════════════════
   FOLDER VIEW
   ═══════════════════════════════════════════════════════════════ */
.folder-view-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:1.5rem;
  gap:1rem;
  flex-wrap:wrap;
}
.folder-actions { display:flex; gap:.6rem; align-items:center; }

.folders-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(200px, 1fr));
  gap:.85rem;
  margin-bottom:2rem;
}
.folder-card {
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:1.1rem;
  cursor:pointer;
  transition:border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  display:flex;
  flex-direction:column;
  gap:.65rem;
  position:relative;
}
.folder-card:hover { border-color:var(--border-hover); transform:translateY(-2px); box-shadow:var(--shadow-card); }
.folder-icon {
  width:40px; height:40px;
  border-radius:9px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.folder-icon svg { width:20px; height:20px; }
.folder-card-name { font-size:.87rem; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.folder-card-meta { font-size:.73rem; color:var(--text-muted); }

/* ── Files table ── */
.files-section-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:.85rem;
}
.section-subtitle { font-size:.77rem; color:var(--text-secondary); margin-top:.15rem; }

.files-table-wrap {
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
}
.files-table {
  width:100%;
  border-collapse:collapse;
}
.files-table th {
  text-align:left;
  padding:.75rem 1rem;
  font-size:.72rem;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:var(--text-muted);
  background:var(--bg-elevated);
  border-bottom:1px solid var(--border);
}
.files-table td {
  padding:.85rem 1rem;
  border-bottom:1px solid var(--border);
  font-size:.83rem;
  vertical-align:middle;
}
.files-table tr:last-child td { border-bottom:none; }
.files-table tbody tr { transition:background var(--transition); }
.files-table tbody tr:hover { background:var(--bg-card-hover); }

.file-name-cell { display:flex; align-items:center; gap:.75rem; }
.file-type-icon {
  width:32px; height:32px;
  border-radius:7px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:.7rem;
  font-weight:700;
  flex-shrink:0;
}
.icon-pdf    { background:rgba(255,78,78,.15); color:#FF4E4E; }
.icon-doc    { background:rgba(79,142,247,.15); color:var(--accent-blue); }
.icon-xls    { background:rgba(16,185,129,.15); color:#10B981; }
.icon-img    { background:rgba(155,109,255,.15); color:var(--accent-purple); }
.icon-zip    { background:rgba(255,179,0,.15); color:var(--accent-gold); }
.icon-txt    { background:var(--bg-elevated); color:var(--text-secondary); }
.icon-other  { background:var(--bg-elevated); color:var(--text-muted); }

.file-name-text { font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:260px; }
.file-size  { color:var(--text-secondary); white-space:nowrap; }
.file-date  { color:var(--text-secondary); white-space:nowrap; font-size:.78rem; }
.file-uploader { display:flex; align-items:center; gap:.45rem; }
.uploader-dot { width:22px; height:22px; border-radius:5px; display:flex; align-items:center; justify-content:center; font-size:.6rem; font-weight:700; color:#fff; }
.uploader-name { font-size:.78rem; color:var(--text-secondary); }

.file-actions { display:flex; gap:.35rem; align-items:center; }
.file-action-btn {
  width:28px; height:28px;
  border-radius:6px;
  background:none;
  border:1px solid var(--border);
  color:var(--text-secondary);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:background var(--transition), color var(--transition), border-color var(--transition);
}
.file-action-btn svg { width:13px; height:13px; }
.file-action-btn:hover         { background:var(--bg-elevated); color:var(--text-primary); border-color:var(--border-hover); }
.file-action-btn.btn-danger:hover { background:var(--accent-red-dim); color:var(--accent-red); border-color:rgba(255,78,78,.3); }
.file-action-btn.btn-dl:hover   { background:var(--primary-dim); color:var(--primary); border-color:rgba(0,212,170,.3); }

/* ── Empty state ── */
.empty-state {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:4rem 2rem;
  text-align:center;
  gap:1rem;
}
.empty-icon { font-size:3rem; opacity:.4; }
.empty-state h3 { font-size:1rem; font-weight:600; color:var(--text-secondary); }
.empty-state p  { font-size:.83rem; color:var(--text-muted); max-width:280px; }

/* ═══════════════════════════════════════════════════════════════
   AUDIT LOG VIEW
   ═══════════════════════════════════════════════════════════════ */
.log-table-wrap {
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
}
.log-table { width:100%; border-collapse:collapse; }
.log-table th {
  text-align:left;
  padding:.7rem 1rem;
  font-size:.7rem;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:var(--text-muted);
  background:var(--bg-elevated);
  border-bottom:1px solid var(--border);
}
.log-table td { padding:.75rem 1rem; border-bottom:1px solid var(--border); font-size:.8rem; }
.log-table tr:last-child td { border-bottom:none; }
.log-table tbody tr:hover { background:var(--bg-card-hover); }

/* ═══════════════════════════════════════════════════════════════
   ADMIN AUTH PANEL
   ═══════════════════════════════════════════════════════════════ */
.auth-request-card {
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:1.25rem;
  margin-bottom:.85rem;
  display:flex;
  align-items:flex-start;
  gap:1rem;
}
.auth-req-icon {
  width:40px; height:40px;
  border-radius:9px;
  background:rgba(255,179,0,.12);
  color:var(--accent-gold);
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  font-size:1.1rem;
}
.auth-req-body { flex:1; }
.auth-req-title { font-size:.9rem; font-weight:600; margin-bottom:.25rem; }
.auth-req-meta  { font-size:.77rem; color:var(--text-secondary); margin-bottom:.5rem; }
.auth-req-reason { font-size:.8rem; color:var(--text-muted); font-style:italic; margin-bottom:.75rem; padding:.6rem .75rem; background:var(--bg-elevated); border-radius:6px; border-left:2px solid var(--accent-gold); }
.auth-req-actions { display:flex; gap:.5rem; }

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */
.btn {
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  padding:.6rem 1.1rem;
  border-radius:var(--radius-sm);
  font-family:inherit;
  font-size:.83rem;
  font-weight:600;
  cursor:pointer;
  transition:background var(--transition), transform var(--transition), box-shadow var(--transition);
  border:1px solid transparent;
  white-space:nowrap;
}
.btn svg { width:14px; height:14px; }
.btn:active { transform:translateY(1px); }

.btn-primary {
  background:var(--primary);
  color:#000;
  border-color:var(--primary);
}
.btn-primary:hover { background:#00BF9A; box-shadow:0 4px 16px var(--primary-glow); }

.btn-ghost {
  background:transparent;
  color:var(--text-secondary);
  border-color:var(--border);
}
.btn-ghost:hover { background:var(--bg-elevated); color:var(--text-primary); }

.btn-outline {
  background:transparent;
  color:var(--primary);
  border-color:rgba(0,212,170,.35);
}
.btn-outline:hover { background:var(--primary-dim); }

.btn-danger {
  background:var(--accent-red-dim);
  color:var(--accent-red);
  border-color:rgba(255,78,78,.3);
}
.btn-danger:hover { background:var(--accent-red); color:#fff; }

.btn-sm { padding:.4rem .75rem; font-size:.77rem; }

.btn-icon {
  width:34px; height:34px;
  padding:0;
  justify-content:center;
  flex-shrink:0;
}

/* ═══════════════════════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════════════════════ */
.form-group { margin-bottom:1rem; }
.form-group label { display:block; font-size:.77rem; font-weight:500; color:var(--text-secondary); margin-bottom:.4rem; text-transform:uppercase; letter-spacing:.04em; }
.form-group input,
.form-group textarea,
.form-group select {
  width:100%;
  background:var(--bg-elevated);
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  padding:.65rem .85rem;
  color:var(--text-primary);
  font-family:inherit;
  font-size:.87rem;
  outline:none;
  transition:border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color:var(--primary);
  box-shadow:0 0 0 3px var(--primary-dim);
}
.form-group textarea { resize:vertical; }

.form-row { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }

/* ── Color swatches ── */
.color-swatches { display:flex; gap:.5rem; flex-wrap:wrap; }
.swatch {
  width:28px; height:28px;
  border-radius:6px;
  background:var(--c);
  cursor:pointer;
  border:2px solid transparent;
  transition:transform var(--transition), border-color var(--transition);
}
.swatch:hover { transform:scale(1.1); }
.swatch.active { border-color:#fff; transform:scale(1.15); }

/* ═══════════════════════════════════════════════════════════════
   MODALS
   ═══════════════════════════════════════════════════════════════ */
.modal-overlay {
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.7);
  backdrop-filter:blur(6px);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:500;
  padding:1rem;
}
.modal-overlay.open { display:flex; animation:fadeIn .2s ease; }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

.modal {
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  width:100%;
  max-width:560px;
  max-height:90vh;
  overflow-y:auto;
  animation:slideUp .25s cubic-bezier(.4,0,.2,1);
  box-shadow:var(--shadow-float);
}
.modal-sm { max-width:400px; }
@keyframes slideUp { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }

.modal-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:1.25rem 1.5rem;
  border-bottom:1px solid var(--border);
  flex-shrink:0;
}
.modal-header h3 { font-size:1rem; font-weight:700; }
.modal-close {
  background:none;
  border:none;
  color:var(--text-muted);
  cursor:pointer;
  font-size:1rem;
  padding:.25rem .4rem;
  border-radius:5px;
  transition:background var(--transition);
}
.modal-close:hover { background:var(--bg-elevated); color:var(--text-primary); }
.modal-body { padding:1.5rem; }
.modal-footer {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:.6rem;
  padding:1rem 1.5rem;
  border-top:1px solid var(--border);
}

.modal-title-group { display:flex; flex-direction:column; gap:.25rem; }
.modal-danger-badge {
  font-size:.68rem;
  padding:.2rem .5rem;
  background:rgba(255,179,0,.15);
  color:var(--accent-gold);
  border-radius:99px;
  font-weight:600;
  width:fit-content;
}
.auth-modal-desc { font-size:.87rem; color:var(--text-secondary); margin-bottom:1rem; line-height:1.6; }

/* ── Upload zone ── */
.upload-drop-zone {
  border:2px dashed var(--border);
  border-radius:var(--radius);
  padding:2.5rem 2rem;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:.6rem;
  cursor:pointer;
  transition:border-color var(--transition), background var(--transition);
  color:var(--text-secondary);
}
.upload-drop-zone.drag-over {
  border-color:var(--primary);
  background:var(--primary-dim);
  color:var(--primary);
}
.drop-zone-icon svg { width:52px; height:52px; opacity:.5; }
.upload-drop-zone p { font-weight:500; font-size:.9rem; margin:0; }
.upload-drop-zone span { font-size:.8rem; color:var(--text-muted); }
.upload-drop-zone small { font-size:.73rem; color:var(--text-muted); }

.upload-queue { margin-top:1rem; display:flex; flex-direction:column; gap:.5rem; }
.upload-queue-item {
  display:flex;
  align-items:center;
  gap:.75rem;
  padding:.65rem .85rem;
  background:var(--bg-elevated);
  border-radius:var(--radius-sm);
}
.queue-file-name { flex:1; font-size:.82rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.queue-file-size { font-size:.75rem; color:var(--text-muted); flex-shrink:0; }
.queue-remove { background:none; border:none; color:var(--text-muted); cursor:pointer; font-size:.9rem; padding:.15rem; }
.queue-remove:hover { color:var(--accent-red); }

/* ── Progress bar ── */
.progress-wrap { height:3px; background:var(--border); border-radius:99px; overflow:hidden; margin-top:.35rem; }
.progress-bar  { height:100%; background:var(--primary); border-radius:99px; transition:width .3s ease; }

/* ═══════════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════════════════════════════════════ */
.toast-container {
  position:fixed;
  bottom:1.5rem;
  right:1.5rem;
  display:flex;
  flex-direction:column;
  gap:.6rem;
  z-index:1000;
  pointer-events:none;
}
.toast {
  display:flex;
  align-items:center;
  gap:.75rem;
  padding:.85rem 1.1rem;
  background:var(--bg-elevated);
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  box-shadow:var(--shadow-float);
  animation:toastIn .3s cubic-bezier(.4,0,.2,1);
  pointer-events:all;
  max-width:320px;
  font-size:.83rem;
}
@keyframes toastIn { from { opacity:0; transform:translateX(24px); } to { opacity:1; transform:translateX(0); } }
.toast.toast-out { animation:toastOut .25s ease forwards; }
@keyframes toastOut { to { opacity:0; transform:translateX(24px); } }
.toast-dot { width:8px; height:8px; border-radius:50%; flex-shrink:0; }
.toast-success .toast-dot { background:var(--primary); }
.toast-error   .toast-dot { background:var(--accent-red); }
.toast-warning .toast-dot { background:var(--accent-gold); }
.toast-info    .toast-dot { background:var(--accent-blue); }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .sidebar { transform:translateX(-100%); }
  .sidebar.open { transform:translateX(0); }
  .sidebar-close { display:block; }
  .main-wrap { margin-left:0; }
  .hamburger { display:flex; }
  .login-left { display:none; }
  .login-right { width:100%; }
  .form-row { grid-template-columns:1fr; }
  .stats-grid { grid-template-columns:1fr 1fr; }
  .topbar-btn span { display:none; }
  .user-info { display:none; }
}

@media (max-width: 480px) {
  .content { padding:1rem; }
  .stats-grid { grid-template-columns:1fr; }
  .customers-grid { grid-template-columns:1fr; }
}
.view-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    width: 100%;
}

.spinner-ring {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 212, 170, 0.3);
    border-radius: 50%;
    border-top-color: #00D4AA;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
/* User Management Styles */
.user-mgmt-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
}

.user-tab {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    border-radius: var(--radius) var(--radius) 0 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.user-tab:hover {
    color: var(--text-primary);
    background: var(--bg-glass);
}

.user-tab.active {
    color: var(--primary);
    background: var(--primary-dim);
}

.user-tab.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.tab-content {
    display: none;
    padding: 1rem 0;
}

.tab-content.active {
    display: block;
}

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

/* Users List */
.users-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.user-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.user-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-card);
}

.user-card-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar-lg {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
    color: white;
}

.user-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.user-info .user-email {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.user-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
}

.user-role-badge {
    padding: 0.2rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.role-superadmin { background: #EF4444; color: white; }
.role-admin { background: #F59E0B; color: white; }
.role-staff { background: #3B82F6; color: white; }
.role-viewer { background: #6B7280; color: white; }

.user-status {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.active { background: #10B981; }
.status-dot.inactive { background: #EF4444; }

.user-card-actions {
    display: flex;
    gap: 0.5rem;
}

.user-action-btn {
    padding: 0.5rem;
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.user-action-btn:hover {
    background: var(--bg-glass);
    color: var(--primary);
}

.user-action-btn.danger:hover {
    background: var(--accent-red-dim);
    color: var(--accent-red);
}

/* Pending Requests */
.pending-requests-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.pending-request-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border-left: 3px solid transparent;
}

.pending-request-card.upload { border-left-color: #3B82F6; }
.pending-request-card.delete { border-left-color: #EF4444; }
.pending-request-card.share { border-left-color: #10B981; }
.pending-request-card.export { border-left-color: #F59E0B; }

.request-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.request-content {
    flex: 1;
}

.request-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.request-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.request-actions {
    display: flex;
    gap: 0.5rem;
}

/* Roles Grid */
.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.role-card {
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.role-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.role-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.role-permissions {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.role-permissions li {
    font-size: 0.8rem;
    padding: 0.25rem 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.role-permissions li::before {
    content: '✓';
    color: #10B981;
    font-weight: 600;
}

/* Audit Log Table */
.audit-log-table-wrap {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.audit-log-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.audit-log-table th {
    position: sticky;
    top: 0;
    background: var(--bg-elevated);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border);
}

.audit-log-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.audit-log-table tr:hover td {
    background: var(--bg-card-hover);
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 0.5rem;
    height: 4px;
    background: var(--bg-elevated);
    border-radius: 2px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0;
    transition: width 0.3s, background 0.3s;
}

.strength-weak { background: #EF4444; width: 25%; }
.strength-fair { background: #F59E0B; width: 50%; }
.strength-good { background: #3B82F6; width: 75%; }
.strength-strong { background: #10B981; width: 100%; }

/* Permissions Modal */
.permissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.permission-card {
    padding: 1rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.permission-card h4 {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.permission-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.permission-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Avatar Color Picker */
.avatar-color-picker {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar-color-picker input[type="color"] {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
}

.color-preview {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--border);
}

/* Modal Sizes */
.modal-lg {
    max-width: 800px;
    width: 90%;
}

/* Loading States */
.loading-spinner {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.loading-cell {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.empty-cell {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.error-cell {
    text-align: center;
    padding: 2rem;
    color: var(--accent-red);
}

/* Password Input */
.password-input-wrap {
    display: flex;
    align-items: center;
    position: relative;
}

.password-input-wrap input {
    flex: 1;
    padding-right: 40px;
}

.password-toggle {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.2rem;
}

.password-toggle:hover {
    color: var(--primary);
}

.password-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Audit Filters */
.audit-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.audit-filter-select,
.audit-date-input {
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-primary);
}

.pending-filter-select {
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    min-width: 200px;
    background: var(--bg-card);
    color: var(--text-primary);
}

/* Customer Select */
.customer-select {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.select-customer-prompt {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
}

/* Reset Password Info */
.reset-password-info {
    background: var(--bg-elevated);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    border-left: 3px solid var(--primary);
}

/* Checkbox Label */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Permissions Tabs */
.permissions-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.perm-tab {
    padding: 0.6rem 1.2rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.perm-tab:hover {
    color: var(--text-primary);
    background: var(--bg-glass);
}

.perm-tab.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.perm-tab-content {
    display: none;
}

.perm-tab-content.active {
    display: block;
}