@tailwind base;
@tailwind components;
@tailwind utilities;

html, body {
  height: 100%;
}
/* Phone input base */
.phone-input-wrapper {
  display: flex;
  align-items: center;
  border-radius: 0.75rem;
  border: 1px solid;
  padding: 0.125rem 0.75rem;
  gap: 0.5rem;
  font-size: 0.875rem;
  transition: box-shadow 0.15s;
}

.phone-input-wrapper:focus-within {
  outline: none;
  box-shadow: 0 0 0 2px #FBAE17;
}

/* Dark mode */
.phone-input-wrapper.dark {
  border-color: rgb(64 64 64);
  background: transparent;
  color: white;
}

.phone-input-wrapper.dark input {
  background: transparent;
  color: white;
}

.phone-input-wrapper.dark input::placeholder {
  color: rgb(82 82 82);
}

/* Light mode */
.phone-input-wrapper.light {
  border-color: rgb(212 212 212);
  background: transparent;
  color: black;
}

.phone-input-wrapper.light input {
  background: transparent;
  color: black;
}

/* Shared input styles */
.phone-input-wrapper input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.875rem;
  padding: 0.5rem 0;
}

/* Country select button */
.phone-input-wrapper .PhoneInputCountry {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.phone-input-wrapper.dark .PhoneInputCountrySelect {
  background: #171717;
  color: white;
  border: none;
}

.phone-input-wrapper.light .PhoneInputCountrySelect {
  background: white;
  color: black;
  border: none;
}