/* ==========================================================
   ADVEREAL MINIMALIST MONOCHROMATIC DESIGN SYSTEM
   Base CSS, Typography, Reset, and Layout Grid
   Fully Rounded / Pill-Shape Styling (User Preference)
   ========================================================== */

:root {
  --bg-main: #F5F5F5;
  --bg-card: #FFFFFF;
  --bg-subtle: #FAFAFA;
  --bg-hover: #EEEEEE;
  
  --text-primary: #111111;
  --text-secondary: #666666;
  --text-muted: #999999;
  --text-inverse: #FFFFFF;
  
  --border-color: #E5E5E5;
  --border-dark: #111111;
  --border-light: #F0F0F0;
  
  --primary: #111111;
  --primary-hover: #2B2B2B;
  --accent: #333333;
  
  --sidebar-width: 260px;
  --header-height: 64px;

  /* Full Rounded / Pill Design System */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.08);

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  position: relative;
}

/* Main Layout Structure */
.app-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  transition: margin-left var(--transition-normal);
}

.page-body {
  padding: 24px 32px 64px 32px;
  flex: 1;
  max-width: 1600px;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  margin: 0 auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 { font-size: 1.75rem; line-height: 1.25; }
h2 { font-size: 1.35rem; line-height: 1.3; }
h3 { font-size: 1.15rem; line-height: 1.4; }
h4 { font-size: 1rem; line-height: 1.4; }

p {
  color: var(--text-secondary);
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

a:hover {
  text-decoration: underline;
}

/* Utilities */
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-bold { font-weight: 600; }
.text-small { font-size: 0.85rem; }
.text-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }

.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-10 { gap: 10px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }

.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

/* Responsive Media Queries */
@media (max-width: 992px) {
  .main-content {
    margin-left: 0;
  }
  .page-body {
    padding: 20px 16px;
  }
}
