/* ================================
   LICENSE PLATES - SIMPLIFIED SYSTEM
   ================================ */

/* Base styles for all plates */
.plate-base {
  position: relative;
  font-family: "Arial", sans-serif;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  border-radius: 4px;
  padding: 0;
  height: 50px;
  overflow: hidden;
  margin: 0 auto;
  max-width: 210px;
  width: auto;
}

/* Plates in cards - aligned left */
.parking-card .plate-base,
.parking-card-plate .plate-base {
  margin: 0;
}

/* Country flag section */
.country-flag-section {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 45px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px;
  background: #003399;
  border-right: 1px solid #000;
}

/* Country flag emoji */
.country-flag-emoji {
  font-size: 24px;
  line-height: 1;
  display: block;
}

.country-flag-svg,
.country-flag-img {
  width: 24px;
  height: 16px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* EU Flag */
.eu-flag-svg {
  width: 24px;
  height: 24px;
  background-image: url("https://olimpiaparking.com/wp-content/uploads/2025/05/european-flag-svgrepo-com.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: brightness(0) saturate(100%) invert(84%) sepia(75%) saturate(2000%)
    hue-rotate(15deg) brightness(95%) contrast(90%);
}

/* Country code */
.country-code {
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  margin-top: 2px;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.8);
}

/* License plate number section */
.license-plate-number {
  flex: 1;
  text-align: center;
  padding-left: 55px;
  padding-right: 10px;
}

.license-plate-number strong {
  font-size: 18px !important;
  font-weight: 900 !important;
  color: #000 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
  font-family: "Arial", sans-serif !important;
}

/* ================================
   ROMANIA PLATES
   ================================ */
.plate-ro-permanent,
.plate-ro-provisional,
.plate-eu-permanent {
  background: linear-gradient(145deg, #fff 0%, #f8f9fa 100%);
  border: 1px solid #000;
}

.plate-ro-provisional .license-plate-number strong {
  color: #c00 !important;
}

/* ================================
   GENERIC PLATES (NON-EU COUNTRIES)
   ================================ */
.plate-generic {
  background: #fff;
  border: 1px solid #000;
}

.plate-generic .country-flag-section {
  background: #fff;
  border-right: 1px solid #e0e0e0;
}

.plate-generic .country-code {
  color: #333;
  text-shadow: none;
}

/* Non-EU plates specific flag styles */
.plate-generic .country-flag-emoji {
  font-size: 24px;
  line-height: 1;
  display: block;
}

/* Visual plates for forms and previews */
.visual-license-plate {
  position: relative;
  font-family: "Arial Black", Arial, sans-serif;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  border-radius: 4px;
  padding: 0;
  height: 50px;
  overflow: hidden;
  margin: 0 auto;
  max-width: 220px;
  width: 100%;
}

/* Card-specific plates */
.license-plate-card {
  position: relative;
  font-family: "Arial", sans-serif;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  border-radius: 3px;
  padding: 0;
  height: 35px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  width: 100%;
}

/* Country flag section for cards */
.country-flag-section-card {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 30px;
  background: #003399;
  border-right: 1px solid #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2px;
}

/* Country flag emoji for cards */
.country-flag-emoji-card {
  font-size: 16px;
  line-height: 1;
  display: block;
}

.eu-flag-svg-card {
  width: 16px;
  height: 16px;
  background-image: url("https://olimpiaparking.com/wp-content/uploads/2025/05/european-flag-svgrepo-com.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: brightness(0) saturate(100%) invert(84%) sepia(75%) saturate(2000%)
    hue-rotate(15deg) brightness(95%) contrast(90%);
}

.country-flag-svg-card {
  width: 16px;
  height: 12px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.country-code-card {
  color: #fff;
  font-size: 7px;
  font-weight: 900;
  margin-top: 1px;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.8);
}

.license-plate-number-card {
  flex: 1;
  text-align: center;
  padding-left: 35px;
  padding-right: 5px;
}

.license-plate-number-card strong {
  font-size: 16px !important;
  font-weight: 900 !important;
  color: #000 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
  font-family: "Arial Black", Arial, sans-serif !important;
}

/* Responsive */
@media (max-width: 768px) {
  .visual-license-plate,
  .plate-base {
    height: 45px;
  }

  .license-plate-number strong {
    font-size: 16px !important;
  }

  .country-flag-section {
    width: 40px;
  }

  .eu-flag-svg {
    width: 20px;
    height: 20px;
  }

  .country-flag-emoji {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .visual-license-plate,
  .plate-base {
    height: 40px;
    max-width: 150px;
  }

  .license-plate-number strong {
    font-size: 14px !important;
    letter-spacing: 1px !important;
  }

  .country-flag-section {
    width: 35px;
  }

  .eu-flag-svg {
    width: 18px;
    height: 18px;
  }

  .country-flag-emoji {
    font-size: 18px;
  }
}
