/* AtalmenPay - Authentic Swiss Design System (International Typographic Style 2026) */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@600;700;800&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons+Round');

:root {
  /* Canvas & Surfaces */
  --bg-app: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-muted: #f8fafc;

  /* Sidebar Dark Theme (CobroPro Deep Charcoal) */
  --bg-sidebar: #0c0c0e;
  --bg-sidebar-active: #1c1c1f;
  --bg-sidebar-hover: #161619;
  --border-sidebar: #1f1f23;
  --text-sidebar: #a1a1aa;
  --text-sidebar-active: #ffffff;
  --text-sidebar-heading: #52525b;

  /* Content Borders & Outlines */
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --border-subtle: #f1f5f9;

  /* Typography Colors */
  --text-main: #09090b;
  --text-body: #1e293b;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  --text-inverse: #ffffff;

  /* Swiss Action Colors */
  --primary: #09090b;
  --primary-hover: #27272a;
  --primary-light: #f4f4f5;

  /* Swiss Signal Accents */
  --accent-emerald: #059669;
  --accent-emerald-bg: #ecfdf5;
  --accent-emerald-border: #a7f3d0;

  --accent-blue: #2563eb;
  --accent-blue-bg: #eff6ff;
  --accent-blue-border: #bfdbfe;

  --accent-amber: #d97706;
  --accent-amber-bg: #fffbeb;
  --accent-amber-border: #fde68a;

  --accent-red: #dc2626;
  --accent-red-bg: #fef2f2;
  --accent-red-border: #fecaca;

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Space Grotesk', ui-monospace, Menlo, Monaco, monospace;

  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Measurements */
  --sidebar-width: 250px;
  --header-height: 70px;
  --bottom-nav-height: 70px;
  --transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Swiss Typography Foundations */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px; /* Increased from 14px for bold, legible Swiss typography */
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-app);
  color: var(--text-body);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

h1 { font-size: 2.25rem; font-weight: 800; }
h2 { font-size: 1.65rem; font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 700; }

.text-mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.label-tracked {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

/* ==========================================================================
   AUTHENTIC SWISS LAYOUT ARCHITECTURE
   ========================================================================== */

.app-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
  position: relative;
  background-color: var(--bg-app);
}

/* Dark Swiss Sidebar */
.desktop-sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  max-width: var(--sidebar-width);
  height: 100vh;
  position: sticky;
  top: 0;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-sidebar);
  display: flex;
  flex-direction: column;
  z-index: 50;
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .desktop-sidebar {
    display: none;
  }
}

.sidebar-header {
  height: var(--header-height);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-sidebar);
}

.sidebar-brand-box {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.sidebar-brand-icon {
  width: 38px;
  height: 38px;
  background: #ffffff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #09090b;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

.sidebar-brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.1;
}

.sidebar-brand-sub {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #71717a;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-section-title {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-sidebar-heading);
  padding: 1rem 0.75rem 0.4rem;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-sidebar);
  border: 1px solid transparent;
  transition: var(--transition);
}

.sidebar-nav-item:hover {
  background: var(--bg-sidebar-hover);
  color: #ffffff;
}

.sidebar-nav-item.active {
  background: var(--bg-sidebar-active);
  color: var(--text-sidebar-active);
  font-weight: 700;
  border: 1px solid #27272a;
}

.sidebar-nav-item .material-icons-round {
  font-size: 1.35rem;
  color: #71717a;
}

.sidebar-nav-item.active .material-icons-round,
.sidebar-nav-item:hover .material-icons-round {
  color: #ffffff;
}

/* Main Content Wrapper */
.main-content-wrapper {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

@media (max-width: 1024px) {
  .main-content-wrapper {
    padding-bottom: var(--bottom-nav-height);
  }
}

/* Top App Header (White Minimalist Swiss) */
.app-header {
  height: var(--header-height);
  min-height: var(--header-height);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.25rem;
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
}

@media (max-width: 768px) {
  .app-header {
    padding: 0 1.25rem;
  }
}

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

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

.user-profile-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0.9rem 0.4rem 0.4rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
}

.user-profile-avatar {
  width: 32px;
  height: 32px;
  background: #09090b;
  color: #ffffff;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
}

.page-content {
  flex: 1;
  padding: 2.25rem 2.5rem;
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .page-content {
    padding: 1.25rem 1rem;
  }
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
