/* SMG Electronica — static styles */
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700;800&subset=latin-ext&display=swap");

:root {
  --brand-navy: #1a3a7a;
  --brand-navy-deep: #0f1f44;
  --brand-sky: #4cb9e7;
  --brand-teal: #3a8a9a;
  --brand-teal-dark: #1f4f5a;
  --brand-forest: #1a3a2a;
  --foreground: #1a2230;
  --muted: #f3f5f8;
  --muted-foreground: #6b7280;
  --border: #e2e6ec;
  --white: #ffffff;
}

*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: "Open Sans", system-ui, sans-serif;
  color: var(--foreground);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* ===== Header ===== */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 30;
  background: transparent;
}
.site-header.home { background: rgba(26,58,42,0.95); backdrop-filter: blur(4px); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; padding: 1rem;
  max-width: 1280px; margin: 0 auto;
}
@media (min-width: 1024px) { .header-inner { padding: 1rem 1.5rem; } }
.brand img { height: 40px; width: auto; }
@media (min-width: 1024px) { .brand img { height: 44px; } }

.nav-desktop { display: none; flex: 1; justify-content: center; align-items: center; gap: 0.85rem; }
@media (min-width: 1024px) { .nav-desktop { display: flex; } }
.nav-link {
  position: relative;
  font-size: 11px; letter-spacing: 0.18em; font-weight: 700;
  color: rgba(255,255,255,0.9); text-transform: uppercase;
  white-space: nowrap; transition: color .2s;
}
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--brand-sky);
}

.header-actions { display: none; align-items: center; gap: 0.5rem; }
@media (min-width: 1024px) { .header-actions { display: flex; } }
.lang-btn, .icon-btn {
  background: transparent; border: none;
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em;
  color: rgba(255,255,255,0.9);
}
.lang-btn:hover, .icon-btn:hover { color: #fff; }
.icon-btn svg { width: 16px; height: 16px; }

.menu-toggle {
  display: inline-flex; background: transparent; border: none; color: #fff;
}
@media (min-width: 1024px) { .menu-toggle { display: none; } }
.menu-toggle svg { width: 28px; height: 28px; }

.nav-mobile {
  display: none; border-top: 1px solid rgba(255,255,255,0.1);
  background: var(--brand-navy-deep);
}
.nav-mobile.home { background: var(--brand-forest); }
.nav-mobile.open { display: block; }
.nav-mobile nav { display: flex; flex-direction: column; padding: 1rem; }
.nav-mobile .nav-link {
  padding: 0.85rem 0; border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* ===== Footer ===== */
.site-footer {
  background: linear-gradient(to right, var(--brand-teal-dark), var(--brand-teal));
  color: #fff;
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
  justify-content: space-between; gap: 0.5rem;
  padding: 1rem; font-size: 11px; font-weight: 700; letter-spacing: 0.15em;
}
@media (min-width: 640px) { .footer-inner { flex-direction: row; padding: 1rem 2rem; } }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: center; }
.footer-links a:hover { color: var(--brand-sky); }

/* ===== Hero (home) ===== */
.hero-home {
  position: relative; overflow: hidden; background: #000;
  min-height: 820px;
}
.hero-home > img.bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.7;
}
.hero-home .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.55) 50%, rgba(0,0,0,0.8));
}
.hero-home .content {
  position: relative; max-width: 1280px; margin: 0 auto;
  padding: 8rem 1rem 6rem;
}
@media (min-width: 1024px) { .hero-home .content { padding: 10rem 2rem 6rem; } }
.hero-card {
  max-width: 640px; margin: 0 auto;
  background: rgba(14,42,30,0.65);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px; backdrop-filter: blur(12px);
  color: #fff; text-align: center; overflow: hidden;
}
.hero-card .pad { padding: 2.5rem 2rem; }
.hero-card h1 { font-size: 1.75rem; font-weight: 300; margin: 0; }
@media (min-width: 640px) { .hero-card h1 { font-size: 1.875rem; } }
.hero-card p { margin-top: 1.5rem; font-size: 14px; line-height: 1.65; color: rgba(255,255,255,0.9); }
.hero-card .divider { border-top: 1px solid rgba(255,255,255,0.1); padding: 2rem; }
.hero-card .divider img { height: 40px; width: auto; margin: 1.5rem auto 0; opacity: 0.8; }

/* ===== Login popup ===== */
.login-floating {
  position: absolute; right: 1rem; top: 5rem; z-index: 20;
  width: 300px; background: #fff; border-radius: 6px;
  padding: 1.25rem; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}
@media (min-width: 1024px) { .login-floating { right: 2rem; top: 6rem; } }
.login-page-card {
  width: 100%; max-width: 24rem; background: #fff;
  border-radius: 6px; padding: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}
.login-form { display: flex; flex-direction: column; gap: 0.75rem; }
.login-form input[type="email"], .login-form input[type="password"] {
  height: 40px; width: 100%;
  border: 1px solid var(--border); background: rgba(243,245,248,0.5);
  border-radius: 4px; padding: 0 0.75rem; font-size: 14px;
  outline: none; font-family: inherit;
}
.login-form input:focus { border-color: var(--brand-sky); }
.remember {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted-foreground);
}
.remember input { width: 14px; height: 14px; accent-color: var(--brand-teal); }
.btn-primary {
  height: 40px; width: 100%; border: none; border-radius: 4px;
  background: linear-gradient(to right, var(--brand-teal-dark), var(--brand-teal));
  color: #fff; font-size: 12px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  transition: opacity .2s;
}
.btn-primary:hover { opacity: 0.9; }
.link-muted {
  display: block; text-align: center; font-size: 10px;
  font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(26,34,48,0.7);
}
.link-muted:hover { color: var(--brand-teal); }

/* ===== Login page ===== */
.login-page {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 820px; overflow: hidden; background: var(--brand-navy-deep);
  padding: 7rem 1rem 4rem;
}
.login-page > img.bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.6;
}
.login-page .overlay {
  position: absolute; inset: 0;
  background: rgba(15,31,68,0.7); backdrop-filter: blur(4px);
}
.login-page .wrap { position: relative; width: 100%; max-width: 24rem; }
.login-page .header {
  display: flex; flex-direction: column; align-items: center;
  color: #fff; margin-bottom: 1.5rem;
}
.login-page .header img { height: 56px; }
.login-page .header h1 {
  margin: 1rem 0 0; font-size: 18px; font-weight: 300; letter-spacing: 0.05em;
}
.login-page .header p { margin: 0; font-size: 12px; color: rgba(255,255,255,0.7); }

/* ===== Page hero ===== */
.page-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--brand-teal-dark), var(--brand-teal), var(--brand-teal-dark));
  padding: 8rem 0 5rem;
}
@media (min-width: 1024px) { .page-hero { padding: 10rem 0 7rem; } }
.page-hero img.side {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 50%; height: 100%; object-fit: cover; opacity: 0.9;
  pointer-events: none; display: none;
  -webkit-mask-image: linear-gradient(to right, transparent, black 35%);
          mask-image: linear-gradient(to right, transparent, black 35%);
}
@media (min-width: 768px) { .page-hero img.side { display: block; } }
.page-hero .content { position: relative; max-width: 1280px; margin: 0 auto; padding: 0 1rem; color: #fff; }
@media (min-width: 1024px) { .page-hero .content { padding: 0 2rem; } }
.page-hero .inner { max-width: 36rem; }
.page-hero .eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.3em;
  color: var(--brand-sky); margin: 0;
}
.page-hero .accent-bar { margin-top: 0.5rem; height: 3px; width: 7rem; background: var(--brand-sky); }
.page-hero h1 {
  margin: 2rem 0 0; font-weight: 300; line-height: 1.15;
  font-size: 1.875rem;
}
@media (min-width: 640px) { .page-hero h1 { font-size: 2.25rem; } }
@media (min-width: 1024px) { .page-hero h1 { font-size: 42px; } }
.page-hero p {
  max-width: 28rem; margin-top: 1.5rem; font-size: 14px;
  line-height: 1.65; color: rgba(255,255,255,0.85);
}
.page-hero .cta {
  margin-top: 3rem; padding: 0.75rem 1.5rem;
  border: 1px solid rgba(255,255,255,0.7); background: transparent;
  border-radius: 4px; color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  transition: background .2s, color .2s;
}
.page-hero .cta:hover { background: #fff; color: var(--brand-teal-dark); }

/* ===== Data table section ===== */
.data-section {
  background: linear-gradient(135deg, var(--brand-teal-dark), var(--brand-teal), var(--brand-teal-dark));
  padding: 3rem 0;
}
@media (min-width: 1024px) { .data-section { padding: 4rem 0; } }
.data-card {
  background: rgba(255,255,255,0.95); border-radius: 12px;
  padding: 1.25rem; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  backdrop-filter: blur(8px);
}
@media (min-width: 1024px) { .data-card { padding: 2rem; } }

.data-toolbar {
  display: flex; flex-direction: column; gap: 0.75rem;
  margin-bottom: 1.25rem;
}
@media (min-width: 640px) { .data-toolbar { flex-direction: row; align-items: center; justify-content: space-between; } }
.search-wrap { position: relative; width: 100%; }
@media (min-width: 640px) { .search-wrap { max-width: 20rem; } }
.search-wrap svg {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--muted-foreground); pointer-events: none;
}
.search-wrap input {
  height: 40px; width: 100%; border: 1px solid var(--border);
  background: #fff; border-radius: 4px;
  padding: 0 0.75rem 0 2.25rem; font-size: 14px; outline: none; font-family: inherit;
}
.search-wrap input:focus { border-color: var(--brand-sky); }
.status-select {
  height: 40px; border: 1px solid var(--border); background: #fff;
  border-radius: 4px; padding: 0 0.75rem; font-size: 14px; outline: none; font-family: inherit;
}
.status-select:focus { border-color: var(--brand-sky); }

.table-wrap {
  display: none; overflow: hidden;
  border: 1px solid var(--border); border-radius: 8px; background: #fff;
}
@media (min-width: 768px) { .table-wrap { display: block; } }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead { background: var(--muted); text-align: left; }
th {
  padding: 0.75rem 1rem; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--brand-navy-deep);
}
tbody tr { border-top: 1px solid var(--border); }
tbody tr:hover { background: rgba(243,245,248,0.6); }
td { padding: 0.75rem 1rem; vertical-align: top; }

.badge {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700;
}
.badge.s-active { background: rgba(58,138,154,0.15); color: var(--brand-teal-dark); }
.badge.s-done   { background: rgba(16,185,129,0.15); color: #047857; }
.badge.s-draft  { background: rgba(245,158,11,0.15); color: #b45309; }
.badge.s-bad    { background: rgba(239,68,68,0.15); color: #b91c1c; }
.badge.s-muted  { background: var(--muted); color: var(--muted-foreground); }

.cards-mobile { display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 768px) { .cards-mobile { display: none; } }
.row-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 8px; padding: 1rem;
}
.row-card .row {
  display: flex; justify-content: space-between; gap: 0.75rem;
  padding: 0.25rem 0; font-size: 14px;
}
.row-card .row .k {
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted-foreground);
}

.pager {
  margin-top: 1.25rem; display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--muted-foreground);
}
.pager .btns { display: flex; gap: 4px; }
.pager button {
  border: 1px solid var(--border); background: #fff;
  border-radius: 4px; padding: 6px 12px; font-size: 12px;
}
.pager button:hover:not(:disabled) { background: var(--muted); }
.pager button:disabled { opacity: 0.4; cursor: default; }
