/* ============================================================================
   TEMA AQUA NEON — LPR Dashboard (2025)
   Inspirado en interfaz futurista del mockup 3D
   ========================================================================== */

:root {
  --bg-main: #0d0d0d;
  --bg-secondary: #141414;
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-card-hover: rgba(255, 255, 255, 0.09);


  --text-primary: #eaeaea;
  --text-secondary: #b5b5b5;
  --text-dim: #7c7c7c;

  --accent: #6cd3ff;
  --accent-glow: rgba(108, 211, 255, 0.5);

  --shadow-soft: 0 10px 28px rgba(0,0,0,0.55);
  --shadow-strong: 0 16px 40px rgba(0,0,0,0.8);
}

/* ============================
   BACKGROUND GLOBAL
============================= */

body {
  background: linear-gradient(135deg, #205a91 0%, #141414 40%, #205a91 100%);
  color: #205a91;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  padding: 0;
}

/* ============================
   TOP BAR
============================= */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #205a91;
  background: rgba(255,255,255,0.03);
  padding: 0 24px;
  height: 56px;
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.logo img {
  height: 26px;
  transition: opacity 0.25s ease;
}

.logo img:hover { opacity: 0.85; }

/* ============================
   NAV
============================= */

.main-nav {
  display: flex;
}

.nav-item {
  position: relative;
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.18s ease;
  padding-bottom: 6px;
}

.nav-item:hover {
  color: var(--accent);
}

.nav-item.active {
  color: var(--accent);
}

.nav-item.active::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 3px;
  bottom: -2px;
  left: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #a5e9ff);
}

/* ============================
   HEADER SECTION
============================= */

header {
  background: var(--bg-secondary);
  padding: 14px 24px;
  border-bottom: 1px solid var(--border-subtle);
  margin-top: 22px;
  box-shadow: var(--shadow-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.title-main {
  font-size: 18px;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.title-sub {
  color: var(--text-secondary);
  font-size: 12px;
}

/* Select styles */
header select {
  background: var(--bg-card);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 999px;
  outline: none;
  margin-left: 10px;
}

/* ============================
   SUMMARY BAR
============================= */

.summary-bar {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 10px 18px;
  box-shadow: var(--shadow-soft);
  max-width: 1400px;
  margin: 20px auto;
  display: flex;
  justify-content: space-around;
  font-size: 14px;
}

.summary-bar strong { color: var(--accent); }

/* ============================
   EVENT CARDS
============================= */

.container {
  max-width: 1100px;
  margin: 0 auto 40px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.event-card {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  transition: 0.2s ease;
}

.event-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
}

/* Image */
.card-image {
  width: 160px;
  height: 110px;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.25s ease;
}

.card-image img:hover {
  transform: scale(1.05);
}

/* Information grid */
.card-info {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 6px 18px;
}

.timestamp {
  grid-column: span 2;
  color: var(--text-secondary);
  font-size: 13px;
}

.event-plate {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  text-shadow: 0 0 8px var(--accent-glow);
}

/* Lines */
.card-field {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-primary);
  opacity: 0.85;
}

.card-field i {
  color: var(--accent);
}

/* ============================
   MODAL IMAGE
============================= */

.expanded {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: 0.25s ease;
  z-index: 9999;
}

.expanded.visible {
  visibility: visible;
  opacity: 1;
}

.expanded img {
  max-width: 65%;
  border-radius: 12px;
  box-shadow: 0 0 24px var(--accent-glow);
}

/* Close button */
.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 28px;
  cursor: pointer;
  background: rgba(255,255,255,0.08);
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--accent);
  color: var(--accent);
  transition: 0.2s;
}

.close-btn:hover {
  background: var(--accent);
  color: #000;
}
