@tailwind base;
@tailwind components;
@tailwind utilities;

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

@font-face {
    font-family: 'Faruma';
    src: url('/webfonts/Faruma.woff2') format('woff2'), url('/webfonts/Faruma.woff') format('woff'), url('/fonts/Faruma.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    margin-bottom: 60px;
    background-color: white;
}
.dhivehi {

    font-family: 'Faruma', sans-serif;
}


.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.glow-sm {
    box-shadow: 0 0 6px rgba(26, 188, 156, 0.4);
    transition: 0.3s ease-in-out;
}

    .glow-sm:hover {
        box-shadow: 0 0 12px rgba(26, 188, 156, 0.6);
    }

.glass-body {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}


.white-glass {
    max-width: 1440px;
    margin: 1rem auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

.overflow-visible {
    overflow: visible !important;
}


.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
}

/* === Language-specific font support === */

@font-face {
    font-family: 'Faruma';
    src: url('/fonts/Faruma.ttf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

[lang="dv"] {
    font-family: 'Faruma', sans-serif;
    direction: rtl;
}


input[lang="dv"]::placeholder {
    font-family: 'Faruma', sans-serif !important;
    direction: rtl;
}
