/**
 * =============================================================================
 * NERDS TECHNOLOGY - PREMIUM UI STYLES v4.0
 * =============================================================================
 * 
 * Modern, premium user interface styles with glass morphism,
 * smooth animations, and beautiful components.
 * 
 * Requires: design-system.css (loaded first)
 * 
 * @version 4.0.0
 * @author Nerds Technology
 * =============================================================================
 */

/* =============================================================================
   SECTION 1: CSS RESET & BASE
   ============================================================================= */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Remove default focus outline, we use custom */
:focus {
  outline: none;
}

/* Better focus for accessibility */
:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}

/* =============================================================================
   SECTION 2: TYPOGRAPHY
   ============================================================================= */

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--content-primary);
  margin-bottom: 0.75em;
}

h1 { font-size: 2.5rem; letter-spacing: -0.02em; }
h2 { font-size: 2rem; letter-spacing: -0.015em; }
h3 { font-size: 1.5rem; letter-spacing: -0.01em; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  color: var(--content-secondary);
  margin-bottom: 1rem;
}

a {
  color: var(--brand-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brand-primary);
}

/* =============================================================================
   SECTION 3: NAVIGATION - GLASS MORPHISM STYLE
   ============================================================================= */

/* Top Navbar - Premium Glass Effect */
.top-navbar {
  background: var(--navbar-bg-blur);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--navbar-border);
  border-radius: 0;
  margin: 0;
  width: 100%;
  padding: 0.625rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1000;
  box-shadow: var(--navbar-shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.top-navbar:hover {
  box-shadow: var(--elevation-3);
}

/* Navbar Brand */
.top-navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.top-navbar .navbar-brand img {
  height: 32px;
  width: auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.top-navbar .navbar-brand:hover img {
  transform: scale(1.05);
}

.top-navbar .brand-text {
  font-weight: 700;
  font-size: 1.125rem;
  display: flex;
  gap: 0.25rem;
  letter-spacing: -0.01em;
}

.top-navbar .brand-text .nerds {
  color: var(--brand-primary);
}

.top-navbar .brand-text .tech {
  color: var(--brand-accent);
}

/* Navbar Title */
.top-navbar .navbar-title {
  color: var(--navbar-text);
  font-size: 0.9375rem;
  font-weight: 500;
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: 1px solid var(--border-subtle);
  opacity: 0.8;
}

/* Navbar Actions */
.top-navbar .navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Icon Buttons */
.top-navbar .btn-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--border-subtle);
  background: var(--surface-interactive);
  color: var(--navbar-text);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.top-navbar .btn-icon:hover {
  background: var(--surface-interactive-hover);
  border-color: var(--border-default);
  transform: translateY(-2px);
  box-shadow: var(--elevation-1);
}

.top-navbar .btn-icon:active {
  transform: translateY(0);
}

/* User Menu */
.navbar-user {
  position: relative;
}

.navbar-user-btn {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.375rem 0.875rem 0.375rem 0.375rem;
  background: var(--surface-interactive);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  color: var(--navbar-text);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-user-btn:hover {
  background: var(--surface-interactive-hover);
  border-color: var(--border-default);
}

.navbar-user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
}

.navbar-user-name {
  font-size: 0.875rem;
  font-weight: 500;
}

/* User Dropdown */
.navbar-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--surface-elevated);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  padding: 0.5rem;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.96);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--elevation-4);
  z-index: 1001;
}

.navbar-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.navbar-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--content-primary);
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.15s ease;
  font-size: 0.9375rem;
}

.navbar-dropdown-item:hover {
  background: var(--surface-interactive-hover);
  color: var(--content-primary);
  text-decoration: none;
}

.navbar-dropdown-item i {
  width: 18px;
  color: var(--content-tertiary);
  font-size: 0.9375rem;
}

.navbar-dropdown-item:hover i {
  color: var(--brand-accent);
}

.navbar-dropdown-divider {
  height: 1px;
  background: var(--border-default);
  margin: 0.5rem 0;
}

/* Bottom Navbar - Premium Style */
.bottom-navbar {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navbar-bg-blur);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--navbar-border);
  border-radius: 24px;
  padding: 0.5rem 0.75rem;
  z-index: 1000;
  box-shadow: var(--navbar-shadow);
  max-width: calc(100% - 24px);
  width: auto;
}

.bottom-navbar ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.bottom-navbar .nav-item {
  flex: 0 0 auto;
}

.bottom-navbar .nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 1rem;
  color: var(--navbar-text-muted);
  text-decoration: none;
  border-radius: 14px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 0.25rem;
}

.bottom-navbar .nav-link:hover {
  color: var(--navbar-text);
  background: var(--navbar-item-hover);
}

.bottom-navbar .nav-link.active {
  color: white !important;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent)) !important;
  box-shadow: 0 4px 12px hsla(35, 98%, 55%, 0.3);
}

.bottom-navbar .nav-link .icon {
  font-size: 1.125rem;
}

.bottom-navbar .nav-link .text {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* =============================================================================
   SECTION 4: CARDS - PREMIUM GLASS DESIGN
   ============================================================================= */

/* Base Card */
.card,
.app-card,
.user-card,
.cashier-card {
  background: var(--surface-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  box-shadow: var(--elevation-2);
  color: var(--content-primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.card:hover,
.app-card:hover,
.user-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--elevation-3);
  border-color: var(--border-default);
}

/* Card Header */
.card-header {
  background: transparent;
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  color: var(--content-primary);
}

/* Card Body */
.card-body {
  padding: 1.5rem;
  color: var(--content-primary);
}

/* Card Footer */
.card-footer {
  background: var(--surface-interactive);
  border-top: 1px solid var(--border-subtle);
  padding: 1rem 1.5rem;
}

/* App Card - Portal Grid Items */
.app-card-modern {
  background: linear-gradient(135deg, 
    var(--surface-primary) 0%, 
    var(--surface-secondary) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.app-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    hsla(35, 98%, 55%, 0.08) 0%, 
    hsla(197, 99%, 46%, 0.08) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.app-card-modern:hover::before {
  opacity: 1;
}

.app-card-modern:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--elevation-4);
  border-color: var(--brand-primary);
}

.app-card-modern .brand-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  background: var(--surface-interactive);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--content-primary);
}

.app-card-modern .app-card-icon {
  font-size: 3rem;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* User Card for Users Page */
.user-card-modern {
  background: var(--surface-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: var(--elevation-3);
}

.user-card-modern .user-avatar {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.user-card-modern .user-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--content-primary);
  margin-bottom: 0.25rem;
}

.user-card-modern .user-role {
  font-size: 0.875rem;
  color: var(--content-tertiary);
}

/* =============================================================================
   SECTION 5: BUTTONS - MODERN DESIGN
   ============================================================================= */

/* Primary Button - Semantic Blue (Action) */
.btn-primary {
  background: hsl(217, 91%, 60%);
  border: none;
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 8px hsla(217, 91%, 50%, 0.25);
}

.btn-primary:hover {
  background: hsl(217, 91%, 55%);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px hsla(217, 91%, 50%, 0.35);
  color: white;
}

.btn-primary:active {
  transform: translateY(0);
  background: hsl(217, 91%, 50%);
}

/* Inventory Button - Brand Gradient */
.btn-inv {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
  border: none;
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px hsla(35, 98%, 55%, 0.25);
}

.btn-inv:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px hsla(35, 98%, 55%, 0.35);
  filter: brightness(1.05);
  color: white;
}

.btn-inv:active {
  transform: translateY(0);
}

/* Primary Neo Button - Premium Blue Style */
.btn-primary-neo {
  background: hsl(217, 91%, 60%);
  border: none;
  color: white !important;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px hsla(217, 91%, 50%, 0.3);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary-neo:hover {
  background: hsl(217, 91%, 55%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px hsla(217, 91%, 50%, 0.4);
  color: white !important;
  text-decoration: none;
}

.btn-primary-neo:active {
  transform: translateY(-1px) scale(1);
  box-shadow: 0 4px 12px hsla(217, 91%, 50%, 0.3);
  background: hsl(217, 91%, 50%);
}

.btn-primary-neo i {
  font-size: 0.875rem;
}

/* Secondary Button */
.btn-secondary {
  background: hsl(220, 14%, 46%);
  border: none;
  color: white;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px hsla(220, 14%, 46%, 0.2);
}

.btn-secondary:hover {
  background: hsl(220, 14%, 40%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px hsla(220, 14%, 46%, 0.3);
  color: white;
}

/* Danger Button - Red (Delete/Destructive) */
.btn-danger {
  background: hsl(0, 72%, 51%);
  border: none;
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px hsla(0, 72%, 51%, 0.25);
}

.btn-danger:hover {
  background: hsl(0, 72%, 45%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px hsla(0, 72%, 51%, 0.35);
  color: white;
}

/* Success Button - Green (Confirm/Save) */
.btn-success {
  background: hsl(145, 63%, 42%);
  border: none;
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px hsla(145, 63%, 42%, 0.25);
}

.btn-success:hover {
  background: hsl(145, 63%, 36%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px hsla(145, 63%, 42%, 0.35);
  color: white;
}

/* Warning Button - Amber (Caution) */
.btn-warning {
  background: hsl(40, 96%, 48%);
  border: none;
  color: hsl(40, 96%, 15%);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px hsla(40, 96%, 48%, 0.25);
}

.btn-warning:hover {
  background: hsl(40, 96%, 42%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px hsla(40, 96%, 48%, 0.35);
  color: hsl(40, 96%, 10%);
}

/* Info Button - Cyan (Information) */
.btn-info {
  background: hsl(188, 78%, 41%);
  border: none;
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px hsla(188, 78%, 41%, 0.25);
}

.btn-info:hover {
  background: hsl(188, 78%, 35%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px hsla(188, 78%, 41%, 0.35);
  color: white;
}

/* Outline Buttons */
.btn-outline-primary {
  background: transparent;
  border: 2px solid hsl(217, 91%, 60%);
  color: hsl(217, 91%, 60%);
  font-weight: 600;
  padding: 0.625rem 1.375rem;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.btn-outline-primary:hover {
  background: hsl(217, 91%, 60%);
  color: white;
}

.btn-outline-danger {
  background: transparent;
  border: 2px solid hsl(0, 72%, 51%);
  color: hsl(0, 72%, 51%);
  font-weight: 600;
  padding: 0.625rem 1.375rem;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.btn-outline-danger:hover {
  background: hsl(0, 72%, 51%);
  color: white;
}

.btn-outline-success {
  background: transparent;
  border: 2px solid hsl(145, 63%, 42%);
  color: hsl(145, 63%, 42%);
  font-weight: 600;
  padding: 0.625rem 1.375rem;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.btn-outline-success:hover {
  background: hsl(145, 63%, 42%);
  color: white;
}

/* Icon Button */
.btn-icon-only {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border-default);
  background: var(--surface-interactive);
  color: var(--content-secondary);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon-only:hover {
  background: var(--surface-interactive-hover);
  color: var(--brand-accent);
  border-color: var(--brand-accent);
}

/* =============================================================================
   SECTION 6: FORMS - CLEAN DESIGN
   ============================================================================= */

/* Form Group */
.form-group {
  margin-bottom: 1.25rem;
}

/* Form Label */
.form-label,
label:not(.btn) {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--content-secondary);
  margin-bottom: 0.5rem;
}

/* Form Control */
.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="search"],
textarea,
select {
  width: 100%;
  background: var(--surface-tertiary);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  color: var(--content-primary);
  font-size: 0.9375rem;
  transition: all 0.2s ease;
}

.form-control::placeholder,
input::placeholder,
textarea::placeholder {
  color: var(--content-tertiary);
}

.form-control:hover,
input:hover,
textarea:hover,
select:hover {
  border-color: var(--border-strong);
}

.form-control:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px hsla(197, 99%, 46%, 0.15);
  outline: none;
}

/* Search Input */
.search-input {
  position: relative;
}

.search-input input {
  padding-left: 3rem;
}

.search-input i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--content-tertiary);
}

/* =============================================================================
   SECTION 7: TABLES - CLEAN DESIGN
   ============================================================================= */

.table {
  width: 100%;
  background: var(--surface-primary);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--elevation-1);
}

.table thead th {
  background: var(--surface-interactive);
  color: var(--content-primary);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-default);
  text-align: left;
}

.table tbody td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--content-primary);
  vertical-align: middle;
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.table tbody tr {
  transition: background 0.15s ease;
}

.table tbody tr:hover {
  background: var(--surface-interactive-hover);
}

/* =============================================================================
   SECTION 8: BADGES & STATUS
   ============================================================================= */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 8px;
  gap: 0.375rem;
}

.badge-success {
  background: var(--status-success-bg);
  color: var(--status-success);
  border: 1px solid var(--status-success-border);
}

.badge-warning {
  background: var(--status-warning-bg);
  color: var(--status-warning);
  border: 1px solid var(--status-warning-border);
}

.badge-danger {
  background: var(--status-danger-bg);
  color: var(--status-danger);
  border: 1px solid var(--status-danger-border);
}

.badge-info {
  background: var(--status-info-bg);
  color: var(--status-info);
  border: 1px solid var(--status-info-border);
}

/* Badge Status - Premium Pill Style */
.badge-status {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
  gap: 0.375rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: all 0.2s ease;
}

.badge-status.active {
  background: linear-gradient(135deg, hsla(145, 63%, 42%, 0.15) 0%, hsla(160, 84%, 39%, 0.1) 100%);
  color: hsl(145, 63%, 32%);
  border: 1px solid hsla(145, 63%, 42%, 0.3);
  box-shadow: 0 2px 8px hsla(145, 63%, 42%, 0.15);
}

.badge-status.inactive {
  background: linear-gradient(135deg, hsla(0, 72%, 51%, 0.12) 0%, hsla(0, 60%, 45%, 0.08) 100%);
  color: hsl(0, 60%, 40%);
  border: 1px solid hsla(0, 72%, 51%, 0.25);
  box-shadow: 0 2px 8px hsla(0, 72%, 51%, 0.1);
}

/* Dark theme badge status */
[data-theme="dark"] .badge-status.active {
  background: linear-gradient(135deg, hsla(160, 84%, 39%, 0.2) 0%, hsla(145, 63%, 42%, 0.15) 100%);
  color: hsl(160, 84%, 55%);
  border: 1px solid hsla(160, 84%, 39%, 0.35);
  box-shadow: 0 2px 8px hsla(160, 84%, 39%, 0.2);
}

[data-theme="dark"] .badge-status.inactive {
  background: linear-gradient(135deg, hsla(0, 72%, 65%, 0.15) 0%, hsla(0, 60%, 55%, 0.1) 100%);
  color: hsl(0, 72%, 70%);
  border: 1px solid hsla(0, 72%, 65%, 0.3);
  box-shadow: 0 2px 8px hsla(0, 72%, 65%, 0.15);
}

/* =============================================================================
   SECTION 9: MODALS - GLASS DESIGN
   ============================================================================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: hsla(222, 47%, 8%, 0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--surface-primary);
  border: 1px solid var(--border-default);
  border-radius: 24px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--elevation-4);
}

/* Modal size variants */
.modal-content.modal-sm {
  max-width: 400px;
}

.modal-content.modal-md {
  max-width: 560px;
}

.modal-content.modal-lg {
  max-width: 800px;
}

.modal-overlay.show .modal-content {
  transform: scale(1) translateY(0);
}

/* Modal shake animation for feedback */
.modal-shake {
  animation: shake 0.25s ease;
}

@keyframes shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
  100% { transform: translateX(0); }
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--content-primary);
  margin: 0;
}

.modal-close {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--surface-interactive);
  color: var(--content-tertiary);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--status-danger-bg);
  color: var(--status-danger);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Modal Detail Content - Modern Card Layout */
.modal-detail {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.modal-detail-section {
  background: var(--surface-secondary);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid var(--border-subtle);
}

.modal-detail-section-title {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--content-tertiary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-detail-section-title i {
  font-size: 0.875rem;
  color: var(--brand-primary);
}

.modal-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.modal-detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.modal-detail-item.full-width {
  grid-column: 1 / -1;
}

.modal-detail-label {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--content-tertiary);
}

.modal-detail-value {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--content-primary);
  word-break: break-word;
}

.modal-detail-value.highlight {
  color: var(--brand-primary);
  font-weight: 600;
}

.modal-detail-value.muted {
  color: var(--content-tertiary);
  font-style: italic;
}

/* Status Badge in Modal */
.modal-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.modal-status-badge.status-pending {
  background: var(--status-warning-bg);
  color: var(--status-warning);
}

.modal-status-badge.status-progress {
  background: var(--status-info-bg);
  color: var(--status-info);
}

.modal-status-badge.status-completed {
  background: var(--status-success-bg);
  color: var(--status-success);
}

.modal-status-badge.status-delivered {
  background: linear-gradient(135deg, var(--status-success-bg), #d4edda);
  color: var(--status-success);
}

/* Price Display in Modal */
.modal-price-display {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.modal-price-display .currency {
  font-size: 0.875rem;
  color: var(--content-tertiary);
}

.modal-price-display .amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-primary);
}

.modal-price-display.secondary .amount {
  font-size: 1rem;
  color: var(--status-success);
}

/* Description Box in Modal */
.modal-description-box {
  background: var(--surface-tertiary);
  border-radius: 8px;
  padding: 0.875rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--content-secondary);
  max-height: 150px;
  overflow-y: auto;
  white-space: pre-wrap;
}

.modal-description-box:empty::before {
  content: "Δεν υπάρχει περιγραφή";
  color: var(--content-tertiary);
  font-style: italic;
}

/* Modal Action Buttons */
.modal-actions {
  display: flex;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

.modal-actions .btn {
  flex: 1;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .modal-detail-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-detail-section {
    padding: 0.875rem;
  }
  
  .modal-body {
    padding: 1rem;
  }
  
  .modal-price-display .amount {
    font-size: 1.125rem;
  }
}

/* =============================================================================
   SECTION 10: TOASTS & NOTIFICATIONS
   ============================================================================= */

.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface-primary);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  box-shadow: var(--elevation-3);
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.toast-success {
  border-left: 4px solid var(--status-success);
}

.toast-error {
  border-left: 4px solid var(--status-danger);
}

.toast-warning {
  border-left: 4px solid var(--status-warning);
}

/* =============================================================================
   SECTION 11: PAGE LAYOUT
   ============================================================================= */

/* Content Wrapper - Space for navbars */
.content,
.content-wrapper {
  min-height: calc(100vh - 80px);
  padding-bottom: 100px;
}

/* Page Surface - Main content container */
.page-surface {
  padding: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Section Header */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--content-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-title i {
  color: var(--brand-primary);
}

/* =============================================================================
   SECTION 12: STATS CARDS
   ============================================================================= */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--surface-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.25rem;
  transition: all 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--elevation-2);
}

.stat-card .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.stat-card .stat-icon.primary {
  background: hsla(35, 98%, 55%, 0.12);
  color: var(--brand-primary);
}

.stat-card .stat-icon.accent {
  background: hsla(197, 99%, 46%, 0.12);
  color: var(--brand-accent);
}

.stat-card .stat-icon.success {
  background: var(--status-success-bg);
  color: var(--status-success);
}

.stat-card .stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--content-primary);
  line-height: 1.2;
}

.stat-card .stat-label {
  font-size: 0.875rem;
  color: var(--content-tertiary);
  margin-top: 0.25rem;
}

/* =============================================================================
   SECTION 13: RESPONSIVE DESIGN
   ============================================================================= */

@media (max-width: 768px) {
  /* Smaller navbar on mobile */
  .top-navbar {
    border-radius: 16px;
    padding: 0.5rem 1rem;
    margin: 8px;
    max-width: calc(100% - 16px);
  }
  
  .top-navbar .navbar-title {
    display: none;
  }
  
  .top-navbar .brand-text {
    font-size: 1rem;
  }
  
  .navbar-user-name {
    display: none !important;
  }
  
  /* Bottom navbar adjustments */
  .bottom-navbar {
    bottom: 8px;
    border-radius: 16px;
  }
  
  .bottom-navbar .nav-link {
    padding: 0.5rem 0.75rem;
  }
  
  /* Page content */
  .page-surface {
    padding: 1rem;
  }
  
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .bottom-navbar .nav-link .text {
    display: none;
  }
  
  .bottom-navbar .nav-link {
    padding: 0.75rem 1rem;
  }
  
  .bottom-navbar .nav-link .icon {
    font-size: 1.25rem;
  }
}

/* =============================================================================
   SECTION 14: ANIMATIONS
   ============================================================================= */

/* Fade in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.3s ease forwards;
}

/* Stagger children animation */
.stagger-children > * {
  opacity: 0;
  animation: fadeIn 0.3s ease forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.3s; }

/* Pulse animation */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Skeleton loading */
@keyframes skeleton {
  0% { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}

.skeleton {
  background: linear-gradient(
    90deg,
    var(--surface-interactive) 0px,
    var(--surface-interactive-hover) 40px,
    var(--surface-interactive) 80px
  );
  background-size: 200px 100%;
  animation: skeleton 1.5s ease-in-out infinite;
  border-radius: 8px;
}

/* =============================================================================
   SECTION 15: LOADING STATES
   ============================================================================= */

/* Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--surface-interactive);
  border-top-color: var(--brand-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Loading overlay */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: var(--surface-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Initial loader */
.initial-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  color: var(--content-tertiary);
  gap: 1rem;
}

.initial-loader i {
  font-size: 2.5rem;
  animation: spin 1s linear infinite;
  color: var(--brand-primary);
}

/* =============================================================================
   SECTION 16: EMPTY STATES
   ============================================================================= */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
}

.empty-state-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: var(--surface-interactive);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--content-tertiary);
  margin-bottom: 1.5rem;
}

.empty-state-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--content-primary);
  margin-bottom: 0.5rem;
}

.empty-state-text {
  color: var(--content-tertiary);
  max-width: 320px;
  margin-bottom: 1.5rem;
}

/* =============================================================================
   SECTION 17: UTILITY OVERRIDES FOR ADMINLTE
   ============================================================================= */

/* Override AdminLTE defaults */
.content-wrapper {
  background: transparent !important;
  margin-left: 0 !important;
}

.wrapper {
  background: transparent;
}

/* Fix for sticky navbar with AdminLTE */
.layout-fixed .content-wrapper {
  margin-top: 0 !important;
}

/* Remove AdminLTE sidebar margin */
.sidebar-mini .content-wrapper,
.sidebar-collapse .content-wrapper {
  margin-left: 0 !important;
}

/* Clean up AdminLTE card styles */
.card.card-primary .card-header,
.card.card-info .card-header,
.card.card-warning .card-header,
.card.card-danger .card-header,
.card.card-success .card-header {
  background: var(--surface-interactive);
  border-color: var(--border-subtle);
  color: var(--content-primary);
}

/* =============================================================================
   SECTION 18: CLICKABLE ELEMENTS
   ============================================================================= */

.clickable {
  cursor: pointer;
  transition: all 0.2s ease;
}

.clickable:hover {
  opacity: 0.9;
}

.clickable:active {
  transform: scale(0.98);
}

/* =============================================================================
   SECTION 19: EDIT USER MODAL - MODERN UX DESIGN
   ============================================================================= */

.edit-user-modal-dialog {
  max-width: 540px;
  margin: 1rem auto;
}

.edit-user-modal-content {
  background: var(--surface-primary);
  border: 1px solid var(--border-default);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--elevation-4);
}

/* Modal Header */
.edit-user-modal-header {
  background: var(--surface-secondary);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.edit-user-header-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.edit-user-avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--surface-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid var(--border-default);
}

.avatar-initial {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--content-primary);
  text-transform: uppercase;
}

.avatar-status-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid var(--surface-secondary);
}

.avatar-status-dot.active {
  background: #22c55e;
}

.avatar-status-dot.inactive {
  background: #ef4444;
}

.edit-user-header-info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.edit-user-modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--content-primary);
  margin: 0;
  line-height: 1.2;
}

.edit-user-id {
  font-size: 0.75rem;
  color: var(--content-tertiary);
  font-weight: 500;
}

.edit-user-close-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--surface-tertiary);
  color: var(--content-secondary);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.edit-user-close-btn:hover {
  background: var(--status-danger-bg);
  color: var(--status-danger);
  transform: scale(1.05);
}

/* Modal Body */
.edit-user-modal-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 60vh;
  overflow-y: auto;
}

/* Form Sections */
.edit-user-section {
  background: var(--surface-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1rem;
}

.edit-user-section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--content-tertiary);
  margin-bottom: 0.875rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid var(--border-subtle);
}

.edit-user-section-header i {
  color: var(--brand-primary);
  font-size: 0.875rem;
}

.apps-count-badge {
  margin-left: auto;
  background: var(--brand-primary);
  color: white;
  padding: 0.125rem 0.5rem;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 600;
}

/* Form Grid */
.edit-user-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 480px) {
  .edit-user-form-grid {
    grid-template-columns: 1fr;
  }
}

/* Form Groups */
.edit-user-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.edit-user-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--content-secondary);
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.edit-user-label i {
  font-size: 0.7rem;
  color: var(--content-tertiary);
}

.edit-user-input,
.edit-user-select {
  background: var(--surface-primary);
  border: 1px solid var(--border-default);
  border-radius: 10px;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  color: var(--content-primary);
  transition: all 0.2s ease;
  width: 100%;
}

.edit-user-input:focus,
.edit-user-select:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.edit-user-input::placeholder {
  color: var(--content-tertiary);
}

.edit-user-hint {
  font-size: 0.65rem;
  color: var(--content-tertiary);
  font-style: italic;
}

/* Password Wrapper */
.edit-user-password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.edit-user-password-wrapper .edit-user-input {
  padding-right: 2.5rem;
}

.password-toggle-btn {
  position: absolute;
  right: 0.5rem;
  background: none;
  border: none;
  color: var(--content-tertiary);
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.2s ease;
}

.password-toggle-btn:hover {
  color: var(--content-primary);
}

/* Status Toggle Buttons */
.edit-user-status-toggle {
  display: flex;
  gap: 0.5rem;
}

.status-btn {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-default);
  background: var(--surface-primary);
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--content-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
}

.status-btn:hover {
  border-color: var(--brand-primary);
}

.status-btn.active[data-value="1"] {
  background: rgba(34, 197, 94, 0.1);
  border-color: #22c55e;
  color: #16a34a;
}

.status-btn.active[data-value="0"] {
  background: rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
  color: #dc2626;
}

/* Apps Grid */
.edit-user-apps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

@media (max-width: 480px) {
  .edit-user-apps-grid {
    grid-template-columns: 1fr;
  }
}

.app-checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.75rem;
  background: var(--surface-primary);
  border: 1px solid var(--border-default);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.app-checkbox-item:hover {
  border-color: var(--status-success);
  background: var(--surface-elevated);
}

.app-checkbox-item.selected {
  background: rgba(34, 197, 94, 0.08);
  border-color: var(--status-success);
}

.app-checkbox-item input[type="checkbox"] {
  display: none;
  pointer-events: none;
}

.app-checkbox-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--surface-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--content-tertiary);
  font-size: 0.75rem;
  transition: all 0.2s ease;
}

.app-checkbox-item.selected .app-checkbox-icon {
  background: var(--status-success);
  color: white;
}

.app-checkbox-name {
  flex: 1;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--content-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-checkbox-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: transparent;
  transition: all 0.2s ease;
}

.app-checkbox-item.selected .app-checkbox-check {
  background: var(--status-success);
  border-color: var(--status-success);
  color: white;
}

/* Modal Footer */
.edit-user-modal-footer {
  padding: 1rem 1.25rem;
  background: var(--surface-secondary);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.edit-user-btn-cancel,
.edit-user-btn-save {
  padding: 0.625rem 1.25rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
}

.edit-user-btn-cancel {
  background: var(--surface-primary);
  border: 1px solid var(--border-default);
  color: var(--content-secondary);
}

.edit-user-btn-cancel:hover {
  background: var(--surface-tertiary);
  color: var(--content-primary);
}

.edit-user-btn-save {
  background: var(--status-success);
  color: white;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.25);
}

.edit-user-btn-save:hover {
  background: var(--status-success-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.35);
}

.edit-user-btn-save:active {
  transform: translateY(0);
}

/* =============================================================================
   SECTION 20: ADD USER MODAL - MODERN UX DESIGN
   ============================================================================= */

.add-user-modal-dialog {
  max-width: 540px;
  margin: 1rem auto;
}

.add-user-modal-content {
  background: var(--surface-primary);
  border: 1px solid var(--border-default);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--elevation-4);
}

/* Modal Header */
.add-user-modal-header {
  background: var(--surface-secondary);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.add-user-header-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.add-user-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--surface-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-default);
  font-size: 1.5rem;
  color: var(--status-success);
}

.add-user-header-info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.add-user-modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--content-primary);
  margin: 0;
  line-height: 1.2;
}

.add-user-subtitle {
  font-size: 0.75rem;
  color: var(--content-tertiary);
  font-weight: 500;
}

.add-user-close-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--surface-tertiary);
  color: var(--content-secondary);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.add-user-close-btn:hover {
  background: var(--status-danger-bg);
  color: var(--status-danger);
  transform: scale(1.05);
}

/* Modal Body */
.add-user-modal-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 60vh;
  overflow-y: auto;
}

/* Form Sections */
.add-user-section {
  background: var(--surface-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1rem;
}

.add-user-section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--content-tertiary);
  margin-bottom: 0.875rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid var(--border-subtle);
}

.add-user-section-header i {
  color: var(--status-success);
  font-size: 0.875rem;
}

/* Form Grid */
.add-user-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 480px) {
  .add-user-form-grid {
    grid-template-columns: 1fr;
  }
}

/* Form Groups */
.add-user-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.add-user-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--content-secondary);
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.add-user-label i {
  font-size: 0.7rem;
  color: var(--content-tertiary);
}

.add-user-input,
.add-user-select {
  background: var(--surface-primary);
  border: 1px solid var(--border-default);
  border-radius: 10px;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  color: var(--content-primary);
  transition: all 0.2s ease;
  width: 100%;
}

.add-user-input:focus,
.add-user-select:focus {
  outline: none;
  border-color: var(--status-success);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.add-user-input::placeholder {
  color: var(--content-tertiary);
}

/* Password Wrapper */
.add-user-password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.add-user-password-wrapper .add-user-input {
  padding-right: 2.5rem;
}

/* Apps Grid for Add User */
.add-user-apps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

@media (max-width: 480px) {
  .add-user-apps-grid {
    grid-template-columns: 1fr;
  }
}

/* Modal Footer */
.add-user-modal-footer {
  padding: 1rem 1.25rem;
  background: var(--surface-secondary);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.add-user-btn-cancel,
.add-user-btn-save {
  padding: 0.625rem 1.25rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
}

.add-user-btn-cancel {
  background: var(--surface-primary);
  border: 1px solid var(--border-default);
  color: var(--content-secondary);
}

.add-user-btn-cancel:hover {
  background: var(--surface-tertiary);
  color: var(--content-primary);
}

.add-user-btn-save {
  background: var(--status-success);
  color: white;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.25);
}

.add-user-btn-save:hover {
  background: var(--status-success-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.35);
}

.add-user-btn-save:active {
  transform: translateY(0);
}

/* =============================================================================
   SECTION 21: USER CARDS - NEO DESIGN
   ============================================================================= */

.user-card-neo {
  background: var(--surface-primary);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.user-card-neo:hover {
  transform: translateY(-4px);
  box-shadow: var(--elevation-3);
  border-color: var(--brand-primary);
}

/* Card Header */
.user-card-header {
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.user-card-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--surface-tertiary);
  border: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.avatar-letter {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--content-primary);
  text-transform: uppercase;
}

.avatar-status {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--surface-secondary);
}

.avatar-status.active {
  background: #22c55e;
}

.avatar-status.inactive {
  background: #ef4444;
}

.user-card-identity {
  flex: 1;
  min-width: 0;
}

.user-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--content-primary);
  margin: 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-card-role {
  font-size: 0.75rem;
  color: var(--content-tertiary);
  font-weight: 500;
}

.user-card-delete-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--surface-primary);
  color: var(--content-tertiary);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.user-card-delete-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

/* Card Body */
.user-card-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.user-card-info-row {
  display: flex;
  gap: 1rem;
}

.user-card-info-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.info-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--content-tertiary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.info-label i {
  font-size: 0.6rem;
}

.info-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--content-primary);
}

.info-value.status-active {
  color: #22c55e;
}

.info-value.status-inactive {
  color: #ef4444;
}

/* Apps Section */
.user-card-apps {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.apps-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--content-tertiary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.apps-label i {
  font-size: 0.6rem;
}

.apps-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.app-chip {
  background: var(--surface-secondary);
  border: 1px solid var(--border-subtle);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--content-secondary);
}

.app-chip-more {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: white;
}

.no-apps {
  font-size: 0.75rem;
  color: var(--content-tertiary);
  font-style: italic;
}

/* Card Footer */
.user-card-footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--surface-secondary);
}

.user-card-edit-btn {
  width: 100%;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-default);
  background: var(--surface-primary);
  color: var(--content-secondary);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
}

.user-card-edit-btn:hover {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: white;
}

.user-card-edit-btn i {
  font-size: 0.7rem;
}

/* =============================================================================
   SECTION 22: PRINT STYLES
   ============================================================================= */

@media print {
  .top-navbar,
  .bottom-navbar,
  .btn,
  .navbar-dropdown {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .card {
    break-inside: avoid;
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }
}
