/* ============================================
   ANTEK MATERIALS — DESIGN SYSTEM & GLOBAL STYLES
   Based on UI/UX Blueprint (Dark Tech-Construction)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg-deep: #070D1E;
  --bg-panel: #0B1329;
  --bg-card: #0F172A;
  --border-subtle: #1E293B;
  --text-primary: #FFFFFF;
  --text-secondary: #94A3B8;
  --accent-mint: #10B981;
  --accent-mint-light: #34D399;
  --accent-ice: #38BDF8;
  --accent-ice-dark: #0284C7;
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow-card: 0 10px 30px rgba(0,0,0,0.45);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-secondary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Blueprint Grid Background */
.blueprint-bg {
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.2; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); line-height: 1.3; }

p {
  font-size: 16px;
  font-weight: 500;
}

a {
  color: var(--accent-ice);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--accent-mint-light); }

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: inherit;
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent-mint), var(--accent-mint-light));
  color: #000;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35);
}
.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 28px rgba(16, 185, 129, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-ice);
  border: 2px solid var(--accent-ice);
  box-shadow: 0 0 0 rgba(56, 189, 248, 0);
}
.btn-secondary:hover {
  background: rgba(56, 189, 248, 0.08);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.15);
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.55);
  border-color: rgba(56, 189, 248, 0.25);
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 13, 30, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-weight: 900;
  font-size: 20px;
  color: var(--text-primary);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.logo span { color: var(--accent-mint); }

.logo-img-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 48px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.nav-links a:hover { color: var(--text-primary); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-title {
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-secondary);
  max-width: 700px;
  margin-bottom: 48px;
  font-size: 17px;
}

/* Tables (Live Feed) */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.data-table thead th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.data-table tbody tr {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  transition: background 0.2s ease;
}
.data-table tbody tr:hover {
  background: rgba(30, 41, 59, 0.8);
}

.data-table td {
  padding: 16px;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  font-weight: 600;
  font-size: 14px;
}
.data-table td:first-child {
  border-left: 1px solid var(--border-subtle);
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}
.data-table td:last-child {
  border-right: 1px solid var(--border-subtle);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
}
.status-green { background: var(--accent-mint); box-shadow: 0 0 8px var(--accent-mint); }
.status-yellow { background: #F59E0B; box-shadow: 0 0 8px #F59E0B; }
.status-blue { background: var(--accent-ice); box-shadow: 0 0 8px var(--accent-ice); }

/* Sliders */
input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border-subtle);
  outline: none;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-mint);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(16,185,129,0.5);
  border: 3px solid var(--bg-deep);
}
input[type=range]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-mint);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(16,185,129,0.5);
  border: 3px solid var(--bg-deep);
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}
.form-control {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control:focus {
  border-color: var(--accent-ice);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    flex-direction: column;
    background: var(--bg-panel);
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--border-subtle);
    display: none;
  }
  .nav-links.active { display: flex; }
  .nav-toggle { display: block; }
  .section { padding: 60px 0; }
}
