/* ================================
   Direxyon App Portal
   Brand-aligned design with Satoshi font
   ================================ */

/* --------------------------------
   Font Definitions
   -------------------------------- */
@font-face {
  font-family: 'Satoshi';
  src: url('fonts/Satoshi-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Satoshi';
  src: url('fonts/Satoshi-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Satoshi';
  src: url('fonts/Satoshi-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------
   CSS Variables - Brand Colors
   -------------------------------- */
:root {
  /* Primary Brand Colors */
  --primary-dark: #003067;
  --primary-accent: #0069D9;
  --primary-accent-hover: #0058b8;
  
  /* Neutral Palette */
  --white: #ffffff;
  --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;
  
  /* Semantic Colors */
  --success: #059669;
  --success-light: #d1fae5;
  --warning: #d97706;
  --warning-light: #fef3c7;
  --error: #dc2626;
  --error-light: #fee2e2;
  --info: #0284c7;
  --info-light: #e0f2fe;
  
  /* Environment Colors */
  --env-production: #059669;
  --env-preproduction: #d97706;
  --env-development: #0069D9;
  --env-training: #7c3aed;
  --env-demo: #db2777;
  --env-other: #6b7280;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --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);
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition: 200ms ease;
  --transition-slow: 300ms ease;
  
  /* Theme-aware colors (light mode defaults) */
  --bg-primary: var(--white);
  --bg-secondary: var(--gray-50);
  --bg-tertiary: var(--gray-100);
  --bg-page: linear-gradient(180deg, var(--gray-50) 0%, var(--gray-100) 100%);
  --text-primary: var(--gray-900);
  --text-secondary: var(--gray-700);
  --text-muted: var(--gray-500);
  --border-primary: var(--gray-200);
  --border-secondary: var(--gray-300);
  --card-bg: var(--white);
  --card-bg-hover: var(--white);
  --input-bg: var(--white);
}

/* --------------------------------
   Dark Mode Theme (Brand-Aligned)
   Derived from Primary Dark #003067
   -------------------------------- */
[data-theme="dark"] {
  /* Backgrounds derived from #003067 */
  --bg-primary: #001a38;
  --bg-secondary: #002451;
  --bg-tertiary: #003067;
  --bg-page: linear-gradient(180deg, #001a38 0%, #002451 100%);
  
  /* Text colors for contrast on dark blue */
  --text-primary: #f0f6ff;
  --text-secondary: #c5d8f0;
  --text-muted: #8aa8cc;
  
  /* Borders with brand tint */
  --border-primary: #004080;
  --border-secondary: #0058b0;
  
  /* Cards with subtle brand tint */
  --card-bg: #002451;
  --card-bg-hover: #003067;
  --input-bg: #002451;
  
  /* Lightened brand colors for visibility on dark backgrounds */
  --primary-accent: #4d9bff;
  --primary-accent-hover: #7ab5ff;
  --primary-dark: #7ab5ff;
  
  /* Environment colors (brightened for dark mode) */
  --env-production: #34d399;
  --env-preproduction: #fbbf24;
  --env-development: #4d9bff;
  --env-training: #a78bfa;
  --env-demo: #f472b6;
  --env-other: #9ca3af;
  
  /* Shadows for dark mode */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.4);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.5), 0 1px 2px -1px rgb(0 0 0 / 0.5);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.5), 0 2px 4px -2px rgb(0 0 0 / 0.5);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5), 0 4px 6px -4px rgb(0 0 0 / 0.5);
}

/* --------------------------------
   Base Styles
   -------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background var(--transition), color var(--transition);
}

/* --------------------------------
   Layout
   -------------------------------- */
.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  flex: 1;
}

/* --------------------------------
   Header
   -------------------------------- */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  background: var(--bg-secondary);
  border-radius: 0 0 var(--radius) var(--radius);
  margin: 0 -24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
  transition: background var(--transition), border-color var(--transition);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 36px;
  width: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-details {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.user-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
}

.user-email {
  font-size: 13px;
  color: var(--text-muted);
}

.btn-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  font-family: 'Satoshi', sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-logout:hover {
  background: var(--bg-tertiary);
  border-color: var(--primary-accent);
  color: var(--primary-accent);
}

/* --------------------------------
   Theme & Language Toggle
   -------------------------------- */
.btn-theme,
.btn-lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-secondary);
  padding: 0 14px;
  border-radius: var(--radius-sm);
  font-family: 'Satoshi', sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-theme {
  padding: 0 10px;
}

.btn-theme:hover,
.btn-lang:hover {
  background: var(--bg-tertiary);
  border-color: var(--primary-accent);
  color: var(--primary-accent);
}

.globe-icon {
  font-size: 14px;
  line-height: 1;
}

/* --------------------------------
   Loading State
   -------------------------------- */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 400px;
  gap: 24px;
}

/* Suppress the loading spinner when a localStorage app cache exists; the
   inline head script in index.html sets this attribute synchronously so
   we never flash a spinner before the JS-rendered cached list paints. */
html[data-apps-cache-warm] #loading {
  display: none;
}

.loading p {
  font-size: 15px;
  color: var(--text-muted);
}

.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--border-secondary);
  border-top-color: var(--primary-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --------------------------------
   Hidden Utility
   -------------------------------- */
.hidden {
  display: none !important;
}

/* --------------------------------
   Error & Empty States
   -------------------------------- */
.error,
.no-apps {
  text-align: center;
  padding: 80px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.error h2,
.no-apps h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.error p,
.no-apps p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 8px;
  max-width: 400px;
}

/* --------------------------------
   Buttons
   -------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: 'Satoshi', sans-serif;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  margin-top: 16px;
}

.btn-primary {
  background: var(--primary-accent);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-accent-hover);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--gray-600);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--gray-700);
}

/* --------------------------------
   Welcome Section
   -------------------------------- */
.welcome-section {
  text-align: center;
  padding: 48px 24px 32px;
}

.welcome-section h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.welcome-section p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* --------------------------------
   Search Bar
   -------------------------------- */
.search-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 0 24px 32px;
}

.btn-refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--input-bg);
  border: 1px solid var(--border-secondary);
  border-radius: 9999px;
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.btn-refresh:hover:not(:disabled) {
  border-color: var(--primary-accent);
  color: var(--primary-accent);
}

.btn-refresh:disabled {
  cursor: wait;
  opacity: 0.7;
}

.btn-refresh.is-refreshing svg {
  animation: btn-refresh-spin 0.9s linear infinite;
}

@keyframes btn-refresh-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 480px;
  height: 44px;
  padding: 0 14px;
  background: var(--input-bg);
  border: 1px solid var(--border-secondary);
  border-radius: 9999px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.search-wrapper:hover {
  border-color: var(--primary-accent);
}

.search-wrapper:focus-within {
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 3px rgba(0, 105, 217, 0.15);
}

.search-icon {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: color var(--transition);
}

.search-wrapper:focus-within .search-icon {
  color: var(--primary-accent);
}

.search-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 12px;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Satoshi', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.search-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.search-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition);
}

.search-clear:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.search-clear svg {
  stroke: currentColor;
}

/* --------------------------------
   App Groups
   -------------------------------- */
.app-groups {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-bottom: 24px;
}

.app-group {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.app-group-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-secondary);
  cursor: pointer;
  user-select: none;
  transition: border-color var(--transition), margin-bottom 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.app-group-header:focus-visible {
  outline: 2px solid var(--primary-accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.app-group-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
  padding: 0;
  border: none;
}

/* Environment title colors with dot indicator */
.app-group-title::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
}

.env-Production .app-group-title { color: var(--env-production); }
.env-Production .app-group-header { border-bottom-color: var(--env-production); }

.env-PreProduction .app-group-title { color: var(--env-preproduction); }
.env-PreProduction .app-group-header { border-bottom-color: var(--env-preproduction); }

.env-Development .app-group-title { color: var(--env-development); }
.env-Development .app-group-header { border-bottom-color: var(--env-development); }

.env-Training .app-group-title { color: var(--env-training); }
.env-Training .app-group-header { border-bottom-color: var(--env-training); }

.env-Demo .app-group-title { color: var(--env-demo); }
.env-Demo .app-group-header { border-bottom-color: var(--env-demo); }

.env-Other .app-group-title { color: var(--env-other); }
.env-Other .app-group-header { border-bottom-color: var(--env-other); }

/* --------------------------------
   Collapse Chevron
   -------------------------------- */
.app-group-collapse-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #0069D9;
  color: var(--white);
  border-radius: 50%;
  flex-shrink: 0;
  transition: background var(--transition);
}

.app-group-header:hover .app-group-collapse-icon {
  background: var(--primary-accent-hover);
}

/* Chevron rotation — its own transition, independent of the filter/fade transitions */
.app-group-collapse-icon svg {
  width: 14px;
  height: 14px;
  stroke: var(--white);
  transform-origin: 50% 50%;
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.app-group.collapsed .app-group-collapse-icon svg {
  transform: rotate(-90deg);
}

.app-group.collapsed .app-group-header {
  margin-bottom: 0;
}

/* --------------------------------
   App Grid
   -------------------------------- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  max-height: 4000px;
  opacity: 1;
  overflow: hidden;
  /* Collapse/expand easing — shared with chevron rotation for a unified feel */
  transition: max-height 300ms cubic-bezier(0.4, 0, 0.2, 1), opacity 200ms ease;
}

.app-group.collapsed .app-grid {
  max-height: 0;
  opacity: 0;
}

/* --------------------------------
   Filtering (search)
   -------------------------------- */
.app-card {
  animation: fadeInUp 220ms ease;
  transition: opacity 220ms ease, transform 220ms ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.app-card.filter-hiding {
  opacity: 0;
  transform: scale(0.94);
  pointer-events: none;
}

.app-card.filter-hidden {
  display: none;
}

.app-group {
  transition: opacity 260ms ease, transform 260ms ease;
}

.app-group.group-hiding {
  opacity: 0;
  transform: scale(0.985);
  pointer-events: none;
}

.app-group.group-hidden {
  display: none;
}

/* --------------------------------
   App Card
   -------------------------------- */
.app-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  border: 1px solid var(--border-secondary);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.app-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary-accent);
  opacity: 0;
  transition: opacity var(--transition);
}

.app-card:hover {
  background: var(--card-bg-hover);
  border-color: var(--primary-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.app-card:hover::before {
  opacity: 1;
}

.app-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.app-name-link {
  display: flex;
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.app-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.app-launch-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--primary-accent);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
  text-decoration: none;
}

.app-launch-btn svg {
  width: 14px;
  height: 14px;
  stroke: var(--white);
  stroke-width: 2.5;
}

.app-launch-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
}

.launch-icon {
  width: 14px;
  height: 14px;
  color: var(--white);
}

/* Force Login Button */
.app-force-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-secondary);
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.app-force-login-btn svg {
  stroke: var(--text-secondary);
}

.app-force-login-btn:hover {
  background: var(--primary-accent);
  border-color: var(--primary-accent);
  transform: scale(1.1);
}

.app-force-login-btn:hover svg {
  stroke: var(--white);
}

/* --------------------------------
   Support Section
   -------------------------------- */
.support-section {
  margin-top: 48px;
  margin-bottom: 48px;
  padding: 32px;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.support-section h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.support-section > p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
}

.support-contacts {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.support-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.support-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  font-size: 20px;
}

.support-item strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.support-item a {
  font-size: 14px;
  color: var(--primary-accent);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
}

.support-item a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* --------------------------------
   Responsive Design
   -------------------------------- */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .footer {
    padding: 16px;
  }
  
  .header {
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    margin: 0 -16px;
    position: relative;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .user-info {
    flex-direction: row-reverse;
    gap: 12px;
  }
  
  .user-details {
    align-items: flex-start;
  }

  .welcome-section {
    padding: 32px 16px 24px;
  }

  .welcome-section h1 {
    font-size: 24px;
  }

  .welcome-section p {
    font-size: 15px;
  }

  .search-section {
    padding: 0 16px 24px;
  }

  .app-grid {
    grid-template-columns: 1fr;
  }

  .app-group {
    padding: 20px 16px;
  }

  .support-section {
    padding: 24px 16px;
    margin-top: 32px;
    margin-bottom: 32px;
  }

  .support-contacts {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  
  .support-item {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .app-card {
    padding: 14px 16px;
  }
  
  .app-name {
    font-size: 14px;
  }
  
  .btn-logout,
  .btn-theme,
  .btn-lang {
    padding: 6px 12px;
    font-size: 13px;
  }

  .footer-content {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .btn-footer {
    height: 28px;
    padding: 0 10px;
    font-size: 12px;
  }
}

/* --------------------------------
   Focus States (Accessibility)
   -------------------------------- */
.btn:focus-visible,
.btn-logout:focus-visible,
.btn-theme:focus-visible,
.btn-lang:focus-visible,
.app-card:focus-visible {
  outline: 2px solid var(--primary-accent);
  outline-offset: 2px;
}

/* --------------------------------
   Footer
   -------------------------------- */
.footer {
  margin-top: auto;
  padding: 16px 24px;
  border-top: 1px solid var(--border-primary);
  background: var(--bg-secondary);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-actions {
  display: flex;
  gap: 8px;
}

.btn-footer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  background: transparent;
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-sm);
  font-family: 'Satoshi', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-footer:hover {
  background: var(--bg-tertiary);
  border-color: var(--primary-accent);
  color: var(--primary-accent);
}

.btn-footer svg {
  stroke: currentColor;
}

/* --------------------------------
   Print Styles
   -------------------------------- */
@media print {
  .header,
  .footer,
  .support-section {
    display: none;
  }
  
  body {
    background: white;
  }
  
  .app-card {
    break-inside: avoid;
  }
}

