/* ==========================================================================
   LAYOUT STYLES - OI PHÁI SINH DASHBOARD
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-page);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* Site Navigation Header */
.site-header {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--line-normal);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
}

.header-container {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0 16px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink-primary);
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 16.5px;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
  line-height: 1.2;
}

.brand-domain {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}

/* Navigation Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-muted);
  transition: color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Status Indicator */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  background-color: var(--pos-bg);
  color: var(--pos);
  border: 1px solid var(--pos-border);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--pos);
  box-shadow: 0 0 0 0 rgba(13, 138, 78, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(13, 138, 78, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(13, 138, 78, 0); }
  100% { box-shadow: 0 0 0 0 rgba(13, 138, 78, 0); }
}

/* Main Content Wrapper */
.main-wrapper {
  flex: 1;
  max-width: var(--max-content-width);
  width: 100%;
  margin: 0 auto;
  padding: 24px 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Page Intro Header */
.dashboard-intro {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.intro-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-primary);
}

.intro-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
}

.intro-desc {
  margin: 0;
  font-size: 14px;
  color: var(--ink-muted);
  max-width: 760px;
}

/* Dashboard Card Container */
.dashboard-card-container {
  background-color: var(--bg-surface);
  border: 1px solid var(--line-normal);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--line-normal);
  padding: 24px 16px;
  color: var(--ink-muted);
  font-size: 13px;
}

.footer-container {
  max-width: var(--max-content-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-copy {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-link {
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

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

/* Mobile Breakpoints */
@media (max-width: 768px) {
  .header-container {
    height: 56px;
  }
  .nav-menu {
    display: none;
  }
  .main-wrapper {
    padding: 16px 12px 32px;
    gap: 16px;
  }
  .intro-title {
    font-size: 20px;
  }
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
