:root {
  --primary-color: #4f46e5;
  --primary-dark: #3730a3;
  --secondary-color: #6366f1;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --info-color: #06b6d4;
  
  --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;
  
  --sidebar-width: 280px;
  --sidebar-collapsed-width: 80px;
  --header-height: 70px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --border-radius-xl: 16px;
}

/* Dark mode colors */
html.dark {
  --gray-50: #1f2937;
  --gray-100: #374151;
  --gray-200: #4b5563;
  --gray-300: #6b7280;
  --gray-400: #9ca3af;
  --gray-500: #d1d5db;
  --gray-600: #e5e7eb;
  --gray-700: #f3f4f6;
  --gray-800: #f9fafb;
  --gray-900: #ffffff;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--gray-50);
  color: var(--gray-900);
  line-height: 1.5;
  font-size: 14px;
  transition: all 0.3s ease;
}

#app {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: #000000;
  border-right: 1px solid #1a1a1a;
  position: fixed;
  height: 100vh;
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.sidebar.collapsed {
  width: var(--sidebar-collapsed-width);
}

.sidebar.closed {
  transform: translateX(-100%);
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid #1a1a1a;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-header .logo {
  width: 50px;
  height: 50px;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1.2rem;
}

.sidebar-header .brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: #ffffff;
  white-space: nowrap;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.sidebar.collapsed .brand {
  opacity: 0;
  pointer-events: none;
}

.sidebar-nav {
  padding: 1rem 0;
}

.nav-group {
  margin-bottom: 1.75rem;
}

.nav-group-title {
  padding: 0 1.25rem 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  transition: opacity 0.3s ease;
}

.sidebar.collapsed .nav-group-title {
  opacity: 0;
  pointer-events: none;
}

.nav-item {
  margin: 0;
  padding: 0 1rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: #e5e7eb;
  text-decoration: none;
  border-radius: 14px;
  transition: all 0.2s ease;
  position: relative;
  font-weight: 500;
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
}

.nav-link .nav-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 1.05rem;
  transition: color 0.2s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.08);
}

.nav-link:hover .nav-icon {
  color: #ffffff;
}

.nav-link.active {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.92), rgba(129, 140, 248, 0.85));
  border-color: rgba(79, 70, 229, 0.65);
  color: #ffffff;
  box-shadow: 0 18px 32px rgba(79, 70, 229, 0.35);
}

.nav-link.active .nav-icon {
  color: #ffffff;
}

.nav-link.nav-link-soon {
  background: rgba(226, 232, 240, 0.7);
  border-color: rgba(203, 213, 225, 0.6);
  color: #94a3b8;
  box-shadow: none;
}

.nav-link.nav-link-soon .nav-icon {
  color: #cbd5f5;
}

.nav-link.nav-link-soon:hover {
  background: rgba(226, 232, 240, 0.6);
  border-color: rgba(148, 163, 184, 0.4);
  color: #64748b;
  box-shadow: 0 2px 6px rgba(148, 163, 184, 0.1);
}

.nav-link.active.nav-link-soon {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.92), rgba(129, 140, 248, 0.85));
  border-color: rgba(79, 70, 229, 0.65);
  color: #ffffff;
  box-shadow: 0 18px 32px rgba(79, 70, 229, 0.35);
}

.nav-link.active.nav-link-soon .nav-icon {
  color: #ffffff;
}

.nav-link .nav-badge {
  margin-left: auto;
  background: rgba(148, 163, 184, 0.45);
  color: #475569;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
}

.nav-link .nav-badge-new {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% {
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  }
  50% {
    box-shadow: 0 2px 12px rgba(16, 185, 129, 0.5);
  }
}

.nav-text {
  white-space: nowrap;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.sidebar.collapsed .nav-link {
  justify-content: center;
  padding: 0.75rem;
}

.sidebar.collapsed .nav-link .nav-text,
.sidebar.collapsed .nav-link .nav-badge {
  opacity: 0;
  pointer-events: none;
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-content.sidebar-collapsed {
  margin-left: var(--sidebar-collapsed-width);
}

.main-content.sidebar-closed {
  margin-left: 0;
}

/* Header */
.header {
  background: white;
  border-bottom: 1px solid var(--gray-200);
  padding: 0 2rem;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.2s ease;
}

.sidebar-toggle:hover {
  background-color: var(--gray-100);
  color: var(--primary-color);
}

.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-icon {
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  border-radius: var(--border-radius);
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  background-color: rgba(99, 102, 241, 0.05);
  color: var(--primary-color);
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.08);
}

.user-menu {
  position: relative;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.user-avatar:hover {
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
  transform: translateY(-1px);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  min-width: 220px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  display: none;
  z-index: 20;
}

.user-dropdown.active {
  display: block;
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  color: var(--gray-700);
  text-decoration: none;
}

.user-dropdown-item:hover {
  background: var(--gray-50);
  color: var(--gray-900);
}

/* Content Area */
.content {
  padding: 2rem;
  max-width: 100%;
  overflow-x: hidden;
}

/* Cards */
.card {
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: all 0.2s ease;
}

.card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.card-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
  background-color: var(--gray-50);
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}

.card-subtitle {
  font-size: 0.875rem;
  color: var(--gray-600);
}

.card-body {
  padding: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--gray-600);
  color: white;
}

.btn-secondary:hover {
  background-color: var(--gray-700);
}

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

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

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

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--gray-300);
  color: var(--gray-700);
}

.btn-outline:hover {
  background-color: var(--gray-100);
}

/* Grid System */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all 0.2s ease;
}

.stat-card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

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

.stat-icon.primary { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); }
.stat-icon.success { background: linear-gradient(135deg, var(--success-color), #059669); }
.stat-icon.warning { background: linear-gradient(135deg, var(--warning-color), #d97706); }
.stat-icon.danger { background: linear-gradient(135deg, var(--danger-color), #dc2626); }

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}

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

.stat-change {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.stat-change.positive { color: var(--success-color); }
.stat-change.negative { color: var(--danger-color); }

/* Tables */
.table-container {
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

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

.table th,
.table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

.table th {
  background-color: var(--gray-50);
  font-weight: 600;
  color: var(--gray-700);
  font-size: 0.875rem;
}

.table tr:hover {
  background-color: var(--gray-50);
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

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

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
  font-size: 0.875rem;
  transition: all 0.2s ease;
  background-color: white;
}

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

/* Dark mode support */
html.dark body {
  background-color: var(--gray-900);
  color: var(--gray-100);
}

html.dark .sidebar {
  background-color: var(--gray-800);
  border-color: var(--gray-700);
}

html.dark .nav-group-title {
  color: #cbd5f5;
}

html.dark .nav-link {
  color: #e2e8f0;
  border-color: transparent;
}

html.dark .nav-link .nav-icon {
  color: #a5b4fc;
}

html.dark .nav-link:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(129, 140, 248, 0.25);
  color: #c7d2fe;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.12);
}

html.dark .user-dropdown {
  background: var(--gray-800);
  border-color: var(--gray-700);
}

html.dark .user-dropdown-item {
  color: #e2e8f0;
}

html.dark .user-dropdown-item:hover {
  background: rgba(148, 163, 184, 0.12);
  color: #ffffff;
}

html.dark .nav-link:hover .nav-icon {
  color: #c7d2fe;
}

html.dark .nav-link.active {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.85), rgba(129, 140, 248, 0.75));
  border-color: rgba(99, 102, 241, 0.65);
  color: #ffffff;
}

html.dark .nav-link.active .nav-icon {
  color: #ffffff;
}

html.dark .nav-link.nav-link-soon {
  background: rgba(71, 85, 105, 0.55);
  border-color: rgba(148, 163, 184, 0.35);
  color: #cbd5f5;
}

html.dark .nav-link.nav-link-soon .nav-icon {
  color: #a5b4fc;
}

html.dark .nav-link.active.nav-link-soon {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.85), rgba(129, 140, 248, 0.75));
  border-color: rgba(99, 102, 241, 0.65);
  color: #ffffff;
}

html.dark .nav-link.active.nav-link-soon .nav-icon {
  color: #ffffff;
}

html.dark .nav-link .nav-badge {
  background: rgba(129, 140, 248, 0.2);
  color: #c7d2fe;
}

html.dark .header {
  background-color: var(--gray-800);
  border-color: var(--gray-700);
}

html.dark .card,
html.dark .stat-card,
html.dark .table-container {
  background-color: var(--gray-800);
  border-color: var(--gray-700);
}

/* Responsive Design */

/* Tablet (1024px and below) */
@media (max-width: 1024px) {
  .sidebar {
    width: var(--sidebar-width);
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .sidebar-toggle {
    display: flex;
  }
  
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }
  
  .content {
    padding: 1.5rem;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .modal-content {
    max-width: 90vw;
    margin: 1rem;
  }
}

/* Mobile Large (768px and below) */
@media (max-width: 768px) {
  /* Layout adjustments */
  .sidebar {
    transform: translateX(-100%);
    width: var(--sidebar-width);
    z-index: 1000;
    box-shadow: var(--shadow-xl);
    position: fixed;
    height: 100vh;
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
    width: 100%;
  }
  
  .content {
    padding: 1rem;
  }
  
  /* Header mobile */
  .header {
    padding: 0 1rem;
    height: 60px;
    position: sticky;
    top: 0;
    z-index: 100;
  }
  
  .header-left {
    gap: 0.75rem;
  }
  
  .saldo-display {
    margin-left: 0.5rem;
  }
  
  .saldo-label {
    font-size: 0.7rem;
  }
  
  .saldo-valor {
    font-size: 1rem;
  }
  
  /* Stats and grids */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }
  
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }
  
  /* Forms */
  .form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .form-input,
  .form-select,
  .form-textarea {
    padding: 0.75rem;
    font-size: 1rem;
    border-radius: var(--border-radius);
  }
  
  .form-label {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
  }
  
  /* Buttons */
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    min-height: 44px;
    border-radius: var(--border-radius);
  }
  
  .btn-icon {
    min-width: 44px;
    min-height: 44px;
    padding: 0.75rem;
    border-radius: var(--border-radius);
  }
  
  /* Tables - responsive approach */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
  }
  
  .table {
    font-size: 0.85rem;
    min-width: 600px;
  }
  
  .table th,
  .table td {
    padding: 0.75rem 0.5rem;
    white-space: nowrap;
  }
  
  /* Cards */
  .card {
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
  }
  
  .stat-card {
    padding: 1.25rem;
    text-align: center;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
  }
  
  .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
    color: var(--gray-600);
    font-weight: 500;
  }
  
  /* Modals */
  .modal {
    padding: 10px;
  }
  
  .modal-content {
    margin: 10px;
    max-height: 90vh;
    overflow-y: auto;
    width: calc(100% - 20px);
    border-radius: var(--border-radius);
  }
  
  .modal-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--gray-200);
  }
  
  .modal-header h3 {
    font-size: 1.1rem;
  }
  
  .modal-body {
    padding: 1.25rem;
  }
  
  .modal-footer {
    padding: 1.25rem;
    border-top: 1px solid var(--gray-200);
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .modal-footer .btn {
    width: 100%;
    justify-content: center;
  }
  
  /* Navigation */
  .nav-text {
    font-size: 0.9rem;
  }
  
  .nav-icon {
    min-width: 24px;
  }
  
  /* Filters and search */
  .filters {
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }
  
  .filters select,
  .filters input {
    width: 100%;
  }
  
  /* Page headers */
  .page-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  .page-header h1 {
    font-size: 1.5rem;
  }
  
  .page-header .btn {
    align-self: center;
  }
}

/* Mobile Small (480px and below) */
@media (max-width: 480px) {
  /* Header ultra compact */
  .header {
    padding: 0 0.75rem;
    height: 56px;
  }
  
  .header-right .btn-icon:not(.user-avatar) {
    display: none;
  }
  
  .header-actions {
    gap: 0.5rem;
  }
  
  .saldo-display {
    margin-left: 0.25rem;
  }
  
  .saldo-label {
    font-size: 0.65rem;
  }
  
  .saldo-valor {
    font-size: 0.9rem;
  }
  
  /* Content ultra compact */
  .content {
    padding: 0.75rem;
  }
  
  /* Stats ultra compact */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  
  .stat-card {
    padding: 1rem;
  }
  
  .stat-number {
    font-size: 1.25rem;
  }
  
  .stat-label {
    font-size: 0.75rem;
  }
  
  /* Forms ultra compact */
  .form-input,
  .form-select,
  .form-textarea {
    padding: 0.625rem;
    font-size: 1rem;
  }
  
  .form-label {
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
  }
  
  /* Buttons ultra compact */
  .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.85rem;
  }
  
  .btn-icon {
    min-width: 40px;
    min-height: 40px;
    padding: 0.625rem;
  }
  
  /* Tables ultra compact */
  .table {
    font-size: 0.75rem;
    min-width: 500px;
  }
  
  .table th,
  .table td {
    padding: 0.5rem 0.25rem;
  }
  
  /* Modals ultra compact */
  .modal {
    padding: 5px;
  }
  
  .modal-content {
    margin: 5px;
    width: calc(100% - 10px);
  }
  
  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 1rem;
  }
  
  .modal-header h3 {
    font-size: 1rem;
  }
  
  /* Page headers ultra compact */
  .page-header h1 {
    font-size: 1.25rem;
  }
  
  /* Navigation ultra compact */
  .nav-text {
    font-size: 0.85rem;
  }
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

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

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

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

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

.slide-in {
  animation: slideInRight 0.3s ease-out;
}

.fade-in {
  animation: fadeIn 0.3s ease-out;
}
