/* ui_theme.css
 Pyara Rishta — Modern UI Theme (Glass Edition 2025)
 ---------------------------------------------------
 - Glassmorphic UI with blur and translucency
 - Fixed visible dropdown arrows (cross-browser)
 - Uniform alignment for labeled/unlabeled fields
 - Consistent buttons, forms, cards, and focus states
 - Fixed field-icon alignment inside text fields
*/

/* ================================
   GREAT VIBES FONT
================================ */

@font-face {
  font-family: 'Great Vibes';
  src: url('/assets/fonts/Inter-SemiBold.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}


:root {
  --brand-1: #ff6b81; /* primary pink */
  --brand-2: #ff7f50; /* coral */
  --accent: #e63946;
  --muted: #6b7280;
  --bg-1: #fffaf7;
  --glass: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
  --card-radius: 16px;
  --control-radius: 12px;
  --shadow-1: 0 6px 20px rgba(0, 0, 0, 0.08);
  --shadow-2: 0 10px 30px rgba(0, 0, 0, 0.12);
  --focus-ring: 0 0 0 0.18rem rgba(230, 57, 70, 0.18);
  --max-width: 1100px;
}

/* ---------------- Base ---------------- */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Inter', system-ui, -apple-system,
               'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  background: linear-gradient(135deg, var(--bg-1), #fff9fb);
  color: #222;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.container-max {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 18px;
}

/* ---------------- Navbar ---------------- */
.glass-navbar {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-1);
}
.navbar-brand img { height: 50px; }
.navbar .nav-link {
  color: #333;
  font-weight: 600;
  transition: color .18s ease;
}
.navbar .nav-link:hover { color: var(--accent) !important; }
/* ---------------- Cards ---------------- */
.universal-card {
  background: var(--glass);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-1);
  padding: 1.6rem;
  transition: transform .28s ease, box-shadow .28s ease;
}
.universal-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2);
}

/* ---------------- Form Header ---------------- */
.form-header {
  text-align: center;
  margin-bottom: 1rem;
}
.form-header .title {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.3rem;
}
.form-header .subtitle {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------------- Inputs ---------------- */
.input-group-modern {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.input-group-modern input,
.input-group-modern textarea,
.input-group-modern select {
  width: 100%;
  padding: 14px 14px;
  border-radius: var(--control-radius);
  border: 1px solid rgba(16,24,40,0.08);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);
  transition: box-shadow .18s ease, border-color .18s ease, transform .12s ease;
  font-size: 0.95rem;
}
.input-group-modern input::placeholder,
.input-group-modern textarea::placeholder {
  color: #9aa3ad;
  font-weight: 500;
}
.input-group-modern input:focus,
.input-group-modern textarea:focus,
.input-group-modern select:focus {
  outline: none;
  box-shadow: var(--focus-ring);
  border-color: var(--accent);
}
.input-label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #2b2b2b;
}
.helper-text {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------------- Dropdowns ---------------- */
.form-select.custom {
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(16,24,40,0.08);
  border-radius: var(--control-radius);
  padding: 14px 40px 14px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #2b2b2b;
  transition: box-shadow .18s ease, border-color .18s ease, transform .12s ease;
  cursor: pointer;
}
.form-select.custom::-ms-expand { display: none; }
.form-select.custom {
  background-image: url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg' fill='%236b7280' viewBox='0 0 24 24'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
}
.form-select.custom:focus {
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
  background-image: url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg' fill='%23e63946' viewBox='0 0 24 24'><path d='M7 14l5-5 5 5z'/></svg>");
  background-size: 14px;
  background-position: right 14px center;
  transition: background-image 0.3s ease;
}
.form-select.custom:hover {
  border-color: rgba(230,57,70,0.3);
}

/* ---------------- Textareas ---------------- */
textarea.form-control {
  min-height: 110px;
  resize: vertical;
}

/* ---------------- Buttons ---------------- */
.btn-primary-modern {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(45deg, var(--brand-1), var(--brand-2));
  color: white;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(255,107,129,0.14);
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn-primary-modern:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(255,107,129,0.18);
}

/* ---------------- Ripple ---------------- */
.ripple {
  position: relative;
  overflow: hidden;
}
.ripple::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255,255,255,0.35);
  width: 100px;
  height: 100px;
  opacity: 0;
  pointer-events: none;
  transition: transform .6s ease, opacity .6s ease;
}
.ripple:active::after {
  transform: scale(2);
  opacity: 1;
  transition: 0s;
}

/* ---------------- Validation ---------------- */
.is-invalid { border-color: #dc3545 !important; }
.invalid-feedback { color: #dc3545; font-size: 0.88rem; }
.is-valid { border-color: #28a745 !important; }

/* ---------------- Profile Picture ---------------- */
.profile-pic {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,0.8);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* ---------------- Icon Alignment Fix ---------------- */
.with-icon.input-group-modern {
  position: relative;
  display: block !important;
}
.with-icon.input-group-modern input.form-control {
  position: relative;
  z-index: 1;
  padding-left: 42px !important;
}
.with-icon .field-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 1.05rem;
  opacity: 0.9;
  pointer-events: none;
  transition: color 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
  z-index: 2;
}
.with-icon input.form-control:focus ~ .field-icon {
  color: var(--accent);
  opacity: 1;
  transform: translateY(-50%) scale(1.05);
}

/* ---------------- Utilities ---------------- */
.text-muted { color: var(--muted); }
.center { display: flex; justify-content: center; align-items: center; }
.mt-1 { margin-top: 8px; }
.mb-1 { margin-bottom: 8px; }

@media (max-width: 992px) {
  .container-max { padding: 0 14px; }
}
:focus { outline: none; box-shadow: var(--focus-ring); }


#safetyTipsCard {
  background: #fffdfc;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  border-radius: 1rem;
  transition: all 0.3s ease;
}
#safetyTipsCard:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

/* Login Form Activity Indicator */

/* ---------------- Fullscreen Loading Overlay ---------------- */
#loadingOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

#loadingOverlay .loader-wrapper {
  display: flex;
  align-items: center;
  flex-direction: column;
}

#loadingOverlay p {
  margin-top: 14px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
}

/* 🌸 Animated Circular Loader */
#loadingOverlay .loader {
  width: 55px;
  height: 55px;
  border: 5px solid rgba(255, 107, 129, 0.2);
  border-top-color: var(--brand-1);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


/* for toast CSS */

/* --------------------------------------------------
   Modern Toast Notification (for showToast)
-------------------------------------------------- */
.toast-modern {
  position: fixed;
  top: 18px;
  right: 18px;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.96rem;
  color: #fff;
  z-index: 999999;
  opacity: 0;
  transform: translateY(-15px);
  transition: opacity .35s ease, transform .35s ease;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  backdrop-filter: blur(12px);
}

.toast-modern.visible {
  opacity: 1;
  transform: translateY(0);
}

.toast-success {
  background: linear-gradient(45deg, #4ade80, #22c55e);
}

.toast-error {
  background: linear-gradient(45deg, #ef4444, #dc2626);
}

.toast-info {
  background: linear-gradient(45deg, #3b82f6, #2563eb);
}

.toast-body {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast-body .icon {
  font-size: 1.15rem;
}


/* For Profile Picture of home view */


/* -----------------------------------------
   🌟 PERFECT RESPONSIVE PROFILE GRID
   Mobile → Tablet → Desktop
----------------------------------------- */

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.4rem;
}

/* Mobile first (default) --> 1 card per row */
@media (max-width: 480px) {
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* Medium screens (2 cards per row) */
@media (min-width: 481px) and (max-width: 768px) {
  .profile-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.4rem;
  }
}

/* Tablets (up to 3 per row) */
@media (min-width: 769px) and (max-width: 1024px) {
  .profile-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
  }
}

/* Big desktops */
@media (min-width: 1025px) {
  .profile-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
  }
}
h1, h2, h3, h4, h5,
.navbar,
.form-header .title {
  font-family: 'Poppins', 'Inter', system-ui, sans-serif;
  font-weight: 600;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter-Regular.otf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter-SemiBold.otf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
body {
  font-family: 'Inter', system-ui, sans-serif;
}
