/* =========================
   Reset / Base
   ========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Inter', sans-serif;
  background: #ffffff;
  color: #1f2937;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
}

/* Respect motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================
   Theme Variables
   ========================= */
:root {
  --bg: #5a26677d;
	--surface: #90559974;
  --header: rgba(26, 0, 37, 0.95);
  --footer: #ffffff;
  --border: #e5e7eb;
  --text: #000000;
  --muted: #6b7280;

  --primary: #775b90;
  --title: #1300a5;
  --primary-soft: #94bedc;

  --radius: 14px;
  --nav-h: 100px; /* doubled header height */
  --shadow: 0 14px 30px rgba(0, 0, 0, 0.15);
}

/* =========================
   Headings & Typography
   ========================= */

/* Base heading reset */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.75em;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}

/* Primary page headline */
h1 {
  font-size: clamp(3rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  font-weight: 680;
}

/* Section headlines */
h2 {
  font-size: clamp(2rem, 3vw, 2.4rem);
}

/* Subsection titles */
h3 {
  font-size: 1.4rem;
}

/* Card / feature titles */
h4 {
  font-size: clamp(3rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  font-weight: 680;
  color: var(--#fff);
}

/* Centered labels / captions */
h5 {
  font-size: 2.0rem;
  text-align: center;
  font-weight: 600;
  color: var(--text);
}


/* =========================
   Mobile Header CTA sizing
   ========================= */
@media (max-width: 767px) {
  .topbar-actions .btn {
    min-height: 28px;
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    border-radius: 10px;    
    max-width: 80px; 
    max-height: 50px; 
  }

  h1 {
    font-size: clamp(1.9rem, 4vw, 2.25rem);
  }

  h2 {
    font-size: clamp(1.9rem, 4vw, 2.25rem);
  }

  h3 {
    font-size: clamp(1.0rem, 4vw, 2.25rem);
  }

}

/* =========================
   Footer
   ========================= */
.footer {
  background: var(--header);
  padding: 32px 0 20px;
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer p {
  margin: 0;
  text-align: center;
  color: var(--footer);
  font-size: 0.95rem;
}

/* =========================
   User Auth
   ========================= */
.auth-user {
  font-size: 0.9rem;
  opacity: 0.9;
  white-space: nowrap;
  color: #eee6e6;
}

.drawer-user {
  margin-top: 8px;
  margin-bottom: 8px;
  color: black;
}

.section-user {
  font-size: 0.9rem;
  opacity: 0.9;
  white-space: nowrap;
  color: #eee6e6;
  margin-bottom: 8px;
  margin-right: 8px;
  text-align: end;
}



/* =========================
   Section Layout
   ========================= */
.section {
  position: relative;
  padding: clamp(3rem, 6vw, 6rem) 0;
  background: transparent;
}

/* Optional section background */
.section.bg {
  background: var(--bg);
}

/* Soft surface section */
.section.surface {
  background: var(--surface);
}

/* Section with top/bottom separation */
.section.divided {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Section spacing for dense pages (tables, dashboards) */
.section.compact {
  padding: clamp(2rem, 4vw, 3.5rem) 0;
}

/* Centered section content helper */
.section.center {
  text-align: center;
}

/* Section header spacing consistency */
.section h1,
.section h2,
.section h3 {
  margin-bottom: 1rem;
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .section {
    padding: 2.5rem 0;
  }
}