/* ==========================================
   Modern UI/UX Design System for A-Square
   ========================================== */

:root {
  /* Modern Color Palette - Soft & Harmonious */
  --primary: #6366F1; /* Soft Indigo */
  --primary-dark: #5558E3;
  --primary-light: #A5B4FC;
  --secondary: #8B5CF6; /* Purple */
  --secondary-dark: #7C3AED;
  --secondary-light: #C4B5FD;
  --accent: #EC4899; /* Pink */
  --danger: #F43F5E;
  --warning: #F59E0B;
  --success: #10B981;
  --info: #3B82F6;

  /* Neutral Colors */
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;

  /* Dark Mode Colors */
  --dark-bg: #0F172A;
  --dark-surface: #1E293B;
  --dark-surface-light: #334155;
  --dark-text: #F1F5F9;
  --dark-text-secondary: #CBD5E1;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* ==========================================
   Global Styles
   ========================================== */

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  background: linear-gradient(135deg, #F0F2F5 0%, #E8E9F3 100%);
  min-height: 100vh;
  color: var(--gray-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Soft Ambient Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(at 40% 20%, hsla(239, 81%, 77%, 0.15) 0px, transparent 50%),
    radial-gradient(at 80% 0%, hsla(271, 91%, 82%, 0.12) 0px, transparent 50%),
    radial-gradient(at 0% 50%, hsla(328, 79%, 85%, 0.1) 0px, transparent 50%),
    radial-gradient(at 80% 50%, hsla(239, 81%, 77%, 0.12) 0px, transparent 50%),
    radial-gradient(at 0% 100%, hsla(221, 83%, 90%, 0.15) 0px, transparent 50%),
    radial-gradient(at 80% 100%, hsla(271, 91%, 82%, 0.12) 0px, transparent 50%),
    radial-gradient(at 0% 0%, hsla(328, 79%, 85%, 0.1) 0px, transparent 50%);
  z-index: -1;
}

/* ==========================================
   Modern Navigation Bar
   ========================================== */

.navbar-modern {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  transition: all var(--transition-base);
  margin-bottom: 2rem;
}

.navbar-modern .navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform var(--transition-base);
}

.navbar-modern .navbar-brand:hover {
  transform: translateX(5px);
}

.navbar-modern .navbar-brand i {
  -webkit-text-fill-color: var(--primary);
  margin-right: 0.5rem;
}

.navbar-modern .nav-link {
  color: var(--gray-700);
  font-weight: 500;
  padding: 0.625rem 1.25rem;
  margin: 0 0.25rem;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  position: relative;
  text-decoration: none;
}

.navbar-modern .nav-link:hover {
  color: var(--primary);
  background: rgba(99, 102, 241, 0.08);
  transform: translateY(-2px);
}

.navbar-modern .nav-link.active {
  color: var(--primary);
  background: rgba(99, 102, 241, 0.12);
}

/* Modern Dropdown */
.navbar-modern .dropdown-menu {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: none;
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  padding: 0.75rem;
  margin-top: 0.75rem;
  animation: slideDown 200ms ease-out;
}

.navbar-modern .dropdown-item {
  border-radius: var(--radius-md);
  padding: 0.625rem 1.25rem;
  margin: 0.125rem 0;
  color: var(--gray-700);
  transition: all var(--transition-fast);
}

.navbar-modern .dropdown-item:hover {
  background: rgba(99, 102, 241, 0.08);
  color: var(--primary);
  transform: translateX(5px);
}

.navbar-modern .dropdown-item i {
  width: 20px;
  text-align: center;
  margin-right: 0.5rem;
  color: var(--primary);
}

/* User Avatar */
.user-avatar-wrapper {
  position: relative;
  text-decoration: none;
  transition: all var(--transition-base);
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 0.45rem 0.875rem;
  border-radius: var(--radius-xl);
  min-height: 50px;
}

.user-avatar-wrapper:hover {
  background: rgba(99, 102, 241, 0.08);
  transform: translateY(-1px);
}

.user-avatar-wrapper:hover .user-avatar {
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
}

.user-avatar {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all var(--transition-base);
  border: 3px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
  flex-shrink: 0;
}

/* User Name Label */
.user-name-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-600);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
  transition: color var(--transition-base);
  line-height: 1.1;
  letter-spacing: -0.3px;
}

/* User Menu Chevron */
.user-menu-chevron {
  font-size: 0.8rem;
  color: var(--gray-400);
  transition: all var(--transition-base);
  margin-left: 0.25rem;
  flex-shrink: 0;
  opacity: 0.7;
}

/* Hover Effects */
.user-avatar-wrapper:hover .user-name-label {
  color: var(--primary);
}

.user-avatar-wrapper:hover .user-menu-chevron {
  color: var(--primary);
  transform: rotate(180deg);
  opacity: 1;
}

.user-avatar-wrapper:hover .user-avatar {
  border-color: rgba(99, 102, 241, 0.3);
}

.dropdown-header .user-avatar {
  width: 40px;
  height: 40px;
  font-size: 0.9rem;
}

/* ==========================================
   Modern Cards
   ========================================== */

.card-modern {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  border: none;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: all var(--transition-base);
  margin-bottom: 2rem;
}

.card-modern:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-modern .card-header {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(139, 92, 246, 0.02) 100%);
  border-bottom: 1px solid rgba(229, 231, 235, 0.5);
  padding: 1.5rem 1.75rem;
}

.card-modern .card-header h4 {
  margin: 0;
  color: var(--gray-800);
  font-weight: 600;
  display: flex;
  align-items: center;
}

.card-modern .card-header h4 i {
  margin-right: 0.75rem;
  color: var(--primary);
}

.card-modern .card-body {
  padding: 2rem 1.75rem;
}

/* Stat Cards */
.stat-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-xl);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
  border: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.06);
  margin-bottom: 1.5rem;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 0 0 0 100%;
  opacity: 0.1;
}

.stat-card .stat-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.stat-card.primary .stat-icon {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.stat-card.success .stat-icon {
  background: linear-gradient(135deg, var(--success) 0%, #34D399 100%);
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.stat-card.warning .stat-icon {
  background: linear-gradient(135deg, var(--warning) 0%, #FBBF24 100%);
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.stat-card.danger .stat-icon {
  background: linear-gradient(135deg, var(--danger) 0%, #F87171 100%);
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 0.25rem;
  line-height: 1;
}

.stat-card .stat-label {
  color: var(--gray-600);
  font-size: 0.875rem;
  font-weight: 500;
}

.stat-card .stat-change {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.stat-card .stat-change.positive {
  background: rgba(34, 197, 94, 0.1);
  color: var(--success);
}

.stat-card .stat-change.negative {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

/* ==========================================
   Modern Buttons
   ========================================== */

.btn-modern {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  margin: 0.25rem;
}

.btn-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: width var(--transition-slow);
}

.btn-modern:hover::before {
  width: 100%;
}

.btn-modern i {
  margin-right: 0.5rem;
}

.btn-modern-primary {
  background: linear-gradient(135deg, #5558E3 0%, #7C3AED 100%);
  color: white !important;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  font-weight: 600;
}

.btn-modern-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
  color: white !important;
  background: linear-gradient(135deg, #4547C6 0%, #6931D0 100%);
}

.btn-modern-success {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: white !important;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  font-weight: 600;
  border: none;
}

.btn-modern-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
  color: white !important;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.btn-modern-secondary {
  background: white;
  color: var(--primary) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 2px solid var(--primary);
  font-weight: 600;
}

.btn-modern-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
  background: linear-gradient(135deg, #5558E3 0%, #7C3AED 100%);
  color: white !important;
  border-color: transparent;
}

.btn-modern-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-modern-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.3);
}

.btn-modern-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--gray-700);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-modern-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  color: var(--primary);
}

/* Floating Action Button */
.fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 10px 25px rgba(236, 72, 153, 0.3);
  cursor: pointer;
  transition: all var(--transition-base);
  z-index: var(--z-fixed);
  border: none;
}

.fab:hover {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 15px 35px rgba(236, 72, 153, 0.4);
}

/* ==========================================
   Modern Forms
   ========================================== */

.form-modern {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group-modern {
  position: relative;
}

.form-group-modern label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.875rem;
}

.form-control-modern {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: var(--radius-lg);
  font-size: 0.9375rem;
  transition: all var(--transition-base);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.25rem;
}

.form-control-modern:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
  background: rgba(255, 255, 255, 1);
}

.form-control-modern.is-invalid {
  border-color: var(--danger);
}

.form-control-modern.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Floating Label */
.form-floating-modern {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-floating-modern input,
.form-floating-modern textarea {
  width: 100%;
  padding: 1.5rem 1rem 0.5rem;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-lg);
  font-size: 1rem;
  background: white;
  transition: all var(--transition-base);
}

.form-floating-modern label {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  color: var(--gray-500);
  font-size: 1rem;
  pointer-events: none;
  transition: all var(--transition-base);
}

.form-floating-modern input:focus,
.form-floating-modern input:not(:placeholder-shown),
.form-floating-modern textarea:focus,
.form-floating-modern textarea:not(:placeholder-shown) {
  padding-top: 1.5rem;
  padding-bottom: 0.5rem;
  border-color: var(--primary);
}

.form-floating-modern input:focus ~ label,
.form-floating-modern input:not(:placeholder-shown) ~ label,
.form-floating-modern textarea:focus ~ label,
.form-floating-modern textarea:not(:placeholder-shown) ~ label {
  top: 0.5rem;
  transform: translateY(0);
  font-size: 0.75rem;
  color: var(--primary);
  background: white;
  padding: 0 0.25rem;
}

/* Modern Select */
.select-modern {
  position: relative;
}

.select-modern select {
  appearance: none;
  width: 100%;
  padding: 0.75rem 3rem 0.75rem 1rem;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-lg);
  font-size: 0.9375rem;
  background: white;
  cursor: pointer;
  transition: all var(--transition-base);
}

.select-modern::after {
  content: '▼';
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--gray-500);
  font-size: 0.75rem;
}

.select-modern select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Modern Checkbox & Radio */
.form-check-modern {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  cursor: pointer;
}

.form-check-modern input[type="checkbox"],
.form-check-modern input[type="radio"] {
  width: 20px;
  height: 20px;
  margin-right: 0.75rem;
  cursor: pointer;
  position: relative;
  appearance: none;
  border: 2px solid var(--gray-400);
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}

.form-check-modern input[type="radio"] {
  border-radius: var(--radius-full);
}

.form-check-modern input[type="checkbox"]:checked,
.form-check-modern input[type="radio"]:checked {
  background: var(--primary);
  border-color: var(--primary);
}

.form-check-modern input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 0.875rem;
}

.form-check-modern input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: white;
  border-radius: var(--radius-full);
}

.form-check-modern label {
  margin: 0;
  cursor: pointer;
  user-select: none;
  color: var(--gray-700);
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  width: 50px;
  height: 26px;
  margin-right: 0.75rem;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gray-300);
  transition: all var(--transition-base);
  border-radius: var(--radius-full);
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: white;
  transition: all var(--transition-base);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--primary);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

/* ==========================================
   Modern Tables
   ========================================== */

.table-modern {
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: none;
}

.table-modern thead {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.03) 100%);
}

.table-modern thead th {
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-weight: 600;
  color: var(--gray-700);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid rgba(99, 102, 241, 0.08);
}

.table-modern tbody tr {
  transition: all var(--transition-base);
  border-bottom: 1px solid var(--gray-100);
}

.table-modern tbody tr:hover {
  background: rgba(99, 102, 241, 0.02);
}

.table-modern tbody td {
  padding: 1.25rem 1.5rem;
  color: var(--gray-700);
  font-size: 0.9375rem;
}

.table-modern tbody tr:last-child {
  border-bottom: none;
}

/* Table Actions */
.table-actions {
  display: flex;
  gap: 0.5rem;
}

.table-actions button {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  border: none;
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.table-actions button:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

/* ==========================================
   Badges & Tags
   ========================================== */

.badge-modern {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--transition-base);
}

.badge-modern.primary {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
}

.badge-modern.success {
  background: rgba(34, 197, 94, 0.1);
  color: var(--success);
}

.badge-modern.warning {
  background: rgba(249, 115, 22, 0.1);
  color: var(--warning);
}

.badge-modern.danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.badge-modern.info {
  background: rgba(6, 182, 212, 0.1);
  color: var(--info);
}

/* ==========================================
   Alerts
   ========================================== */

.alert-modern {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  animation: slideInRight 300ms ease-out;
}

.alert-modern i {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.alert-modern.success {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.05) 100%);
  border-left: 4px solid var(--success);
  color: var(--success);
}

.alert-modern.warning {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.1) 0%, rgba(249, 115, 22, 0.05) 100%);
  border-left: 4px solid var(--warning);
  color: var(--warning);
}

.alert-modern.danger {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
  border-left: 4px solid var(--danger);
  color: var(--danger);
}

.alert-modern.info {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(6, 182, 212, 0.05) 100%);
  border-left: 4px solid var(--info);
  color: var(--info);
}

.alert-modern .alert-content {
  flex: 1;
}

.alert-modern .alert-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.alert-modern .alert-message {
  font-size: 0.875rem;
  opacity: 0.9;
}

.alert-modern .btn-close {
  background: transparent;
  border: none;
  color: inherit;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.alert-modern .btn-close:hover {
  opacity: 1;
}

/* ==========================================
   Loading & Spinners
   ========================================== */

.spinner-modern {
  width: 40px;
  height: 40px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: var(--radius-full);
  animation: spin 1s linear infinite;
}

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

.skeleton {
  background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ==========================================
   Modals
   ========================================== */

.modal-modern {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  padding: 1rem;
}

.modal-modern .modal-content {
  background: white;
  border-radius: var(--radius-xl);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-2xl);
  animation: modalIn 300ms ease-out;
}

.modal-modern .modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-modern .modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-800);
}

.modal-modern .modal-body {
  padding: 1.5rem;
}

.modal-modern .modal-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--gray-200);
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ==========================================
   Animations
   ========================================== */

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ==========================================
   Responsive Design
   ========================================== */

@media (max-width: 768px) {
  .navbar-modern {
    padding: 0.5rem 0;
  }

  .card-modern {
    margin-bottom: 1rem;
  }

  .stat-card {
    margin-bottom: 1rem;
  }

  .table-modern {
    font-size: 0.875rem;
  }

  .modal-modern .modal-content {
    margin: 1rem;
  }
}

/* ==========================================
   Dark Mode
   ========================================== */

body.dark-mode {
  background: var(--dark-bg);
  color: var(--dark-text);
}

body.dark-mode .navbar-modern {
  background: rgba(30, 41, 59, 0.95);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .card-modern {
  background: rgba(30, 41, 59, 0.9);
}

body.dark-mode .form-control-modern {
  background: var(--dark-surface);
  border-color: var(--dark-surface-light);
  color: var(--dark-text);
}

body.dark-mode .table-modern {
  background: var(--dark-surface);
}

body.dark-mode .table-modern thead {
  background: var(--dark-surface-light);
}

body.dark-mode .table-modern thead th,
body.dark-mode .table-modern tbody td {
  color: var(--dark-text);
}

/* Badge 다크모드 */
body.dark-mode .badge.bg-warning {
  background-color: #FCD34D !important;
  color: #1F2937 !important;
}

body.dark-mode .badge.bg-light {
  background-color: #334155 !important;
  color: #F1F5F9 !important;
}

body.dark-mode .badge.bg-secondary {
  background-color: #64748B !important;
  color: #F1F5F9 !important;
}

body.dark-mode .badge.bg-primary {
  background-color: #6366F1 !important;
  color: #FFFFFF !important;
}

body.dark-mode .badge.bg-success {
  background-color: #10B981 !important;
  color: #FFFFFF !important;
}

body.dark-mode .badge.bg-danger {
  background-color: #F87171 !important;
  color: #FFFFFF !important;
}

body.dark-mode .badge.bg-info {
  background-color: #0EA5E9 !important;
  color: #FFFFFF !important;
}

/* Dropdown 다크모드 */
body.dark-mode .navbar-modern .dropdown-menu {
  background: rgba(30, 41, 59, 0.98) !important;
  border: 1px solid rgba(51, 65, 85, 0.5);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

body.dark-mode .navbar-modern .dropdown-item {
  color: var(--dark-text) !important;
}

body.dark-mode .navbar-modern .dropdown-item:hover {
  background: rgba(99, 102, 241, 0.3) !important;
  color: #A5B4FC !important;
}

body.dark-mode .dropdown-divider {
  border-color: rgba(71, 85, 105, 0.5);
}

body.dark-mode .dropdown-header {
  color: var(--dark-text-secondary);
}

body.dark-mode .dropdown-menu {
  background: rgba(30, 41, 59, 0.98) !important;
  border: 1px solid rgba(51, 65, 85, 0.5);
}

body.dark-mode .dropdown-menu .dropdown-item {
  color: var(--dark-text) !important;
}

body.dark-mode .dropdown-menu .dropdown-item:hover {
  background: rgba(99, 102, 241, 0.3) !important;
  color: #A5B4FC !important;
}

/* User menu 다크모드 */
body.dark-mode .user-avatar {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

body.dark-mode .user-avatar-wrapper:hover {
  background: rgba(99, 102, 241, 0.2);
}

body.dark-mode .user-avatar-wrapper:hover .user-avatar {
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

body.dark-mode .user-name-label {
  color: #E2E8F0;
}

body.dark-mode .user-menu-chevron {
  color: #94A3B8;
  opacity: 0.7;
}

body.dark-mode .user-avatar-wrapper:hover .user-name-label {
  color: #A5B4FC;
}

body.dark-mode .user-avatar-wrapper:hover .user-menu-chevron {
  color: #A5B4FC;
}

body.dark-mode .dropdown-menu-end {
  background: rgba(30, 41, 59, 0.98) !important;
  border: 1px solid rgba(51, 65, 85, 0.5);
}

/* Links & Buttons 다크모드 */
body.dark-mode a {
  color: #7DD3FC;
}

body.dark-mode a:hover {
  color: #BFDBFE;
}

body.dark-mode .btn-link {
  color: var(--dark-text);
}

body.dark-mode .btn-link:hover {
  color: #A5B4FC;
}

body.dark-mode .text-muted {
  color: #94A3B8 !important;
}

body.dark-mode .navbar-modern .nav-link {
  color: var(--dark-text) !important;
}

body.dark-mode .navbar-modern .nav-link:hover {
  color: #A5B4FC !important;
  background: rgba(99, 102, 241, 0.15) !important;
}

body.dark-mode .navbar-modern .nav-link.active {
  color: #A5B4FC !important;
}

/* Scrollbar 다크모드 */
body.dark-mode ::-webkit-scrollbar-track {
  background: var(--dark-surface);
}

body.dark-mode ::-webkit-scrollbar-thumb {
  background: var(--dark-surface-light);
  border-radius: var(--radius-full);
}

body.dark-mode ::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Notification dropdown 다크모드 */
body.dark-mode .notification-dropdown {
  background: var(--dark-surface) !important;
  border: 1px solid rgba(71, 85, 105, 0.5);
}

body.dark-mode .notification-dropdown .dropdown-header h6 {
  color: var(--dark-text) !important;
}

body.dark-mode .notification-item {
  border-bottom-color: rgba(71, 85, 105, 0.3);
}

body.dark-mode .notification-text .notification-title {
  color: var(--dark-text) !important;
}

body.dark-mode .notification-text .notification-message {
  color: var(--dark-text-secondary) !important;
}

body.dark-mode .notification-time {
  color: #94A3B8 !important;
}

body.dark-mode .mark-all-read {
  color: #7DD3FC !important;
}

body.dark-mode .notification-item:hover {
  background: rgba(99, 102, 241, 0.1);
}

/* Footer 다크모드 */
body.dark-mode footer {
  background: var(--dark-surface);
  color: var(--dark-text-secondary);
}

/* Button close 다크모드 */
body.dark-mode .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

/* FAB 버튼 다크모드 */
body.dark-mode .fab {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

body.dark-mode .fab:hover {
  box-shadow: 0 6px 30px rgba(102, 126, 234, 0.6);
}

/* Notification badge 다크모드 */
body.dark-mode .notification-badge {
  background-color: #F87171 !important;
  color: #FFFFFF !important;
}

/* Alert 다크모드 */
body.dark-mode .alert-modern {
  background: var(--dark-surface);
  border-color: rgba(71, 85, 105, 0.5);
  color: var(--dark-text);
}

body.dark-mode .alert-modern.success {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10B981;
  color: #10B981;
}

body.dark-mode .alert-modern.warning {
  background: rgba(252, 211, 77, 0.15);
  border-color: #FCD34D;
  color: #FCD34D;
}

body.dark-mode .alert-modern.danger {
  background: rgba(248, 113, 113, 0.15);
  border-color: #F87171;
  color: #F87171;
}

/* ==========================================
   Utilities
   ========================================== */

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blur-bg {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.1);
}

.hover-scale {
  transition: transform var(--transition-base);
}

.hover-scale:hover {
  transform: scale(1.05);
}

.hover-lift {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-400);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-500);
}

/* ==========================================
   Notification Dropdown
   ========================================== */

.notification-dropdown {
  width: 380px;
  max-height: 500px;
  overflow-y: auto;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(229, 231, 235, 0.5);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  margin-top: 0.75rem;
}

.notification-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.notification-header h6 {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-800);
}

.notification-header .mark-all-read {
  font-size: 0.75rem;
  color: var(--primary);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.notification-header .mark-all-read:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.notification-item {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  margin-bottom: 0.25rem;
  transition: all var(--transition-fast);
  cursor: pointer;
  position: relative;
}

.notification-item:hover {
  background: rgba(99, 102, 241, 0.05);
}

.notification-item.unread {
  background: rgba(99, 102, 241, 0.03);
}

.notification-item.unread::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: var(--radius-full);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
  }
}

.notification-content {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.notification-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notification-icon.info {
  background: rgba(59, 130, 246, 0.1);
  color: var(--info);
}

.notification-icon.warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.notification-icon.success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}
.notification-icon.error {
  background: rgba(244, 63, 94, 0.1);
  color: var(--danger);
}
.notification-icon.quote {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
}
.notification-icon.customer {
  background: rgba(139, 92, 246, 0.1);
  color: var(--secondary);
}
.notification-icon.template {
  background: rgba(236, 72, 153, 0.1);
  color: var(--accent);
}
.notification-icon.system {
  background: rgba(107, 114, 128, 0.1);
  color: var(--gray-500);
}

.notification-text {
  flex: 1;
}

.notification-text .notification-title {
  font-size: 0.875rem;
  color: var(--gray-800);
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.notification-text .notification-time {
  font-size: 0.75rem;
  color: var(--gray-500);
}

.notification-text .notification-message {
  font-size: 0.8125rem;
  color: var(--gray-600);
  margin-bottom: 0.25rem;
  line-height: 1.4;
}
.notification-footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--gray-200);
  text-align: center;
  margin-top: 0.5rem;
}

.notification-footer a {
  color: var(--primary);
  font-size: 0.875rem;
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.notification-footer a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Notification Badge */
.notification-badge {
  font-size: 0.65rem !important;
  padding: 0.25em 0.5em !important;
  min-width: 1.5rem !important;
}

/* Read/Unread States */
.notification-item.read {
  opacity: 0.7;
}

/* ==========================================
   Mobile Navigation - Premium Style
   ========================================== */

/* 햄버거 버튼 - 프리미엄 스타일 */
.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(99, 102, 241, 0.08);
  border-radius: var(--radius-lg);
  color: var(--gray-700);
  font-size: 1.25rem;
  cursor: pointer;
  transition: all var(--transition-base);
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
}

.mobile-menu-toggle:hover {
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary);
  transform: scale(1.05);
}

.mobile-menu-toggle:active {
  transform: scale(0.95);
}

@media (max-width: 991px) {
  .mobile-menu-toggle {
    display: flex;
  }
}

/* Offcanvas - 프리미엄 스타일 */
.offcanvas-modern {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(229, 231, 235, 0.5) !important;
  width: 300px !important;
}

.offcanvas-modern .offcanvas-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(229, 231, 235, 0.5);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(139, 92, 246, 0.02) 100%);
}

.offcanvas-modern .offcanvas-title {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--gray-800);
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.offcanvas-modern .btn-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background-color: rgba(107, 114, 128, 0.1);
  opacity: 1;
  transition: all var(--transition-base);
}

.offcanvas-modern .btn-close:hover {
  background-color: rgba(244, 63, 94, 0.1);
  transform: rotate(90deg);
}

.offcanvas-modern .offcanvas-body {
  padding: 1rem;
}

/* Offcanvas 네비게이션 링크 */
.offcanvas-modern .nav-link {
  display: flex;
  align-items: center;
  padding: 0.875rem 1rem;
  margin: 0.25rem 0;
  border-radius: var(--radius-lg);
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: all var(--transition-base);
  text-decoration: none;
}

.offcanvas-modern .nav-link:hover {
  background: rgba(99, 102, 241, 0.08);
  color: var(--primary);
  transform: translateX(5px);
}

.offcanvas-modern .nav-link.active {
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary);
}

.offcanvas-modern .nav-link i {
  width: 24px;
  text-align: center;
  margin-right: 0.75rem;
  color: var(--primary);
  font-size: 1rem;
}

/* Offcanvas 섹션 헤더 */
.offcanvas-modern .nav-section-header {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-500);
  padding: 1rem 1rem 0.5rem;
  margin-top: 0.5rem;
}

.offcanvas-modern .nav-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(229, 231, 235, 0.8), transparent);
  margin: 0.75rem 0;
}

/* Offcanvas 다크모드 */
body.dark-mode .offcanvas-modern {
  background: rgba(30, 41, 59, 0.98) !important;
  border-right-color: rgba(71, 85, 105, 0.5) !important;
}

body.dark-mode .offcanvas-modern .offcanvas-header {
  border-bottom-color: rgba(71, 85, 105, 0.5);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
}

body.dark-mode .offcanvas-modern .offcanvas-title {
  background: linear-gradient(135deg, #A5B4FC 0%, #C4B5FD 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.dark-mode .offcanvas-modern .nav-link {
  color: var(--dark-text);
}

body.dark-mode .offcanvas-modern .nav-link:hover {
  background: rgba(99, 102, 241, 0.2);
  color: #A5B4FC;
}

body.dark-mode .offcanvas-modern .nav-link i {
  color: #A5B4FC;
}

body.dark-mode .offcanvas-modern .nav-section-header {
  color: var(--dark-text-secondary);
}

body.dark-mode .offcanvas-modern .nav-divider {
  background: linear-gradient(90deg, transparent, rgba(71, 85, 105, 0.8), transparent);
}

body.dark-mode .mobile-menu-toggle {
  background: rgba(99, 102, 241, 0.15);
  color: var(--dark-text);
}

body.dark-mode .mobile-menu-toggle:hover {
  background: rgba(99, 102, 241, 0.25);
  color: #A5B4FC;
}

/* ==========================================
   Navbar 반응형 개선
   ========================================== */

@media (max-width: 991px) {
  .navbar-modern .container {
    padding: 0 1rem;
  }

  .navbar-modern .navbar-brand img {
    height: 50px;
  }

  /* 알림 버튼 간격 조정 */
  .navbar-modern .dropdown > .btn-link {
    padding: 0.5rem;
    margin-right: 0.5rem !important;
  }
}

@media (max-width: 768px) {
  .navbar-modern {
    padding: 0.625rem 0;
    margin-bottom: 1rem;
  }

  .navbar-modern .navbar-brand img {
    height: 44px;
  }

  .user-avatar {
    width: 38px;
    height: 38px;
    font-size: 0.875rem;
  }

  .user-avatar-wrapper {
    padding: 0.35rem 0.5rem;
    gap: 0.5rem;
    min-height: 44px;
  }

  /* 알림 드롭다운 너비 조정 */
  .notification-dropdown {
    width: 320px !important;
    right: -60px !important;
  }
}

@media (max-width: 576px) {
  .navbar-modern {
    padding: 0.5rem 0;
    margin-bottom: 0.75rem;
  }

  .navbar-modern .container {
    padding: 0 0.75rem;
  }

  .navbar-modern .navbar-brand img {
    height: 38px;
  }

  .mobile-menu-toggle {
    width: 40px;
    height: 40px;
    font-size: 1.125rem;
    margin-right: 0.5rem;
  }

  .user-avatar {
    width: 34px;
    height: 34px;
    font-size: 0.8125rem;
    border-width: 2px;
  }

  .user-avatar-wrapper {
    padding: 0.25rem 0.375rem;
    min-height: 40px;
  }

  /* 알림 드롭다운 전체 너비 */
  .notification-dropdown {
    width: calc(100vw - 1.5rem) !important;
    max-width: 360px !important;
    right: -10px !important;
  }

  /* FAB 버튼 조정 */
  .fab {
    width: 52px;
    height: 52px;
    bottom: 1.25rem;
    right: 1.25rem;
    font-size: 1.25rem;
  }
}

@media (max-width: 360px) {
  .navbar-modern .navbar-brand img {
    height: 32px;
  }

  .mobile-menu-toggle {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    margin-right: 0.375rem;
  }

  .user-avatar {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
  }

  .user-avatar-wrapper {
    padding: 0.2rem 0.25rem;
  }

  /* 알림 버튼 */
  .navbar-modern .dropdown > .btn-link {
    padding: 0.375rem;
    font-size: 0.9375rem;
  }

  .notification-dropdown {
    width: calc(100vw - 1rem) !important;
    max-width: 320px !important;
    right: -5px !important;
    font-size: 0.875rem;
  }

  .fab {
    width: 48px;
    height: 48px;
    bottom: 1rem;
    right: 1rem;
    font-size: 1.125rem;
  }
}