/* Header Bar Styles - Resi-inspired */

/* Main Header Bar */
.app-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 20px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Logo */
.header-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
}

/* Desktop Navigation */
.header-nav-desktop {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  color: #4b5563;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.header-nav-item:hover {
  color: #1f2937;
  background: #f3f4f6;
}

.header-nav-item.active {
  color: #2BB5A0;
  background: #E8F7F4;
}

.header-nav-item svg {
  opacity: 0.7;
}

.header-nav-item.active svg {
  opacity: 1;
}

/* Desktop Actions */
.header-actions-desktop {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-download-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  color: #374151;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.header-download-btn:hover {
  background: #e5e7eb;
  border-color: #d1d5db;
}

/* User Dropdown */
.header-user-dropdown {
  position: relative;
}

.header-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.header-user-btn:hover {
  border-color: #d1d5db;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.header-user-name {
  font-size: 14px;
  font-weight: 500;
  color: #1f2937;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-user-btn svg {
  color: #6b7280;
  flex-shrink: 0;
}

/* Dropdown Menu */
.header-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  z-index: 200;
  overflow: hidden;
  animation: dropdownAppear 0.15s ease-out;
}

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

.dropdown-user-info {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dropdown-user-email {
  font-size: 13px;
  color: #6b7280;
}

.dropdown-plan-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dropdown-plan-badge.blue {
  background: rgba(43, 181, 160, 0.1);
  color: #2BB5A0;
}

.dropdown-plan-badge.green {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}

.dropdown-plan-badge.purple {
  background: rgba(147, 51, 234, 0.1);
  color: #9333ea;
}

.dropdown-plan-badge.gold {
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
}

.dropdown-plan-badge.red {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.dropdown-plan-badge.gray {
  background: rgba(107, 114, 128, 0.1);
  color: #6b7280;
}

.dropdown-plan-badge.teal {
  background: rgba(20, 184, 166, 0.1);
  color: #0d9488;
}

.dropdown-divider {
  height: 1px;
  background: #e5e7eb;
}

.dropdown-org-list {
  padding: 8px 0;
}

.dropdown-section-label {
  padding: 0 16px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
  text-align: left;
}

.dropdown-item:hover {
  background: #f9fafb;
}

.dropdown-item svg {
  color: #6b7280;
}

.dropdown-org-item {
  justify-content: space-between;
}

.dropdown-org-item.active {
  background: #E8F7F4;
  color: #239E8B;
}

.dropdown-org-item.active svg {
  color: #2BB5A0;
}

.dropdown-org-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.dropdown-org-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-org-role {
  font-size: 12px;
  font-weight: 500;
  text-transform: capitalize;
  color: #6b7280;
}

/* Mobile Hamburger Button */
.header-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.header-hamburger:hover {
  background: #f3f4f6;
}

.header-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #374151;
  border-radius: 1px;
  transition: all 0.2s ease;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Mobile Slide-out Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  background: #ffffff;
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  min-height: 56px;
}

.mobile-menu-logo {
  height: 28px;
  width: auto;
}

.mobile-menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  color: #6b7280;
  transition: all 0.15s ease;
}

.mobile-menu-close:hover {
  background: #f3f4f6;
  color: #374151;
}

/* Mobile Menu Navigation */
.mobile-menu-nav {
  flex: 0 0 auto;
  padding: 8px 0;
}

.mobile-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 20px;
  background: none;
  border: none;
  color: #374151;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
  text-decoration: none;
  text-align: left;
}

.mobile-menu-item:hover {
  background: #f9fafb;
}

.mobile-menu-item.active {
  color: #2BB5A0;
  background: #E8F7F4;
}

.mobile-menu-item svg {
  color: #6b7280;
  flex-shrink: 0;
}

.mobile-menu-item.active svg {
  color: #2BB5A0;
}

.mobile-menu-chevron {
  margin-left: auto;
  color: #d1d5db;
}

.mobile-menu-external {
  margin-left: auto;
  color: #9ca3af;
}

.mobile-plan-badge {
  margin-left: auto;
  margin-right: 8px;
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mobile-plan-badge.blue {
  background: rgba(43, 181, 160, 0.1);
  color: #2BB5A0;
}

.mobile-plan-badge.green {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}

.mobile-plan-badge.purple {
  background: rgba(147, 51, 234, 0.1);
  color: #9333ea;
}

.mobile-plan-badge.gold {
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
}

.mobile-plan-badge.red {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.mobile-plan-badge.gray {
  background: rgba(107, 114, 128, 0.1);
  color: #6b7280;
}

.mobile-plan-badge.teal {
  background: rgba(20, 184, 166, 0.1);
  color: #0d9488;
}

/* Mobile Menu Divider */
.mobile-menu-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 8px 0;
}

/* Mobile Menu Secondary Section */
.mobile-menu-secondary {
  flex: 1;
  padding: 8px 0;
  display: flex;
  flex-direction: column;
}

.mobile-menu-account {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  margin: 8px 0;
  background: #f9fafb;
}

.mobile-menu-account svg {
  color: #6b7280;
  flex-shrink: 0;
}

.mobile-account-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.mobile-account-name {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
}

.mobile-account-email {
  font-size: 12px;
  color: #6b7280;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-org-switcher {
  padding: 8px 0;
}

.mobile-org-switcher-label {
  padding: 0 20px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
}

.mobile-org-item {
  justify-content: space-between;
}

.mobile-org-item.active {
  background: #E8F7F4;
  color: #2BB5A0;
}

.mobile-org-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.mobile-org-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-org-role {
  font-size: 12px;
  font-weight: 500;
  text-transform: capitalize;
  color: #6b7280;
}

.mobile-signout {
  margin-top: auto;
  color: #dc2626;
  border-top: 1px solid #e5e7eb;
}

.mobile-signout svg {
  color: #dc2626;
}

.mobile-signout:hover {
  background: rgba(220, 38, 38, 0.05);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .header-nav-desktop {
    gap: 2px;
  }
  
  .header-nav-item {
    padding: 8px 10px;
    font-size: 13px;
  }
  
  .header-nav-item svg {
    display: none;
  }
}

@media (max-width: 768px) {
  .header-nav-desktop,
  .header-actions-desktop {
    display: none;
  }
  
  .header-hamburger {
    display: flex;
  }
  
  .header-left {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .app-header-bar {
    padding: 0 12px;
  }
  
  .header-logo {
    height: 28px;
  }
  
  .mobile-menu {
    width: 100vw;
    max-width: 100vw;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .mobile-menu,
  .mobile-menu-overlay,
  .header-dropdown-menu {
    transition: none;
  }
  
  @keyframes dropdownAppear {
    from { opacity: 1; transform: none; }
    to { opacity: 1; transform: none; }
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .app-header-bar {
    border-bottom: 2px solid #000;
  }
  
  .header-nav-item.active {
    border: 2px solid #2BB5A0;
  }
  
  .mobile-menu {
    border-left: 2px solid #000;
  }
}

/* OTP Verification Styles */
.otp-verification {
  text-align: center;
  padding: var(--sb-space-2) 0;
}

.otp-icon {
  font-size: 3rem;
  margin-bottom: var(--sb-space-4);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.otp-title {
  font-size: var(--sb-text-2xl);
  font-weight: 700;
  color: var(--sb-black);
  margin: 0 0 var(--sb-space-2) 0;
}

.otp-subtitle {
  font-size: var(--sb-text-base);
  color: var(--sb-gray-600);
  margin: 0 0 var(--sb-space-6) 0;
  line-height: 1.5;
}

.otp-subtitle strong {
  color: var(--sb-black);
}

.otp-error,
.otp-success {
  margin-bottom: var(--sb-space-4);
  animation: shake 0.5s ease-out;
}

.otp-success {
  animation: none;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* OTP Input Grid */
.otp-inputs {
  display: flex;
  justify-content: center;
  gap: var(--sb-space-2);
  margin-bottom: var(--sb-space-6);
}

.otp-input {
  width: 48px;
  height: 56px;
  font-size: var(--sb-text-2xl);
  font-weight: 600;
  text-align: center;
  border: 2px solid var(--sb-gray-200);
  border-radius: var(--sb-radius-lg);
  background: var(--sb-white);
  color: var(--sb-black);
  transition: all var(--sb-transition-normal);
}

.otp-input:focus {
  outline: none;
  border-color: var(--sb-primary);
  box-shadow: 0 0 0 3px rgba(43, 181, 160, 0.2);
  transform: translateY(-2px);
}

.otp-input:hover:not(:focus):not(.disabled) {
  border-color: var(--sb-gray-300);
}

.otp-input.disabled {
  background: var(--sb-gray-100);
  cursor: not-allowed;
  opacity: 0.7;
}

/* Submit Button */
.otp-submit {
  width: 100%;
  margin-bottom: var(--sb-space-4);
}

/* Action Links */
.otp-actions {
  display: flex;
  flex-direction: column;
  gap: var(--sb-space-2);
  margin-bottom: var(--sb-space-4);
}

.otp-link {
  background: none;
  border: none;
  color: var(--sb-primary);
  font-size: var(--sb-text-sm);
  cursor: pointer;
  padding: var(--sb-space-2);
  transition: all var(--sb-transition-normal);
}

.otp-link:hover:not(:disabled) {
  color: var(--sb-primary-dark);
  text-decoration: underline;
}

.otp-link:disabled {
  color: var(--sb-gray-400);
  cursor: not-allowed;
}

.otp-link.otp-cancel {
  color: var(--sb-gray-600);
}

.otp-link.otp-cancel:hover:not(:disabled) {
  color: var(--sb-gray-800);
}

/* Help Text */
.otp-help {
  font-size: var(--sb-text-xs);
  color: var(--sb-gray-500);
  margin: 0;
}

/* Responsive */
@media (max-width: 480px) {
  .otp-input {
    width: 40px;
    height: 48px;
    font-size: var(--sb-text-xl);
  }
  
  .otp-inputs {
    gap: var(--sb-space-1);
  }
  
  .otp-title {
    font-size: var(--sb-text-xl);
  }
}

@media (max-width: 360px) {
  .otp-input {
    width: 36px !important;
    height: 40px !important;
    font-size: 18px !important;
  }
  .otp-inputs {
    gap: 4px !important;
  }
}


/* Login Page Styles - Matching SoundBridge Design System */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: var(--sb-space-4);
}

/* Background */
.login-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: var(--sb-bg-primary);
}

.login-background-gradient {
  display: none;
}

.login-background-overlay {
  display: none;
}

/* Login container and card */
.login-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
  animation: loginAppear 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes loginAppear {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-card {
  background: var(--sb-white);
  border-radius: var(--sb-radius-2xl);
  padding: var(--sb-space-8);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--sb-gray-100);
  position: relative;
}

/* Header section */
.login-header {
  text-align: center;
  margin-bottom: var(--sb-space-8);
}

.login-logo {
  height: 64px;
  width: auto;
  object-fit: contain;
  margin-bottom: var(--sb-space-4);
}

.login-title {
  font-size: var(--sb-text-3xl);
  font-weight: 700;
  color: var(--sb-black);
  margin: 0 0 var(--sb-space-2) 0;
  letter-spacing: -0.022em;
  line-height: 1.1;
}

.login-subtitle {
  font-size: var(--sb-text-base);
  color: var(--sb-gray-600);
  margin: 0;
  line-height: 1.5;
  font-weight: var(--sb-font-normal);
}

/* Form styles */
.login-form {
  margin-bottom: var(--sb-space-6);
}

.login-error {
  margin-bottom: var(--sb-space-5);
  animation: errorShake 0.5s ease-out;
}

.login-session-expired-banner {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  color: #92400e;
  padding: var(--sb-space-3) var(--sb-space-4);
  border-radius: var(--sb-radius-lg);
  margin-bottom: var(--sb-space-5);
  font-size: var(--sb-text-sm);
}

@keyframes errorShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* Password input container */
.password-input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input {
  padding-right: var(--sb-space-12) !important;
}

.password-toggle {
  position: absolute;
  right: var(--sb-space-3);
  background: none;
  border: none;
  color: var(--sb-gray-500);
  cursor: pointer;
  padding: var(--sb-space-2);
  border-radius: var(--sb-radius-sm);
  transition: all var(--sb-transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.password-toggle:hover {
  color: var(--sb-primary);
  background: rgba(43, 181, 160, 0.1);
}

.password-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(43, 181, 160, 0.3);
}

.password-toggle:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Submit button */
.login-submit {
  width: 100%;
  margin-top: var(--sb-space-2);
}

.login-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.login-submit .sb-spinner {
  margin-right: var(--sb-space-2);
}

/* Footer */
.login-footer {
  text-align: center;
  padding-top: var(--sb-space-4);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.forgot-password-link {
  background: none;
  border: none;
  color: var(--sb-primary);
  font-size: var(--sb-text-sm);
  cursor: pointer;
  padding: var(--sb-space-2);
  margin-bottom: var(--sb-space-2);
  transition: all var(--sb-transition-normal);
  text-decoration: none;
}

.forgot-password-link:hover {
  color: var(--sb-primary-dark);
  text-decoration: underline;
}

.forgot-password-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(43, 181, 160, 0.3);
  border-radius: var(--sb-radius-sm);
}

.login-help-text {
  font-size: var(--sb-text-sm);
  color: var(--sb-gray-500);
  margin: 0;
  line-height: 1.4;
}

/* Reset success state */
.reset-success {
  text-align: center;
}

.reset-success .sb-alert--success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--sb-success);
}

/* Form field enhancements */
.login-form .sb-form-group {
  margin-bottom: var(--sb-space-5);
}

.login-form .sb-label {
  font-weight: var(--sb-font-semibold);
  color: var(--sb-gray-700);
}

.login-form .sb-input {
  transition: all var(--sb-transition-normal);
  font-size: var(--sb-text-base);
}

.login-form .sb-input:focus {
  box-shadow: 0 0 0 3px rgba(43, 181, 160, 0.1);
}

.login-form .sb-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Responsive design */
@media (max-width: 768px) {
  .login-page {
    padding: var(--sb-space-3);
  }
  
  .login-card {
    padding: var(--sb-space-6);
  }
  
  .login-title {
    font-size: var(--sb-text-2xl);
  }
  
  .login-logo {
    height: 56px;
  }
}

@media (max-width: 480px) {
  .login-page {
    padding: var(--sb-space-2);
  }
  
  .login-card {
    padding: var(--sb-space-5);
  }
  
  .login-title {
    font-size: var(--sb-text-xl);
  }
  
  .login-subtitle {
    font-size: var(--sb-text-sm);
  }
  
  .login-logo {
    height: 48px;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .login-card {
    border: 2px solid var(--sb-black);
  }
  
  .password-toggle {
    border: 1px solid var(--sb-gray-300);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .login-container {
    animation: none;
  }
  
  .login-error {
    animation: none;
  }
}

/* Focus improvements for accessibility */
.login-form input:focus-visible,
.login-form button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(43, 181, 160, 0.3);
}

/* Loading state for the entire form */
.login-form:has(.login-submit:disabled) .sb-input {
  pointer-events: none;
}


/* Enhanced visual feedback */
.login-form .sb-input:valid:not(:placeholder-shown) {
  border-color: var(--sb-success);
}

.login-form .sb-input:invalid:not(:placeholder-shown):not(:focus) {
  border-color: var(--sb-error);
}

/* Fix for input field clickability */
.login-form .sb-input {
  pointer-events: auto !important;
  position: relative;
  z-index: 1;
}

.password-input-container {
  position: relative;
  z-index: 1;
}

.password-toggle {
  z-index: 10 !important;
  pointer-events: auto !important;
}
.trial-banner {
  position: relative;
  margin-bottom: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  animation: slideDown 0.4s ease;
  overflow: hidden;
}

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

.trial-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2196F3, #64B5F6);
}

.trial-banner.warning::before {
  background: linear-gradient(90deg, #FF9800, #FFB74D);
}

.trial-banner.urgent::before {
  background: linear-gradient(90deg, #f44336, #EF5350);
  animation: pulse-glow 1.5s ease-in-out infinite;
}

.trial-banner.expired {
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
  border: 2px solid #f44336;
}

.trial-banner.expired::before {
  background: #f44336;
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

.trial-banner:not(.expired) {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.trial-banner.warning {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
}

.trial-banner.urgent {
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
}

.banner-content-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
}

.banner-icon {
  font-size: 32px;
  flex-shrink: 0;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.banner-content {
  flex: 1;
}

.banner-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary, #1a1a1a);
  margin: 0 0 12px 0;
}

.usage-summary {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.usage-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 200px;
}

.usage-label {
  font-size: 13px;
  color: var(--text-secondary, #666);
  font-weight: 500;
}

.mini-progress {
  flex: 1;
  height: 6px;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
  overflow: hidden;
  min-width: 80px;
}

.mini-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2196F3, #64B5F6);
  border-radius: 3px;
  transition: width 0.5s ease;
}

.trial-banner.warning .mini-progress-fill {
  background: linear-gradient(90deg, #FF9800, #FFB74D);
}

.trial-banner.urgent .mini-progress-fill {
  background: linear-gradient(90deg, #f44336, #EF5350);
}

.usage-percent {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary, #1a1a1a);
  min-width: 36px;
  text-align: right;
}

.banner-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cta-button {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary-color, #2196F3), #1976D2);
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(33, 150, 243, 0.3);
}

.trial-banner.urgent .cta-button {
  animation: pulse-button 1.5s ease-in-out infinite;
}

@keyframes pulse-button {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.dismiss-button {
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background-color: transparent;
  color: var(--text-secondary, #666);
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dismiss-button:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--text-primary, #1a1a1a);
}

.dismiss-button svg {
  width: 18px;
  height: 18px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .banner-content-wrapper {
    flex-direction: column;
    gap: 16px;
    padding: 16px 20px;
  }

  .banner-icon {
    font-size: 24px;
  }

  .banner-content {
    width: 100%;
  }

  .banner-content h3 {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .usage-summary {
    flex-direction: column;
    gap: 8px;
  }

  .usage-item {
    min-width: unset;
    width: 100%;
  }

  .banner-actions {
    width: 100%;
    justify-content: space-between;
  }

  .cta-button {
    flex: 1;
    padding: 10px 20px;
    font-size: 14px;
  }
}


/* Error Boundary -- SoundBridge Design System */

/* Full-page error */
.error-boundary-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--sb-space-8);
  background: var(--sb-bg-primary, #F9FAFB);
}

.error-boundary-content {
  max-width: 480px;
  width: 100%;
  background: var(--sb-white, #fff);
  border-radius: var(--sb-radius-2xl, 20px);
  padding: var(--sb-space-12) var(--sb-space-8);
  box-shadow: var(--sb-shadow-lg, 0 4px 12px rgba(0,0,0,0.08));
  border: 1px solid var(--sb-border-light, rgba(0,0,0,0.05));
  text-align: center;
  animation: errorFadeIn 0.5s ease;
}

@keyframes errorFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.error-icon-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: var(--sb-radius-full, 50%);
  background: rgba(255, 59, 48, 0.08);
  color: var(--sb-error, #FF3B30);
  margin-bottom: var(--sb-space-5);
}

.error-boundary-content .error-title {
  font-size: var(--sb-text-2xl, 24px);
  font-weight: 600;
  color: var(--sb-black, #1D1D1F);
  margin: 0 0 var(--sb-space-3);
  letter-spacing: -0.02em;
}

.error-description {
  font-size: var(--sb-text-base, 16px);
  color: var(--sb-gray-500, #8E8E93);
  line-height: 1.55;
  margin: 0 0 var(--sb-space-6);
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

.error-id {
  background: var(--sb-gray-50, #F2F2F7);
  border: 1px solid var(--sb-border-light, rgba(0,0,0,0.05));
  border-radius: var(--sb-radius-lg, 12px);
  padding: var(--sb-space-4);
  margin: 0 0 var(--sb-space-6);
  text-align: left;
}

.error-id strong {
  font-size: var(--sb-text-sm, 14px);
  color: var(--sb-black, #1D1D1F);
}

.error-id-help {
  font-size: var(--sb-text-xs, 12px);
  color: var(--sb-gray-500, #8E8E93);
  margin: var(--sb-space-1) 0 0;
}

/* Dev-only error details */
.error-details-dev {
  margin: 0 0 var(--sb-space-6);
  text-align: left;
  background: var(--sb-gray-50, #F2F2F7);
  border-radius: var(--sb-radius-lg, 12px);
  padding: var(--sb-space-4);
}

.error-details-dev summary {
  cursor: pointer;
  font-weight: 600;
  font-size: var(--sb-text-sm, 14px);
  color: var(--sb-error, #FF3B30);
  padding: var(--sb-space-2);
  user-select: none;
  border-radius: var(--sb-radius-md, 8px);
}

.error-details-dev summary:hover {
  background: rgba(0, 0, 0, 0.04);
}

.error-stack {
  margin-top: var(--sb-space-3);
  font-size: var(--sb-text-xs, 12px);
}

.error-stack p {
  margin: var(--sb-space-2) 0;
  color: var(--sb-black, #1D1D1F);
}

.error-stack pre {
  background: var(--sb-gray-900, #2C2C2E);
  color: var(--sb-gray-100, #E5E5EA);
  padding: var(--sb-space-4);
  border-radius: var(--sb-radius-md, 8px);
  overflow-x: auto;
  font-size: var(--sb-text-xs, 12px);
  font-family: var(--sb-font-mono);
  line-height: 1.5;
  margin: var(--sb-space-2) 0;
}

/* Action buttons */
.error-actions {
  display: flex;
  gap: var(--sb-space-3);
  justify-content: center;
  flex-wrap: wrap;
}

.error-actions .btn-primary,
.error-actions .btn-secondary {
  padding: var(--sb-space-3) var(--sb-space-5);
  border-radius: var(--sb-radius-md, 8px);
  font-size: var(--sb-text-base, 16px);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  font-family: var(--sb-font-family);
}

.error-actions .btn-primary {
  background: var(--sb-primary, #2BB5A0);
  color: var(--sb-white, #fff);
}

.error-actions .btn-primary:hover {
  background: var(--sb-primary-hover, #239E8B);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(43, 181, 160, 0.25);
}

.error-actions .btn-secondary {
  background: rgba(0, 0, 0, 0.04);
  color: var(--sb-black, #1D1D1F);
}

.error-actions .btn-secondary:hover {
  background: rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

/* Inline error boundary */
.error-boundary-inline {
  background: rgba(255, 159, 10, 0.06);
  border: 1px solid rgba(255, 159, 10, 0.2);
  border-radius: var(--sb-radius-lg, 12px);
  padding: var(--sb-space-4);
  margin: var(--sb-space-4) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sb-space-3);
}

.error-boundary-inline .error-content {
  display: flex;
  align-items: center;
  gap: var(--sb-space-3);
  flex: 1;
}

.error-boundary-inline .error-icon {
  flex-shrink: 0;
  color: var(--sb-warning, #FF9F0A);
  display: flex;
}

.error-boundary-inline .error-details {
  flex: 1;
}

.error-boundary-inline .error-title {
  font-size: var(--sb-text-sm, 14px);
  font-weight: 600;
  color: var(--sb-black, #1D1D1F);
  margin: 0 0 2px;
}

.error-boundary-inline .error-message {
  font-size: var(--sb-text-sm, 14px);
  color: var(--sb-gray-600, #636366);
  margin: 0;
}

.error-boundary-inline .error-retry-btn,
.error-boundary-minimal .error-retry-btn {
  background: var(--sb-primary, #2BB5A0);
  color: var(--sb-white, #fff);
  border: none;
  padding: var(--sb-space-2) var(--sb-space-4);
  border-radius: var(--sb-radius-md, 8px);
  font-size: var(--sb-text-sm, 14px);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: var(--sb-font-family);
}

.error-boundary-inline .error-retry-btn:hover,
.error-boundary-minimal .error-retry-btn:hover {
  background: var(--sb-primary-hover, #239E8B);
}

/* Minimal error boundary */
.error-boundary-minimal {
  display: inline-flex;
  align-items: center;
  gap: var(--sb-space-2);
  background: rgba(255, 59, 48, 0.06);
  border: 1px solid rgba(255, 59, 48, 0.15);
  border-radius: var(--sb-radius-md, 8px);
  padding: var(--sb-space-2) var(--sb-space-3);
  font-size: var(--sb-text-sm, 14px);
}

.error-boundary-minimal .error-icon {
  flex-shrink: 0;
  color: var(--sb-error, #FF3B30);
  display: flex;
}

.error-boundary-minimal .error-text {
  color: var(--sb-error, #FF3B30);
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  .error-boundary-container {
    padding: var(--sb-space-4);
    align-items: flex-start;
    padding-top: var(--sb-space-12);
  }

  .error-boundary-content {
    padding: var(--sb-space-8) var(--sb-space-5);
  }

  .error-boundary-content .error-title {
    font-size: var(--sb-text-xl, 20px);
  }

  .error-actions {
    flex-direction: column;
  }

  .error-actions .btn-primary,
  .error-actions .btn-secondary {
    width: 100%;
  }

  .error-boundary-inline {
    flex-direction: column;
    align-items: stretch;
  }

  .error-boundary-inline .error-retry-btn {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .error-boundary-content {
    animation: none;
  }
}

/* SoundBridge Portal Design System */
:root {
  /* Brand Colors — teal/navy from SoundBridge logo */
  --sb-primary: #2BB5A0;
  --sb-primary-hover: #239E8B;
  --sb-primary-pressed: #1A8577;
  --sb-secondary: #142E3E;
  --sb-secondary-hover: #1A3A50;
  --sb-accent: #60D6C4;
  --sb-success: #34C759;
  --sb-success-hover: #30B753;
  --sb-warning: #FF9F0A;
  --sb-error: #FF3B30;
  --sb-error-hover: #E6352B;
  
  /* Neutrals */
  --sb-black: #1D1D1F;
  --sb-gray-900: #2C2C2E;
  --sb-gray-800: #3A3A3C;
  --sb-gray-700: #48484A;
  --sb-gray-600: #636366;
  --sb-gray-500: #8E8E93;
  --sb-gray-400: #AEAEB2;
  --sb-gray-300: #C7C7CC;
  --sb-gray-200: #D1D1D6;
  --sb-gray-100: #E5E5EA;
  --sb-gray-50: #F2F2F7;
  --sb-white: #FFFFFF;
  
  /* Background colors */
  --sb-bg-primary: #F9FAFB;
  --sb-bg-secondary: #FFFFFF;
  --sb-bg-tertiary: #F9FAFB;
  --sb-bg-overlay: rgba(0, 0, 0, 0.5);
  
  /* Border colors */
  --sb-border-light: rgba(0, 0, 0, 0.05);
  --sb-border-medium: rgba(0, 0, 0, 0.1);
  --sb-border-strong: rgba(0, 0, 0, 0.2);
  --sb-border: var(--sb-border-medium);

  /* Aliases for legacy/non-design-system variable names */
  --sb-primary-dark: #1A8577;
  --sb-blue: var(--sb-primary);
  --primary-color: var(--sb-primary);
  --text-primary: var(--sb-black);
  --border-color: var(--sb-border);

  /* Typography */
  --sb-font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sb-font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Courier New", monospace;
  
  /* Font sizes */
  --sb-text-xs: 12px;
  --sb-text-sm: 14px;
  --sb-text-base: 16px;
  --sb-text-lg: 18px;
  --sb-text-xl: 20px;
  --sb-text-2xl: 24px;
  --sb-text-3xl: 30px;
  --sb-text-4xl: 36px;
  
  /* Font weights */
  --sb-font-normal: 400;
  --sb-font-medium: 500;
  --sb-font-semibold: 600;
  --sb-font-bold: 700;
  
  /* Spacing */
  --sb-space-1: 4px;
  --sb-space-2: 8px;
  --sb-space-3: 12px;
  --sb-space-4: 16px;
  --sb-space-5: 20px;
  --sb-space-6: 24px;
  --sb-space-8: 32px;
  --sb-space-10: 40px;
  --sb-space-12: 48px;
  --sb-space-16: 64px;
  --sb-space-20: 80px;
  
  /* Border radius */
  --sb-radius-xs: 4px;
  --sb-radius-sm: 6px;
  --sb-radius-md: 8px;
  --sb-radius-lg: 12px;
  --sb-radius-xl: 16px;
  --sb-radius-2xl: 20px;
  --sb-radius-full: 9999px;
  
  /* Shadows */
  --sb-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --sb-shadow-md: 0 2px 8px rgba(0, 0, 0, 0.06), 0 8px 20px rgba(0, 0, 0, 0.04);
  --sb-shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.08), 0 12px 28px rgba(0, 0, 0, 0.06);
  --sb-shadow-xl: 0 8px 32px rgba(0, 0, 0, 0.1), 0 24px 64px rgba(0, 0, 0, 0.08);
  
  /* Backdrop blur */
  --sb-blur-sm: blur(10px);
  --sb-blur-md: blur(20px);
  --sb-blur-lg: blur(40px);
  
  /* Transitions */
  --sb-transition-fast: 0.15s ease;
  --sb-transition-normal: 0.2s ease;
  --sb-transition-slow: 0.3s ease;
  --sb-transition-spring: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Z-index scale */
  --sb-z-dropdown: 10;
  --sb-z-modal: 1000;
  --sb-z-toast: 2000;
}

/* Base styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--sb-font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--sb-bg-primary);
  min-height: 100vh;
  color: var(--sb-black);
  font-size: var(--sb-text-base);
  line-height: 1.5;
}

/* Button system */
.sb-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sb-space-2);
  padding: var(--sb-space-2) var(--sb-space-4);
  border: none;
  border-radius: var(--sb-radius-md);
  font-family: var(--sb-font-family);
  font-size: var(--sb-text-base);
  font-weight: var(--sb-font-medium);
  cursor: pointer;
  transition: all var(--sb-transition-normal);
  text-decoration: none;
  outline: none;
  position: relative;
  overflow: hidden;
}

.sb-button:focus-visible {
  box-shadow: 0 0 0 3px rgba(43, 181, 160, 0.5);
}

.sb-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Button variants */
.sb-button--primary {
  background-color: var(--sb-primary);
  color: var(--sb-white);
}

.sb-button--primary:hover:not(:disabled) {
  background-color: var(--sb-primary-hover);
}

.sb-button--primary:active {
  background-color: var(--sb-primary-pressed);
  transform: translateY(0);
}

.sb-button--secondary {
  background-color: var(--sb-secondary);
  color: var(--sb-white);
}

.sb-button--secondary:hover:not(:disabled) {
  background-color: var(--sb-secondary-hover);
}

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

.sb-button--success:hover:not(:disabled) {
  background-color: var(--sb-success-hover);
}

.sb-button--danger {
  background-color: var(--sb-error);
  color: var(--sb-white);
}

.sb-button--danger:hover:not(:disabled) {
  background-color: var(--sb-error-hover);
}

.sb-button--ghost {
  background-color: rgba(0, 0, 0, 0.04);
  color: var(--sb-black);
}

.sb-button--ghost:hover:not(:disabled) {
  background-color: rgba(0, 0, 0, 0.06);
}

.sb-button--text {
  background-color: transparent;
  color: var(--sb-primary);
  padding: var(--sb-space-2);
}

.sb-button--text:hover:not(:disabled) {
  background-color: rgba(43, 181, 160, 0.1);
}

/* Button sizes */
.sb-button--xs {
  padding: var(--sb-space-1) var(--sb-space-2);
  font-size: var(--sb-text-xs);
  border-radius: var(--sb-radius-sm);
}

.sb-button--sm {
  padding: var(--sb-space-2) var(--sb-space-3);
  font-size: var(--sb-text-sm);
}

.sb-button--lg {
  padding: var(--sb-space-3) var(--sb-space-6);
  font-size: var(--sb-text-lg);
}

/* Modal system */
.sb-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--sb-bg-overlay);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: var(--sb-z-modal);
  backdrop-filter: var(--sb-blur-sm);
  -webkit-backdrop-filter: var(--sb-blur-sm);
  animation: modalOverlayAppear var(--sb-transition-normal);
}

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

.sb-modal-content {
  background: var(--sb-white);
  border-radius: var(--sb-radius-xl);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--sb-space-6);
  box-shadow: var(--sb-shadow-xl);
  border: 1px solid var(--sb-border-light);
  animation: modalContentAppear var(--sb-transition-spring);
}

@keyframes modalContentAppear {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.sb-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sb-space-6);
  padding-bottom: var(--sb-space-4);
  border-bottom: 1px solid var(--sb-border-light);
}

.sb-modal-title {
  margin: 0;
  font-size: var(--sb-text-2xl);
  font-weight: var(--sb-font-semibold);
  color: var(--sb-black);
  letter-spacing: -0.02em;
}

.sb-modal-close {
  background: none;
  border: none;
  width: var(--sb-space-8);
  height: var(--sb-space-8);
  border-radius: var(--sb-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--sb-transition-normal);
  color: var(--sb-gray-500);
  font-size: var(--sb-text-lg);
}

.sb-modal-close:hover {
  background-color: rgba(0, 0, 0, 0.06);
  color: var(--sb-black);
}

.sb-modal-body {
  margin-bottom: var(--sb-space-6);
}

.sb-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--sb-space-3);
  padding-top: var(--sb-space-4);
  border-top: 1px solid var(--sb-border-light);
}

/* Form elements */
.sb-form-group {
  margin-bottom: var(--sb-space-5);
}

.sb-label {
  display: block;
  margin-bottom: var(--sb-space-2);
  font-size: var(--sb-text-sm);
  font-weight: var(--sb-font-medium);
  color: var(--sb-black);
}

.sb-input,
.sb-textarea,
.sb-select {
  width: 100%;
  padding: var(--sb-space-3);
  border: 1px solid var(--sb-border-medium);
  border-radius: var(--sb-radius-md);
  font-family: var(--sb-font-family);
  font-size: var(--sb-text-base);
  color: var(--sb-black);
  background-color: var(--sb-white);
  transition: all var(--sb-transition-normal);
}

.sb-input:focus,
.sb-textarea:focus,
.sb-select:focus {
  outline: none;
  border-color: var(--sb-primary);
  box-shadow: 0 0 0 3px rgba(43, 181, 160, 0.15);
}

.sb-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width=%2712%27 height=%2712%27 viewBox=%270 0 12 12%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27M2.5 4.5L6 8L9.5 4.5%27 stroke=%27%231d1d1f%27 stroke-width=%271.5%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sb-space-3) center;
  padding-right: var(--sb-space-10);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.sb-checkbox {
  display: flex;
  align-items: center;
  gap: var(--sb-space-2);
  cursor: pointer;
}

.sb-checkbox input[type="checkbox"] {
  width: var(--sb-space-4);
  height: var(--sb-space-4);
  margin: 0;
  cursor: pointer;
}

/* Card system */
.sb-card {
  background: var(--sb-white);
  border-radius: var(--sb-radius-xl);
  padding: var(--sb-space-5);
  box-shadow: var(--sb-shadow-sm);
  border: 1px solid var(--sb-border-light);
  transition: box-shadow var(--sb-transition-normal);
}

.sb-card:hover {
  box-shadow: var(--sb-shadow-md);
}

.sb-card--interactive {
  cursor: pointer;
}

.sb-card--flat {
  box-shadow: none;
  border: 1px solid var(--sb-gray-100);
}

.sb-card--flat:hover {
  box-shadow: var(--sb-shadow-sm);
}

/* Status indicators */
.sb-status {
  display: inline-flex;
  align-items: center;
  gap: var(--sb-space-2);
  padding: var(--sb-space-1) var(--sb-space-3);
  border-radius: var(--sb-radius-full);
  font-size: var(--sb-text-sm);
  font-weight: var(--sb-font-medium);
}

.sb-status--success {
  background-color: rgba(52, 199, 89, 0.1);
  color: var(--sb-success);
}

.sb-status--error {
  background-color: rgba(255, 59, 48, 0.1);
  color: var(--sb-error);
}

.sb-status--warning {
  background-color: rgba(255, 159, 10, 0.1);
  color: var(--sb-warning);
}

.sb-status--info {
  background-color: rgba(43, 181, 160, 0.1);
  color: var(--sb-primary);
}

.sb-status--neutral {
  background-color: rgba(142, 142, 147, 0.1);
  color: var(--sb-gray-500);
}

.sb-status-dot {
  width: var(--sb-space-2);
  height: var(--sb-space-2);
  border-radius: var(--sb-radius-full);
  background-color: currentColor;
}

.sb-status-dot--pulse {
  animation: statusPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Loading states */
.sb-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--sb-space-10);
  gap: var(--sb-space-4);
}

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

.sb-spinner--sm {
  width: var(--sb-space-4);
  height: var(--sb-space-4);
  border-width: 2px;
}

.sb-spinner--lg {
  width: var(--sb-space-16);
  height: var(--sb-space-16);
  border-width: 4px;
}

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

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Skeleton loading */
.sb-skeleton {
  background: var(--sb-gray-100);
  border-radius: var(--sb-radius-sm);
  position: relative;
  overflow: hidden;
}

.sb-skeleton::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

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

/* Alert system */
.sb-alert {
  padding: var(--sb-space-4);
  border-radius: var(--sb-radius-lg);
  margin-bottom: var(--sb-space-4);
  display: flex;
  align-items: flex-start;
  gap: var(--sb-space-3);
}

.sb-alert--success {
  background-color: rgba(52, 199, 89, 0.08);
  border: 1px solid rgba(52, 199, 89, 0.2);
  color: var(--sb-success);
}

.sb-alert--error {
  background-color: rgba(255, 59, 48, 0.08);
  border: 1px solid rgba(255, 59, 48, 0.2);
  color: var(--sb-error);
}

.sb-alert--warning {
  background-color: rgba(255, 159, 10, 0.08);
  border: 1px solid rgba(255, 159, 10, 0.2);
  color: var(--sb-warning);
}

.sb-alert--info {
  background-color: rgba(43, 181, 160, 0.08);
  border: 1px solid rgba(43, 181, 160, 0.2);
  color: var(--sb-primary);
}

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

.sb-alert-title {
  font-weight: var(--sb-font-semibold);
  margin-bottom: var(--sb-space-1);
}

.sb-alert-message {
  font-size: var(--sb-text-sm);
  line-height: 1.4;
}

.sb-alert-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  margin-top: 1px;
}

.sb-alert-dismiss {
  flex-shrink: 0;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: var(--sb-space-1);
  border-radius: var(--sb-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity var(--sb-transition-fast);
}

.sb-alert-dismiss:hover {
  opacity: 1;
}

.sb-alert-actions {
  display: flex;
  gap: var(--sb-space-2);
  margin-top: var(--sb-space-3);
}

/* Utility classes */
.sb-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sb-text-center { text-align: center; }
.sb-text-left { text-align: left; }
.sb-text-right { text-align: right; }

.sb-font-mono { font-family: var(--sb-font-mono); }

.sb-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sb-flex { display: flex; }
.sb-flex-col { flex-direction: column; }
.sb-items-center { align-items: center; }
.sb-justify-center { justify-content: center; }
.sb-justify-between { justify-content: space-between; }
.sb-gap-1 { gap: var(--sb-space-1); }
.sb-gap-2 { gap: var(--sb-space-2); }
.sb-gap-3 { gap: var(--sb-space-3); }
.sb-gap-4 { gap: var(--sb-space-4); }

.sb-w-full { width: 100%; }
.sb-h-full { height: 100%; }

.sb-p-0 { padding: 0; }
.sb-p-1 { padding: var(--sb-space-1); }
.sb-p-2 { padding: var(--sb-space-2); }
.sb-p-3 { padding: var(--sb-space-3); }
.sb-p-4 { padding: var(--sb-space-4); }
.sb-p-5 { padding: var(--sb-space-5); }
.sb-p-6 { padding: var(--sb-space-6); }

.sb-m-0 { margin: 0; }
.sb-m-1 { margin: var(--sb-space-1); }
.sb-m-2 { margin: var(--sb-space-2); }
.sb-m-3 { margin: var(--sb-space-3); }
.sb-m-4 { margin: var(--sb-space-4); }
.sb-m-5 { margin: var(--sb-space-5); }
.sb-m-6 { margin: var(--sb-space-6); }

.sb-mb-0 { margin-bottom: 0; }
.sb-mb-1 { margin-bottom: var(--sb-space-1); }
.sb-mb-2 { margin-bottom: var(--sb-space-2); }
.sb-mb-3 { margin-bottom: var(--sb-space-3); }
.sb-mb-4 { margin-bottom: var(--sb-space-4); }
.sb-mb-5 { margin-bottom: var(--sb-space-5); }
.sb-mb-6 { margin-bottom: var(--sb-space-6); }

.sb-mt-0 { margin-top: 0; }
.sb-mt-1 { margin-top: var(--sb-space-1); }
.sb-mt-2 { margin-top: var(--sb-space-2); }
.sb-mt-3 { margin-top: var(--sb-space-3); }
.sb-mt-4 { margin-top: var(--sb-space-4); }
.sb-mt-5 { margin-top: var(--sb-space-5); }
.sb-mt-6 { margin-top: var(--sb-space-6); }

/* Page Header System */
.sb-page-header {
  background: var(--sb-white);
  border-bottom: 1px solid var(--sb-gray-100);
  padding: var(--sb-space-8) var(--sb-space-8) var(--sb-space-6);
  position: relative;
}

.sb-page-header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sb-space-6);
}

.sb-page-header-text {
  flex: 1;
}

.sb-page-title {
  font-size: var(--sb-text-4xl);
  font-weight: 700;
  color: var(--sb-black);
  margin: 0 0 var(--sb-space-3) 0;
  letter-spacing: -0.022em;
  line-height: 1.05;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.sb-page-subtitle {
  font-size: var(--sb-text-lg);
  color: var(--sb-gray-600);
  margin: 0;
  line-height: 1.47;
  max-width: 500px;
  font-weight: 400;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.sb-page-header-actions {
  display: flex;
  gap: var(--sb-space-3);
  align-items: center;
  flex-shrink: 0;
}


/* Page Header Responsive Design */
@media (max-width: 1024px) {
  .sb-page-header-content {
    flex-direction: column;
    gap: var(--sb-space-4);
  }
  
  .sb-page-header-actions {
    align-self: stretch;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .sb-page-header {
    padding: var(--sb-space-6) var(--sb-space-4);
  }
  
  .sb-page-title {
    font-size: var(--sb-text-3xl);
  }
  
  .sb-page-subtitle {
    font-size: var(--sb-text-base);
  }
}

@media (max-width: 480px) {
  .sb-page-header-actions .sb-button {
    width: 100%;
    justify-content: center;
  }
}

/* High Contrast Mode Support for Page Headers */
@media (prefers-contrast: high) {
  .sb-page-header {
    border-bottom: 2px solid #1d1d1f;
  }
}

/* Responsive utilities */
@media (max-width: 640px) {
  .sb-modal-content {
    width: 95%;
    padding: var(--sb-space-4);
  }

  .sb-modal-footer {
    flex-direction: column;
  }

  .sb-button {
    width: 100%;
    justify-content: center;
  }
}

/* Navigation Enhancement Styles */

/* Dashboard Button Styles */
.dashboard-button {
  background: var(--sb-bg-secondary);
  border: 1px solid var(--sb-border-light);
  color: var(--sb-black);
  font-size: var(--sb-text-sm);
  font-weight: var(--sb-font-medium);
  cursor: pointer;
  padding: var(--sb-space-3) var(--sb-space-4);
  border-radius: var(--sb-radius-lg);
  transition: all var(--sb-transition-normal);
  font-family: var(--sb-font-family);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  backdrop-filter: var(--sb-blur-sm);
  box-shadow: var(--sb-shadow-sm);
}

.dashboard-button:hover {
  background: var(--sb-white);
  border-color: var(--sb-primary);
  color: var(--sb-primary);
  transform: translateY(-1px);
  box-shadow: var(--sb-shadow-md);
}

.dashboard-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(43, 181, 160, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .dashboard-button {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-button:hover {
    transform: none;
  }
}

/* Toast Notification System */
.sb-toast-container {
  position: fixed;
  top: var(--sb-space-5);
  right: var(--sb-space-5);
  z-index: var(--sb-z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--sb-space-3);
  pointer-events: none;
  max-width: 420px;
  width: 100%;
}

.sb-toast {
  display: flex;
  align-items: flex-start;
  gap: var(--sb-space-3);
  padding: var(--sb-space-4);
  border-radius: var(--sb-radius-lg);
  background: var(--sb-white);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--sb-border-light);
  pointer-events: auto;
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.sb-toast--exit {
  animation: toastSlideOut 0.3s cubic-bezier(0.4, 0, 1, 1) forwards;
}

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

@keyframes toastSlideOut {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateX(40px) scale(0.95);
  }
}

/* Type-specific left border accent */
.sb-toast--success {
  border-left: 3px solid var(--sb-success);
}

.sb-toast--error {
  border-left: 3px solid var(--sb-error);
}

.sb-toast--warning {
  border-left: 3px solid var(--sb-warning);
}

.sb-toast--info {
  border-left: 3px solid var(--sb-primary);
}

/* Icon */
.sb-toast-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--sb-radius-md);
  margin-top: 1px;
}

.sb-toast--success .sb-toast-icon {
  background: rgba(52, 199, 89, 0.1);
  color: var(--sb-success);
}

.sb-toast--error .sb-toast-icon {
  background: rgba(255, 59, 48, 0.1);
  color: var(--sb-error);
}

.sb-toast--warning .sb-toast-icon {
  background: rgba(255, 159, 10, 0.1);
  color: var(--sb-warning);
}

.sb-toast--info .sb-toast-icon {
  background: rgba(43, 181, 160, 0.1);
  color: var(--sb-primary);
}

/* Body */
.sb-toast-body {
  flex: 1;
  min-width: 0;
}

.sb-toast-title {
  font-size: var(--sb-text-sm);
  font-weight: var(--sb-font-semibold);
  color: var(--sb-black);
  margin-bottom: 2px;
  line-height: 1.3;
}

.sb-toast-message {
  font-size: var(--sb-text-sm);
  color: var(--sb-gray-600);
  line-height: 1.4;
  word-break: break-word;
}

/* Dismiss button */
.sb-toast-dismiss {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: none;
  background: none;
  border-radius: var(--sb-radius-sm);
  cursor: pointer;
  color: var(--sb-gray-400);
  transition: all var(--sb-transition-fast);
  padding: 0;
  margin-top: 1px;
}

.sb-toast-dismiss:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--sb-gray-700);
}

/* Responsive */
@media (max-width: 480px) {
  .sb-toast-container {
    top: var(--sb-space-3);
    right: var(--sb-space-3);
    left: var(--sb-space-3);
    max-width: none;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .sb-toast {
    animation-duration: 0.01ms;
  }
  .sb-toast--exit {
    animation-duration: 0.01ms;
  }
}

/* App-specific overrides - main design system is in design-system.css */

/* Body styles are handled by design-system.css */

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sb-space-4) var(--sb-space-8);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: var(--sb-blur-md);
  -webkit-backdrop-filter: var(--sb-blur-md);
  border-bottom: 1px solid var(--sb-border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sb-space-3);
}

.app-title {
  display: flex;
  align-items: center;
  gap: var(--sb-space-3);
  transition: all var(--sb-transition-normal);
}

/* Removed hover transform that was causing menu positioning issues */
/* .app-title:hover {
  transform: translateY(-1px);
} */

.logo-link {
  display: flex;
  align-items: center;
  gap: var(--sb-space-3);
  text-decoration: none;
  color: inherit;
}

.download-button {
  background: var(--sb-primary);
  color: var(--sb-white);
  border: none;
  padding: var(--sb-space-3) var(--sb-space-5);
  border-radius: var(--sb-radius-lg);
  font-weight: var(--sb-font-semibold);
  cursor: pointer;
  transition: background var(--sb-transition-normal);
  font-size: var(--sb-text-sm);
  display: flex;
  align-items: center;
  gap: var(--sb-space-2);
  font-family: var(--sb-font-family);
}

.download-button:hover {
  background: var(--sb-primary-hover);
}

.header-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.app-header h1 {
  font-size: var(--sb-text-2xl);
  font-weight: var(--sb-font-bold);
  margin: 0;
  color: var(--sb-black);
  letter-spacing: -0.02em;
}

.sign-out {
  background: none;
  border: none;
  color: var(--sb-primary);
  font-size: var(--sb-text-base);
  font-weight: var(--sb-font-medium);
  cursor: pointer;
  padding: var(--sb-space-2) var(--sb-space-4);
  border-radius: var(--sb-radius-md);
  transition: all var(--sb-transition-normal);
  font-family: var(--sb-font-family);
}

.sign-out:hover {
  background: rgba(43, 181, 160, 0.1);
}

.app-content {
  flex: 1;
  width: 100%;
  box-sizing: border-box;
  background: transparent;
}

.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  color: var(--sb-gray-500);
  font-size: var(--sb-text-base);
}

/* Custom Login Page - Amplify styles removed as we now use custom LoginPage component */

.manage-orgs-button {
  background: var(--sb-white);
  border: 1px solid var(--sb-gray-200);
  color: var(--sb-black);
  font-size: var(--sb-text-sm);
  font-weight: var(--sb-font-medium);
  cursor: pointer;
  padding: var(--sb-space-3) var(--sb-space-4);
  border-radius: var(--sb-radius-lg);
  transition: border-color var(--sb-transition-normal), color var(--sb-transition-normal);
  font-family: var(--sb-font-family);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.manage-orgs-button:hover {
  border-color: var(--sb-primary);
  color: var(--sb-primary);
}

.dashboard-button {
  background: var(--sb-white);
  border: 1px solid var(--sb-gray-200);
  color: var(--sb-black);
  font-size: var(--sb-text-sm);
  font-weight: var(--sb-font-medium);
  cursor: pointer;
  padding: var(--sb-space-3) var(--sb-space-4);
  border-radius: var(--sb-radius-lg);
  transition: border-color var(--sb-transition-normal), color var(--sb-transition-normal);
  font-family: var(--sb-font-family);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.dashboard-button:hover {
  border-color: var(--sb-primary);
  color: var(--sb-primary);
}

.dashboard-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(43, 181, 160, 0.3);
}

/* Enhanced Navigation Styles */
.header-nav {
  display: flex;
  align-items: center;
  gap: var(--sb-space-2);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: var(--sb-space-2) var(--sb-space-3);
  border-radius: var(--sb-radius-md);
  text-decoration: none;
  color: var(--sb-gray-600);
  font-size: var(--sb-text-sm);
  font-weight: var(--sb-font-medium);
  transition: all var(--sb-transition-normal);
  position: relative;
}

.nav-link:hover {
  color: var(--sb-primary);
  background: rgba(43, 181, 160, 0.06);
}

.nav-link.active {
  color: var(--sb-primary);
  background: rgba(43, 181, 160, 0.1);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--sb-primary);
  border-radius: 1px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .app-header {
    padding: var(--sb-space-4);
    flex-direction: column;
    gap: var(--sb-space-4);
    align-items: stretch;
    margin-bottom: 20px;
  }

  .header-actions {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .app-title {
    justify-content: center;
  }
  
  .download-button,
  .manage-orgs-button {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .app-header {
    padding: var(--sb-space-3);
  }
  
  .header-actions {
    flex-direction: column;
    gap: var(--sb-space-2);
  }
  
  .app-header h1 {
    font-size: var(--sb-text-xl);
  }
  
  .header-logo {
    height: 40px;
  }
}

/* Loading Animation Enhancements */
.loading {
  animation: fadeIn 0.5s ease-out;
}

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

/* Header Animation */
.app-header {
  animation: slideDown 0.3s ease-out;
}

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

/* Focus Improvements */
.download-button:focus-visible,
.manage-orgs-button:focus-visible,
.sign-out:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(43, 181, 160, 0.3);
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .app-header {
    border-bottom: 2px solid var(--sb-black);
  }
  
  .download-button {
    border: 2px solid var(--sb-primary);
  }
  
  .manage-orgs-button {
    border: 2px solid var(--sb-border-strong);
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .app-header {
    animation: none;
  }
}

/* Breadcrumb */
.app-breadcrumb {
  padding: var(--sb-space-3) var(--sb-space-6) 0;
  max-width: 1200px;
  margin: 0 auto;
  font-size: var(--sb-text-sm);
  display: flex;
  align-items: center;
  gap: var(--sb-space-2);
}

.app-breadcrumb-link {
  color: var(--sb-primary);
  text-decoration: none;
  transition: color var(--sb-transition-fast);
}

.app-breadcrumb-link:hover {
  color: var(--sb-primary-hover);
}

.app-breadcrumb-separator {
  color: var(--sb-gray-400);
}

.app-breadcrumb-current {
  color: var(--sb-gray-600);
}

/* 404 Page */
.app-not-found {
  text-align: center;
  padding: var(--sb-space-20) var(--sb-space-5);
}

.app-not-found-code {
  font-size: 4rem;
  font-weight: 700;
  color: var(--sb-black);
  margin: 0 0 var(--sb-space-2) 0;
  line-height: 1;
}

.app-not-found-message {
  color: var(--sb-gray-500);
  font-size: var(--sb-text-lg);
  margin: 0 0 var(--sb-space-6) 0;
}

.app-not-found-link {
  text-decoration: none;
  display: inline-block;
}

/* Global Footer */
.app-footer {
  border-top: 1px solid var(--sb-border-light);
  padding: var(--sb-space-4) var(--sb-space-6);
  margin-top: auto;
  background: var(--sb-bg-secondary);
}

.app-footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.app-footer-brand {
  font-size: var(--sb-text-sm);
  color: var(--sb-gray-500);
  font-weight: var(--sb-font-medium);
}

.app-footer-links {
  display: flex;
  gap: var(--sb-space-4);
}

.app-footer-link {
  font-size: var(--sb-text-sm);
  color: var(--sb-gray-500);
  text-decoration: none;
  transition: color var(--sb-transition-fast);
}

.app-footer-link:hover {
  color: var(--sb-primary);
}

@media (max-width: 480px) {
  .app-footer-content {
    flex-direction: column;
    gap: var(--sb-space-2);
    text-align: center;
  }
}

