/* Edge Detection Module Styles */

.edge-detection-module {
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px 36px;
  gap: 24px;
  overflow: hidden;
  background: transparent;
}

.edge-detection-module__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.edge-detection-module__content {
  flex: 1;
  display: grid;
  grid-template-columns: 1.2fr 480px;
  gap: 24px;
  min-height: 0;
  overflow: hidden;
}

.edge-detection-module__feed {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  order: 1;
}

.edge-detection-module__feed-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#edgeWebcam {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  z-index: 0;
}

.edge-mock-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.8s ease-in;
}

.detection-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
}

/* Scanning Line Animation - ALWAYS CENTERED */
.scanning-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 3px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(0, 242, 255, 0.8),
    rgba(57, 255, 20, 0.8),
    rgba(0, 242, 255, 0.8),
    transparent
  );
  box-shadow: 0 0 10px rgba(0, 242, 255, 0.6),
              0 0 20px rgba(57, 255, 20, 0.4);
  z-index: 5;
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: none;
}

.scanning-line.active {
  opacity: 1;
  animation: scanLine 3s linear infinite;
}

@keyframes scanLine {
  0% {
    top: 0;
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  95% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

/* HUD Scan Rings - ALWAYS CENTERED */
.edge-detection-module__feed .hud-scan {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.edge-detection-module__feed .hud-status {
  z-index: 5;
}

.edge-detection-module__sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  padding-right: 4px;
  order: 2;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 242, 255, 0.4) transparent;
}

.edge-detection-module__sidebar::-webkit-scrollbar {
  width: 6px;
}

.edge-detection-module__sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.edge-detection-module__sidebar::-webkit-scrollbar-thumb {
  background: rgba(0, 242, 255, 0.4);
  border-radius: 3px;
}

.edge-detection-module__sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 242, 255, 0.6);
}

/* Status Indicator */
.status-indicator {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(15px) saturate(180%);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: center;
  justify-content: center;
}

.status-indicator--monitoring {
  border-color: rgba(0, 242, 255, 0.4);
  box-shadow: 0 0 12px rgba(0, 242, 255, 0.2);
}

.status-indicator--alert {
  border-color: var(--danger);
  box-shadow: 0 0 12px rgba(255, 95, 109, 0.3);
  animation: alertPulse 2s ease-in-out infinite;
}

.status-indicator--paused {
  border-color: rgba(148, 163, 184, 0.4);
  opacity: 0.6;
}

.status-indicator__icon {
  font-size: 32px;
  flex-shrink: 0;
}

.status-indicator__text {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@keyframes alertPulse {
  0%, 100% {
    box-shadow: 0 0 12px rgba(255, 95, 109, 0.3);
  }
  50% {
    box-shadow: 0 0 24px rgba(255, 95, 109, 0.6);
  }
}

/* Switches Panel */
.switches-panel,
.alerts-panel {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(15px) saturate(180%);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.switches-panel__header,
.alerts-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.switches-panel__header h3,
.alerts-panel__header h3 {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
}

.switches-list,
.alert-log {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 242, 255, 0.4) transparent;
}

.switches-list::-webkit-scrollbar,
.alert-log::-webkit-scrollbar {
  width: 6px;
}

.switches-list::-webkit-scrollbar-track,
.alert-log::-webkit-scrollbar-track {
  background: transparent;
}

.switches-list::-webkit-scrollbar-thumb,
.alert-log::-webkit-scrollbar-thumb {
  background: rgba(0, 242, 255, 0.4);
  border-radius: 3px;
}

.switches-list::-webkit-scrollbar-thumb:hover,
.alert-log::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 242, 255, 0.6);
}

.switch-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: var(--transition);
}

.switch-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-cyan);
  transform: translateX(4px);
}

.switch-item__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.switch-item__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.switch-item__location {
  font-size: 12px;
  color: var(--muted);
}

.switch-item__status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.switch-item__status--on {
  background: rgba(74, 222, 128, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.switch-item__status--off {
  background: rgba(148, 163, 184, 0.15);
  color: var(--muted);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.switch-item__status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.switch-item__actions {
  display: flex;
  gap: 8px;
}

/* Alert Items */
.alert-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 14px;
  border-left: 3px solid var(--danger);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: var(--transition);
}

.alert-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(4px);
}

.alert-item__time {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.alert-item__message {
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
}

.alert-item__switch {
  color: var(--muted);
  font-size: 12px;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* All Alerts List */
.all-alerts-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 600px;
  overflow-y: auto;
  padding-right: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 242, 255, 0.4) transparent;
}

.all-alerts-list::-webkit-scrollbar {
  width: 6px;
}

.all-alerts-list::-webkit-scrollbar-track {
  background: transparent;
}

.all-alerts-list::-webkit-scrollbar-thumb {
  background: rgba(0, 242, 255, 0.4);
  border-radius: 3px;
}

.all-alerts-list::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 242, 255, 0.6);
}

.all-alert-item {
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--danger);
  border-left-width: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.all-alert-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.all-alert-item__switch {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.all-alert-item__time {
  font-size: 12px;
  color: var(--muted);
}

.all-alert-item__message {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 8px;
}

.all-alert-item__location {
  font-size: 12px;
  color: var(--muted);
}

.no-alerts {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

/* Form Styles */
.edge-detection-module .form {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.edge-detection-module .form label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  margin-top: 0;
  font-weight: 600;
  line-height: 1.4;
}

.edge-detection-module .form label:first-child {
  margin-top: 0;
}

.edge-detection-module .form input,
.edge-detection-module .form select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 15px;
  transition: var(--transition);
  outline: none;
  font-family: var(--font);
  box-sizing: border-box;
  margin-bottom: 0;
  margin-top: 0;
}

.edge-detection-module .form label + input,
.edge-detection-module .form label + select {
  margin-top: 0;
  margin-bottom: 24px;
}

.edge-detection-module .form input:hover,
.edge-detection-module .form select:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.edge-detection-module .form input:focus,
.edge-detection-module .form select:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 242, 255, 0.1), 0 0 12px rgba(0, 242, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.edge-detection-module .form select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23cbd5e1' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.edge-detection-module .form__actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: nowrap;
  align-items: stretch;
  width: 100%;
  padding-top: 0;
}

.edge-detection-module .form__actions .btn {
  flex: 1;
  min-width: 0;
  padding: 14px 24px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  text-align: center;
}

.edge-detection-module .form__actions .btn--primary {
  order: 1;
}

.edge-detection-module .form__actions .btn--ghost {
  order: 2;
}

/* Modal Header Alignment */
.edge-detection-module .modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.edge-detection-module .modal__header > div {
  flex: 1;
  min-width: 0;
}

.edge-detection-module .modal__header h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0.02em;
  line-height: 1.3;
  font-weight: 700;
  color: var(--text);
}

.edge-detection-module .modal__header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.edge-detection-module .modal__header .btn--icon {
  flex-shrink: 0;
  margin: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
}

.edge-detection-module .modal__body {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0;
  padding-top: 24px;
}

.edge-detection-module .modal__body--single {
  display: block !important;
}

/* Form Field Group - Better spacing */
.edge-detection-module .form > * {
  margin: 0;
}

.edge-detection-module .form label {
  margin-bottom: 10px;
}

.edge-detection-module .form input,
.edge-detection-module .form select {
  margin-bottom: 0;
}

/* Form field wrapper for better structure */
.edge-detection-module .form .form-field {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Modal Specific Styles */
.edge-detection-module .modal {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.edge-detection-module .modal--small {
  width: min(480px, 90vw);
  max-width: 500px;
}

.edge-detection-module .modal--small .modal__body {
  grid-template-columns: 1fr !important;
  display: block !important;
  gap: 0;
}

/* Improve form field container */
.edge-detection-module .form > * {
  width: 100%;
  box-sizing: border-box;
}

/* Better input number styling */
.edge-detection-module .form input[type="number"] {
  -moz-appearance: textfield;
}

.edge-detection-module .form input[type="number"]::-webkit-outer-spin-button,
.edge-detection-module .form input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* =========================================
   RESPONSIVE - ALWAYS SIDE BY SIDE
   ========================================= */

/* Large Desktop */
@media (min-width: 1400px) {
  .edge-detection-module__content {
    grid-template-columns: 1.3fr 500px;
  }
}

/* Standard Desktop */
@media (min-width: 1200px) and (max-width: 1399px) {
  .edge-detection-module__content {
    grid-template-columns: 1.2fr 480px;
  }
}

/* Medium Desktop */
@media (min-width: 1024px) and (max-width: 1199px) {
  .edge-detection-module__content {
    grid-template-columns: 1fr 420px;
  }
}

/* Small Desktop / Large Tablet */
@media (min-width: 900px) and (max-width: 1023px) {
  .edge-detection-module__content {
    grid-template-columns: 1fr 380px;
  }
  
  .edge-detection-module {
    padding: 24px 30px;
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 899px) {
  .edge-detection-module__content {
    grid-template-columns: 1.1fr 340px;
    gap: 20px;
  }
  
  .edge-detection-module {
    padding: 20px 24px;
  }
  
  .edge-detection-module__feed-container {
    min-height: 400px;
  }
}

/* Large Mobile / Small Tablet */
@media (min-width: 600px) and (max-width: 767px) {
  .edge-detection-module__content {
    grid-template-columns: 1.2fr 300px;
    gap: 16px;
  }
  
  .edge-detection-module {
    padding: 16px 20px;
  }
  
  .edge-detection-module__feed-container {
    min-height: 350px;
  }
  
  .status-indicator {
    padding: 16px;
    gap: 12px;
  }
  
  .status-indicator__icon {
    font-size: 28px;
  }
  
  .status-indicator__text {
    font-size: 14px;
  }
  
  .switches-panel,
  .alerts-panel {
    padding: 16px;
  }
}

/* Medium Mobile */
@media (min-width: 480px) and (max-width: 599px) {
  .edge-detection-module__content {
    grid-template-columns: 1fr 260px;
    gap: 12px;
  }
  
  .edge-detection-module {
    padding: 14px 16px;
  }
  
  .edge-detection-module__feed-container {
    min-height: 300px;
  }
  
  .status-indicator {
    padding: 14px;
    gap: 10px;
  }
  
  .status-indicator__icon {
    font-size: 24px;
  }
  
  .status-indicator__text {
    font-size: 13px;
  }
  
  .switches-panel,
  .alerts-panel {
    padding: 14px;
  }
  
  .switches-panel__header h3,
  .alerts-panel__header h3 {
    font-size: 14px;
  }
  
  .switches-list,
  .alert-log {
    max-height: 180px;
  }
  
  .switch-item {
    padding: 12px;
  }
  
  .switch-item__name {
    font-size: 12px;
  }
  
  .switch-item__location {
    font-size: 10px;
  }
}

/* Small Mobile */
@media (max-width: 479px) {
  .edge-detection-module__content {
    grid-template-columns: 1fr 220px;
    gap: 10px;
  }
  
  .edge-detection-module {
    padding: 12px 14px;
  }
  
  .edge-detection-module__feed-container {
    min-height: 280px;
  }
  
  .status-indicator {
    padding: 12px;
    gap: 8px;
    flex-direction: column;
  }
  
  .status-indicator__icon {
    font-size: 28px;
  }
  
  .status-indicator__text {
    font-size: 12px;
  }
  
  .switches-panel,
  .alerts-panel {
    padding: 12px;
  }
  
  .switches-panel__header h3,
  .alerts-panel__header h3 {
    font-size: 13px;
  }
  
  .switches-list,
  .alert-log {
    gap: 8px;
    max-height: 150px;
  }
  
  .switch-item {
    padding: 10px;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .switch-item__name {
    font-size: 11px;
  }
  
  .switch-item__location {
    font-size: 9px;
  }
  
  .switch-item__status {
    padding: 4px 8px;
    font-size: 9px;
  }
  
  .switch-item__status-indicator {
    width: 6px;
    height: 6px;
  }
  
  .switch-item__actions {
    width: 100%;
    gap: 6px;
  }
  
  .switch-item__actions .btn {
    flex: 1;
    padding: 6px 8px;
    font-size: 9px;
  }
  
  .alert-item {
    padding: 10px;
    gap: 4px;
  }
  
  .alert-item__time {
    font-size: 9px;
  }
  
  .alert-item__message {
    font-size: 11px;
  }
  
  .alert-item__switch {
    font-size: 10px;
  }
  
  .action-buttons {
    gap: 8px;
  }
  
  .action-buttons .btn {
    padding: 10px;
    font-size: 10px;
  }
}

/* Extra Small Mobile */
@media (max-width: 380px) {
  .edge-detection-module__content {
    grid-template-columns: 1fr 180px;
    gap: 8px;
  }
  
  .edge-detection-module {
    padding: 10px 12px;
  }
  
  .status-indicator {
    padding: 10px;
  }
  
  .switches-panel,
  .alerts-panel {
    padding: 10px;
  }
}

/* KIOSK MODE – 800x480 */
@media (min-width: 480px) and (max-width: 800px) and (min-height: 320px) and (max-height: 480px) {
  html, body {
    width: 100vw;
    height: 100vh;
    margin: 0;
    overflow: hidden;
    font-size: 12px;
  }

  .edge-detection-module {
    padding: 12px 16px;
    gap: 12px;
    height: 100vh;
  }

  .edge-detection-module__header {
    padding-bottom: 8px;
  }

  .edge-detection-module__content {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 12px;
    height: calc(100vh - 80px);
  }

  .edge-detection-module__feed {
    border-radius: 14px;
    order: 1;
  }

  .edge-detection-module__feed-container {
    min-height: auto;
    height: 100%;
  }

  .scanning-line {
    height: 2px;
  }

  .hud-status {
    font-size: 8px;
    padding: 4px 8px;
    bottom: 8px;
    left: 8px;
  }

  .edge-detection-module__sidebar {
    gap: 10px;
    padding-right: 2px;
    max-height: none;
    order: 2;
  }

  .status-indicator {
    padding: 12px;
    border-radius: 14px;
    gap: 10px;
  }

  .status-indicator__icon {
    font-size: 24px;
  }

  .status-indicator__text {
    font-size: 12px;
  }

  .switches-panel,
  .alerts-panel {
    padding: 12px;
    border-radius: 14px;
  }

  .switches-panel__header,
  .alerts-panel__header {
    margin-bottom: 10px;
  }

  .switches-panel__header h3,
  .alerts-panel__header h3 {
    font-size: 13px;
  }

  .switches-list,
  .alert-log {
    gap: 8px;
    max-height: 150px;
  }

  .switch-item {
    padding: 10px;
    border-radius: 10px;
    gap: 8px;
  }

  .switch-item__name {
    font-size: 11px;
  }

  .switch-item__location {
    font-size: 9px;
  }

  .switch-item__status {
    padding: 4px 8px;
    font-size: 9px;
    border-radius: 6px;
  }

  .switch-item__status-indicator {
    width: 6px;
    height: 6px;
  }

  .switch-item__actions {
    gap: 6px;
  }

  .switch-item__actions .btn {
    padding: 5px 10px;
    font-size: 9px;
  }

  .alert-item {
    padding: 10px;
    border-radius: 10px;
    border-left-width: 2px;
    gap: 4px;
  }

  .alert-item__time {
    font-size: 8px;
  }

  .alert-item__message {
    font-size: 10px;
  }

  .alert-item__switch {
    font-size: 9px;
  }

  .action-buttons {
    gap: 8px;
  }

  .action-buttons .btn {
    padding: 10px 12px;
    font-size: 10px;
  }

  .edge-detection-module .modal--small {
    width: 90vw;
    max-width: 90vw;
  }

  .edge-detection-module .modal {
    padding: 16px;
    gap: 12px;
  }

  .edge-detection-module .modal__header h2 {
    font-size: 16px;
  }

  .edge-detection-module .modal__header p {
    font-size: 11px;
    margin-top: 4px;
  }

  .edge-detection-module .modal__header .btn--icon {
    width: 28px;
    height: 28px;
    font-size: 18px;
  }

  .edge-detection-module .modal__body {
    padding-top: 12px;
  }

  .edge-detection-module .form label {
    font-size: 9px;
    margin-bottom: 6px;
  }

  .edge-detection-module .form input,
  .edge-detection-module .form select {
    padding: 10px 12px;
    font-size: 12px;
    border-radius: 10px;
  }

  .edge-detection-module .form label + input,
  .edge-detection-module .form label + select {
    margin-bottom: 14px;
  }

  .edge-detection-module .form__actions {
    gap: 8px;
    margin-top: 6px;
  }

  .edge-detection-module .form__actions .btn {
    padding: 10px 14px;
    font-size: 10px;
  }

  .all-alerts-list {
    gap: 12px;
    max-height: 300px;
    padding-right: 8px;
  }

  .all-alert-item {
    padding: 14px;
    border-radius: 12px;
    border-left-width: 3px;
  }

  .all-alert-item__header {
    margin-bottom: 8px;
  }

  .all-alert-item__switch {
    font-size: 12px;
  }

  .all-alert-item__time {
    font-size: 9px;
  }

  .all-alert-item__message {
    font-size: 11px;
    margin-bottom: 6px;
  }

  .all-alert-item__location {
    font-size: 9px;
  }

  .no-alerts {
    padding: 40px 16px;
    font-size: 12px;
  }

  .hud-button--icon {
    padding: 6px;
  }

  .hud-button--icon svg {
    width: 18px;
    height: 18px;
  }
}

/* Landscape Mode - Keep side by side */
@media (max-height: 600px) and (orientation: landscape) {
  .edge-detection-module {
    padding: 12px 16px;
  }
  
  .edge-detection-module__content {
    grid-template-columns: 1.3fr 320px;
    gap: 16px;
  }
  
  .edge-detection-module__feed-container {
    min-height: 250px;
  }
}

/* Very Short Screens */
@media (max-height: 500px) {
  .edge-detection-module {
    padding: 10px 14px;
  }
  
  .edge-detection-module__content {
    grid-template-columns: 1.4fr 280px;
  }
  
  .edge-detection-module__feed-container {
    min-height: 200px;
  }
  
  .status-indicator {
    padding: 12px;
  }
  
  .switches-panel,
  .alerts-panel {
    padding: 12px;
  }
  
  .switches-list,
  .alert-log {
    max-height: 120px;
  }
}

/* HUD Scan Ring Scaling */
@media (max-width: 768px) {
  .hud-scan__ring {
    width: 280px;
    height: 280px;
  }
  
  .hud-scan__ring--inner {
    width: 170px;
    height: 170px;
  }
}

@media (max-width: 600px) {
  .hud-scan__ring {
    width: 220px;
    height: 220px;
  }
  
  .hud-scan__ring--inner {
    width: 130px;
    height: 130px;
  }
}

@media (max-width: 480px) {
  .hud-scan__ring {
    width: 180px;
    height: 180px;
  }
  
  .hud-scan__ring--inner {
    width: 110px;
    height: 110px;
  }
}

@media (max-width: 380px) {
  .hud-scan__ring {
    width: 150px;
    height: 150px;
  }
  
  .hud-scan__ring--inner {
    width: 90px;
    height: 90px;
  }
}

/* Scrollbar refinements for small screens */
@media (max-width: 768px) {
  .edge-detection-module__sidebar::-webkit-scrollbar,
  .switches-list::-webkit-scrollbar,
  .alert-log::-webkit-scrollbar,
  .all-alerts-list::-webkit-scrollbar {
    width: 4px;
  }
}


/* body {
    cursor: none;
} * {
    cursor: none !important;
} html {
    touch-action: manipulation; 
    -ms-touch-action: manipulation;
} */