﻿@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700;800&family=Special+Gothic+Expanded+One&display=swap');

:root {
  --lightproject-bg: #000000;
  --lightproject-border: #262626;
  --lightproject-title: #f0f0f0;
  --lightproject-text: #c7c7c7;
  --lightproject-label: #8e8e8e;
  --lightproject-radius: 14px;
}

.lightproject-dashboard,
.lightproject-card {
  font-family: "DM Sans", "Helvetica Neue", sans-serif;
  color: var(--lightproject-text);
  --lightproject-error-border: rgba(161, 93, 103, 0.76);
  --lightproject-error-bg: rgba(38, 16, 20, 0.92);
  --lightproject-error-text: #f3b6c0;
  --lightproject-detail-border: rgba(255, 255, 255, 0.14);
  --lightproject-detail-value: #e0e0e0;
  --lightproject-table-bg: rgba(9, 9, 9, 0.96);
  --lightproject-table-border: rgba(255, 255, 255, 0.16);
  --lightproject-iso-legend: #d1d1d1;
}

.lightproject-dashboard.lightproject-dark {
  border-radius: calc(var(--lightproject-radius) + 4px);
}

.lightproject-dashboard.lightproject-light,
.lightproject-card.lightproject-light {
  --lightproject-bg: #e3e3e3;
  --lightproject-border: #dbdbdb;
  --lightproject-title: #323232;
  --lightproject-text: #666666;
  --lightproject-label: #8e8e8e;
  --lightproject-error-border: rgba(191, 135, 145, 0.55);
  --lightproject-error-bg: rgba(255, 241, 244, 0.95);
  --lightproject-error-text: #8c3e4e;
  --lightproject-detail-border: rgba(133, 155, 185, 0.35);
  --lightproject-detail-value: #23344e;
  --lightproject-table-bg: rgba(252, 253, 255, 0.96);
  --lightproject-table-border: rgba(133, 155, 185, 0.32);
  --lightproject-iso-legend: #334964;
}

.lightproject-dashboard.lightproject-light {
  background: radial-gradient(circle at top right, #ffffff 0%, #eef3fb 65%);
  border: 1px solid var(--lightproject-border);
  border-radius: calc(var(--lightproject-radius) + 4px);
  padding: 24px;
}

.lightproject-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.lightproject-card {
  background: #151515;
  border-radius: var(--lightproject-radius);
  padding: 16px;
  min-height: 145px;
}

.lightproject-card--standalone {
  margin: 16px 0;
}

.lightproject-dashboard .lightproject-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
}

.lightproject-dashboard .lightproject-card__body {
  flex: 1 1 auto;
}

.lightproject-card__title {
  color: var(--lightproject-title);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  margin-top: 10px;
  text-align: center;
  font-family: 'Special Gothic Expanded One', 'DM Sans', sans-serif;
}

.lightproject-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: help;
  outline: none;
}

.lightproject-tip em {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--lightproject-label);
  font-size: 10px;
  font-style: normal;
  line-height: 1;
  opacity: 0.8;
}

.lightproject-light .lightproject-tip em {
  border-color: rgba(29, 49, 80, 0.25);
}

.lightproject-tip::after {
  content: attr(data-tip);
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 30;
  min-width: 180px;
  max-width: 320px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(14, 14, 14, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #e9e9ea;
  font-size: 10px;
  line-height: 1.35;
  text-transform: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s ease;
  pointer-events: none;
}

.lightproject-tip:hover::after,
.lightproject-tip:focus::after,
.lightproject-tip:active::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lightproject-light .lightproject-tip::after {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(29, 49, 80, 0.24);
  color: #20324f;
}

.lightproject-card__body {
  margin-top: 12px;
  min-height: 52px;
}

.lightproject-card__body.is-status-ok {
  color: #9fd6b8;
}

.lightproject-light .lightproject-card__body.is-status-ok {
  color: #4a8e70;
}

.lightproject-card__body.is-status-error {
  color: #ff8f8f;
}

.lightproject-light .lightproject-card__body.is-status-error {
  color: #a54b5c;
}

.lightproject-error {
  border: 1px solid var(--lightproject-error-border);
  background: var(--lightproject-error-bg);
  color: var(--lightproject-error-text);
  border-radius: 10px;
  padding: 12px;
  font-size: 12px;
  line-height: 1.45;
}

.lightproject-error strong {
  display: block;
  font-size: 10px;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.lightproject-error span {
  display: block;
}

.lightproject-detalles-v2 {
  border-radius: 12px;
  padding: 14px;
}

.lightproject-detalles-top {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.lightproject-detalles-barra {
  position: relative;
  height: 28px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--lightproject-detail-border);
  background: rgba(255, 255, 255, 0.06);
}

.lightproject-detalles-barra span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #f12a3d 0%, #f7be2b 50%, #3cd64a 100%);
}

.lightproject-detalles-barra strong {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #151a23;
  font-size: 14px;
}

.lightproject-detalles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.lightproject-detalles-col {
  display: grid;
  gap: 9px;
  align-content: start;
}

.lightproject-detalles-par {
  display: grid;
  gap: 2px;
}

.lightproject-detalles-par span {
  font-size: 12px;
  color: var(--lightproject-label);
}

.lightproject-detalles-par strong {
  font-size: 16px;
  color: var(--lightproject-detail-value);
  font-weight: 600;
  line-height: 1.3;
}

.lightproject-detalles-icono {
  margin: 8px 0;
  display: grid;
  place-items: start center;
  transform: scale(0.85);
  transform-origin: center top;
}

.lightproject-bulbo {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: radial-gradient(circle at 40% 30%, #ffffff 0%, #cfd6e4 40%, #aeb8ca 100%);
  border: 1px solid rgba(45, 59, 84, 0.35);
  position: relative;
}

.lightproject-bulbo::before {
  content: "";
  width: 48px;
  height: 24px;
  border-radius: 4px;
  background: #9faabf;
  border: 1px solid rgba(45, 59, 84, 0.35);
  position: absolute;
  left: 23px;
  top: -22px;
}

.lightproject-bulbo--panel {
  width: 116px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(180deg, #f2f5fb 0%, #b8c3d8 100%);
}

.lightproject-bulbo--panel::before {
  width: 36px;
  height: 8px;
  left: 40px;
  top: -12px;
}

.lightproject-bulbo--campana {
  width: 118px;
  height: 82px;
  border-radius: 58px 58px 24px 24px;
  background: radial-gradient(circle at 50% 22%, #eff3fb 0%, #c5cfde 48%, #919db4 100%);
}

.lightproject-bulbo--campana::before {
  width: 64px;
  height: 14px;
  left: 27px;
  top: -14px;
}

.lightproject-bulbo--vial {
  width: 38px;
  height: 124px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f3f6fc 0%, #c6d0e0 54%, #9ca8bf 100%);
}

.lightproject-bulbo--vial::before {
  width: 50px;
  height: 10px;
  left: -6px;
  top: -12px;
}

.lightproject-bulbo--reflector {
  width: 120px;
  height: 88px;
  border-radius: 60px 60px 42px 42px;
  background: conic-gradient(from 180deg at 50% 0%, #c9d3e4 0deg, #f0f4fa 80deg, #a4b0c6 180deg, #c9d3e4 360deg);
}

.lightproject-bulbo--reflector::before {
  width: 26px;
  height: 20px;
  left: 47px;
  top: -18px;
}

.lightproject-detalles-lista {
  display: grid;
  gap: 4px;
  margin-top: 4px;
}

.lightproject-detalles-lista div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}

.lightproject-detalles-lista span {
  color: var(--lightproject-label);
}

.lightproject-detalles-lista strong {
  color: var(--lightproject-detail-value);
  font-weight: 500;
}

.lightproject-dashboard .lightproject-module-table {
  grid-column: 1 / -1;
}

.lightproject-candela-wrap {
  border: 1px solid var(--lightproject-table-border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--lightproject-table-bg);
}

.lightproject-candela-scroll {
  max-height: none;
  overflow: hidden;
  --lightproject-candela-font-size: 10px;
  --lightproject-candela-pad-y: 6px;
  --lightproject-candela-pad-x: 7px;
  --lightproject-candela-row-height: 16px;
}

.lightproject-candela-table {
  width: 100%;
  min-width: 100%;
  height: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.lightproject-candela-table th,
.lightproject-candela-table td {
  padding: var(--lightproject-candela-pad-y) var(--lightproject-candela-pad-x);
  height: var(--lightproject-candela-row-height);
  box-sizing: border-box;
  text-align: center;
  font-size: var(--lightproject-candela-font-size);
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lightproject-candela-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #3b3f4a;
  color: #d8d8de;
  font-weight: 700;
}

.lightproject-candela-table thead th.lightproject-candela-corner {
  left: 0;
  z-index: 4;
}

.lightproject-candela-table tbody th {
  position: sticky;
  left: 0;
  z-index: 3;
  background: #5f616d;
  color: #efeff1;
  font-weight: 700;
}

.lightproject-candela-table tbody td {
  color: #e7e7eb;
  font-variant-numeric: tabular-nums;
}

.lightproject-light .lightproject-candela-table thead th {
  background: #dde3ef;
  color: #2d3f57;
}

.lightproject-light .lightproject-candela-table tbody th {
  background: #c8d2e4;
  color: #20334f;
}

.lightproject-iso-legend {
  margin-top: 6px;
  display: grid;
  gap: 6px;
}

.lightproject-iso-item {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 8px;
  color: var(--lightproject-iso-legend);
  font-size: 14px;
}

.lightproject-iso-item strong {
  color: var(--lightproject-detail-value);
  font-weight: 500;
  font-size: 14px;
}

.lightproject-iso-swatch {
  width: 100%;
  height: 14px;
  border-radius: 2px;
  display: inline-block;
}

.lightproject-iso-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 34%);
  gap: 14px;
  align-items: start;
}

.lightproject-iso-plot-wrap {
  border-radius: 8px;
  overflow: hidden;
}

.lightproject-iso-plot {
  width: 100%;
}

.lightproject-iso-side {
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
}

.lightproject-iso-extra {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}

.lightproject-iso-extra div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 16px;
}

.lightproject-iso-extra span {
  color: var(--lightproject-label);
}

.lightproject-iso-extra strong {
  color: var(--lightproject-detail-value);
  font-weight: 500;
}

.lightproject-module-polar .lightproject-plot {
  border-radius: 8px;
  border: 1px solid var(--lightproject-detail-border);
  background: var(--lightproject-bg);
}

.lightproject-module-linear .lightproject-plot {
  border-radius: 8px;
  border: 1px solid var(--lightproject-detail-border);
  background: var(--lightproject-bg);
}

.lightproject-module-isoilluminance .lightproject-plot {
  border-radius: 8px;
}

.lightproject-module-bugrating .lightproject-plot {
  border-radius: 8px;
}

.lightproject-dashboard .lightproject-module-beamintensities {
  grid-column: 1 / -1;
}

.lightproject-beam {
  display: grid;
  gap: 12px;
}

.lightproject-beam-top,
.lightproject-beam-bottom {
  display: grid;
  grid-template-columns: 220px repeat(5, minmax(72px, 1fr));
  gap: 8px;
  align-items: center;
}

.lightproject-beam-row-label {
  color: var(--lightproject-detail-value);
  font-size: 12px;
  font-weight: 700;
}

.lightproject-beam-cell {
  color: var(--lightproject-text);
  font-size: 12px;
  text-align: center;
}

.lightproject-beam-scene {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 10px;
  align-items: stretch;
}

.lightproject-beam-left {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
}

.lightproject-beam-lamp {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.35);
  background: radial-gradient(circle at 35% 30%, #fffcb6 0%, #efe98f 46%, #d5cd6d 100%);
}

.lightproject-beam-angle {
  color: var(--lightproject-detail-value);
  font-size: 14px;
  font-weight: 600;
}

.lightproject-beam-side-label {
  color: var(--lightproject-text);
  font-size: 20px;
  font-weight: 700;
  opacity: 0.55;
}

.lightproject-beam-side-label--bottom {
  margin-top: 52px;
}

.lightproject-beam-note {
  margin-top: 8px;
  color: var(--lightproject-label);
  font-size: 12px;
  text-align: center;
}

.lightproject-beam-cone-wrap {
  position: relative;
  overflow: hidden;
  border: 3px solid var(--lightproject-detail-border);
  border-radius: 8px;
}

.lightproject-beam-center-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  z-index: 2;
}

.lightproject-beam-cone {
  position: absolute;
  left: 8%;
  right: 2%;
  top: 8%;
  bottom: 8%;
  background: rgba(214, 214, 214, 0.55);
  clip-path: polygon(0 50%, 100% 10%, 100% 90%);
  z-index: 1;
}

.lightproject-beam-marker {
  position: absolute;
  top: 0;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 3;
}

.lightproject-beam-line {
  position: absolute;
  top: 6%;
  bottom: 6%;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.34);
}

.lightproject-beam-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(210, 210, 210, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.lightproject-beam-lux,
.lightproject-beam-fcd {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 10px;
}

.lightproject-beam-lux {
  top: 11%;
  color: var(--lightproject-detail-value);
}

.lightproject-beam-fcd {
  bottom: 11%;
  color: var(--lightproject-text);
}

.lightproject-beam-mobile-only {
  display: none;
}

.lightproject-beam-mobile-meta {
  display: grid;
  gap: 6px;
  margin-top: 4px;
}

.lightproject-beam-mobile-meta div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.lightproject-beam-mobile-meta span {
  color: var(--lightproject-label);
  font-size: 12px;
}

.lightproject-beam-mobile-meta strong {
  color: var(--lightproject-detail-value);
  font-size: 14px;
}

.lightproject-beam-mobile-meta p {
  margin: 0;
  color: var(--lightproject-label);
  font-size: 10px;
}

.lightproject-beam-mobile-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.lightproject-beam-mobile-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--lightproject-detail-border);
  border-radius: 8px;
  padding: 8px;
  min-width: 0;
}

.lightproject-beam-mobile-title {
  color: var(--lightproject-title);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}

.lightproject-beam-mobile-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
}

.lightproject-beam-mobile-row span {
  color: var(--lightproject-label);
  font-size: 10px;
}

.lightproject-beam-mobile-row strong {
  color: var(--lightproject-detail-value);
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.lightproject-bug-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 42%);
  gap: 14px;
  align-items: start;
}

.lightproject-bug-plot-wrap {
  border-radius: 8px;
  overflow: hidden;
}

.lightproject-bug-side {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
}

.lightproject-bug-rating {
  color: var(--lightproject-label);
  font-size: 16px;
}

.lightproject-bug-rating strong {
  color: var(--lightproject-detail-value);
  font-weight: 600;
}

.lightproject-bug-table {
  display: grid;
  gap: 10px;
}

.lightproject-bug-section h4 {
  margin: 0 0 6px;
  color: var(--lightproject-title);
  font-size: 16px;
  font-weight: 600;
}

.lightproject-bug-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: baseline;
  padding: 2px 0;
}

.lightproject-bug-row span {
  color: var(--lightproject-label);
  font-size: 14px;
}

.lightproject-bug-row strong {
  color: var(--lightproject-detail-value);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.lightproject-bug-row em {
  color: var(--lightproject-label);
  font-style: normal;
  font-size: 14px;
  white-space: nowrap;
}

.lightproject-bug-total {
  border-top: 1px solid var(--lightproject-table-border);
  padding-top: 8px;
  display: grid;
  gap: 6px;
}

.lightproject-bug-total div {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: baseline;
}

.lightproject-bug-total span {
  color: var(--lightproject-label);
}

.lightproject-bug-total strong {
  color: var(--lightproject-detail-value);
  font-weight: 600;
  white-space: nowrap;
}

.lightproject-bug-total em {
  color: var(--lightproject-label);
  font-style: normal;
  white-space: nowrap;
}

.lightproject-bug-foot {
  margin-top: 10px;
  color: var(--lightproject-label);
  font-size: 14px;
  line-height: 1.35;
}

.lightproject-dashboard .lightproject-module-isocandela .lightproject-iso-layout,
.lightproject-dashboard .lightproject-module-isoilluminance .lightproject-iso-layout,
.lightproject-dashboard .lightproject-module-bugrating .lightproject-bug-layout {
  grid-template-columns: 1fr;
}

.lightproject-polar-info {
  margin-top: 10px;
  display: grid;
  gap: 6px;
}

.lightproject-polar-info div {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.lightproject-polar-info span {
  color: var(--lightproject-label);
  font-size: 14px;
}

.lightproject-polar-info strong {
  color: var(--lightproject-detail-value);
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .lightproject-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .lightproject-dashboard {
    padding: 16px;
  }

  .lightproject-card {
    padding: 12px;
    border-radius: 12px;
  }

  .lightproject-card__title {
    font-size: 12px;
    margin-top: 6px;
    margin-bottom: 8px;
  }

  .lightproject-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .lightproject-dashboard .lightproject-card {
    min-height: 220px;
  }

  .lightproject-detalles-grid {
    grid-template-columns: 1fr;
  }

  .lightproject-iso-layout {
    grid-template-columns: 1fr;
  }

  .lightproject-bug-layout {
    grid-template-columns: 1fr;
  }

  .lightproject-beam-top,
  .lightproject-beam-bottom {
    display: none;
  }

  .lightproject-beam-scene {
    grid-template-columns: 1fr;
    order: 1;
    min-height: 210px;
    height: auto !important;
  }

  .lightproject-beam-left {
    display: none;
  }

  .lightproject-beam-cone-wrap {
    min-height: 210px;
  }

  .lightproject-beam-mobile-only {
    display: grid;
    gap: 10px;
    order: 2;
  }

  .lightproject-beam-side-label,
  .lightproject-beam-note {
    display: none;
  }

  .lightproject-candela-scroll {
    max-height: none;
    overflow: hidden;
  }

  .lightproject-candela-table {
    min-width: 100%;
  }

  .lightproject-candela-table th,
  .lightproject-candela-table td {
    font-size: 8px;
    padding: 2px 2px;
  }
}

@media (max-width: 1360px) {
  .lightproject-dashboard .lightproject-module-isocandela .lightproject-iso-layout,
  .lightproject-dashboard .lightproject-module-isoilluminance .lightproject-iso-layout,
  .lightproject-dashboard .lightproject-module-bugrating .lightproject-bug-layout {
    grid-template-columns: 1fr;
  }
}

