@use 'variables' as v;
@use 'buttons';
@use "sass:color";

body {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #2c3e50;
  font-family: v.$font-stack;
}

.interface-container {
  width: v.$width;
  height: v.$height;
  background-color: v.$color-bg;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
  border: 4px solid v.$color-primary;
  display: flex;
  flex-direction: column;

  &::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    pointer-events: none;
    z-index: 0;
  }
}

.header {
  padding: v.$spacing-unit * 2;
  background-color: rgba(v.$color-primary, 0.1);
  border-bottom: 2px solid v.$color-primary;
  z-index: 1;

  &__vehicle-name {
    margin: 0;
    color: v.$color-accent;
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.8;
  }

  &__location {
    margin: 5px 0 0 0;
    color: v.$color-text;
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(v.$color-primary, 0.5);
  }
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 5px rgba(v.$color-success, 0.2); opacity: 0.8; }
  50% { box-shadow: 0 0 20px rgba(v.$color-success, 0.6); opacity: 1; }
  100% { box-shadow: 0 0 5px rgba(v.$color-success, 0.2); opacity: 0.8; }
}

.control-panel {
  flex: 1;
  padding: v.$spacing-unit * 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: v.$spacing-unit * 2;
  z-index: 1;

  &__status {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(v.$color-accent, 0.3);
    border-radius: v.$border-radius;
    padding: v.$spacing-unit;
    margin-bottom: v.$spacing-unit;
    
    h3 {
      margin-top: 0;
      color: v.$color-accent;
      font-size: 1rem;
      text-transform: uppercase;
      border-bottom: 1px solid rgba(v.$color-accent, 0.3);
      padding-bottom: 0.5rem;
    }
  }
  
  &__flex {
    display: flex;
    justify-content: v.$justify-content;
    gap: v.$spacing-unit;
    margin-bottom: v.$spacing-unit;
  }

  &__data-point {
    color: v.$color-text;
    padding: 0.5rem;
    background: rgba(v.$color-primary, 0.1);
    border-radius: 4px;
    border-left: 2px solid v.$color-primary;
    
    label {
      display: block;
      font-size: 0.8rem;
      color: rgba(v.$color-text, 0.7);
    }
    
    span {
      display: block;
      font-size: 1.2rem;
      font-weight: bold;

      &.status-indicator {
        color: v.$color-success;
        text-shadow: 0 0 10px v.$color-success;
        animation: pulse-glow 2s infinite;
        font-weight: bold;
      }
    }
  }

  &__actions {
    margin-top: auto;
    padding-bottom: v.$spacing-unit * 2;
  }
}