/* =========================
   Global Reset & Defaults
   ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Euclid Circular A", sans-serif;
  line-height: 1.6;
  background: #fdfdfd;
  color: #333;
}

/* =========================
   Navbar
   ========================= */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #800020; /* Burgundy */
  padding: 10px 20px;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  padding-left: 5px;
}

.logo-circle {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  overflow: hidden; /* image ko circle ke andar crop karega */
}

.logo-circle img {
  width: 70%;
  height: 70%;
  object-fit: contain; /* resize without distortion */
}

.logo-text {
  font-size: 18px;
  font-weight: bold;
  color: #fff;
}

/* Desktop Nav */
.desktop-nav ul {
  display: flex;
  list-style: none;
}

.desktop-nav ul li {
  position: relative;
  margin-left: 20px;
}

.desktop-nav ul li a {
  color: #fff;
  text-decoration: none;
  padding: 8px;
  display: block;
  transition: color 0.3s ease;
}

.desktop-nav ul li:hover > a {
  color: #ffccd5; /* Light Burgundy shade */
}

/* Submenu (desktop) */
.desktop-nav ul li ul.submenu {
  position: absolute;
  background: #fff;
  padding: 8px 0;
  list-style: none;
  margin: 0;
  top: calc(100% + 10px);
  left: 0;
  min-width: 200px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  border: 1px solid #ddd;
  border-radius: 8px;
  z-index: 1000;

  display: flex;
  flex-direction: column;

  /* hidden by default */
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
}

.desktop-nav ul li:hover ul.submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.desktop-nav ul li ul.submenu li a {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  color: #333;
  border-radius: 6px;
}

.desktop-nav ul li ul.submenu li a:hover {
  color: #800020;
  font-weight: bold;
  background: #f9f9f9;
}

/* Submenu Arrow */
.desktop-nav .arrow {
  font-size: 0.7em;
  margin-left: 5px;
}

/* =========================
   Mobile Nav
   ========================= */
.menu-toggle {
  font-size: 24px;
  cursor: pointer;
  display: none;
  color: #fff;
}

.mobile-nav {
  display: none;
  background: #800020;
  padding: 15px;
}

.mobile-nav ul {
  list-style: none;
}

.mobile-nav ul li {
  position: relative;
}

.mobile-nav ul li a {
  display: block;
  padding: 10px;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.mobile-nav ul li a:hover {
  color: #ffccd5;
}

/* Mobile submenu toggle (+ icon) */
.submenu-toggle {
  position: absolute;
  right: 15px;
  top: 12px;
  cursor: pointer;
  font-size: 18px;
  color: #fff;
}

.mobile-nav ul li ul {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

/* =========================
   Page Content
   ========================= */
.content {
  padding: 40px;
  text-align: center;
}

h1, h3 {
  color: #800020;
}

button {
  background: #800020;
  color: #fff;
  border: none;
  padding: 10px 20px;
  margin: 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background: #a52a3c; /* lighter burgundy */
  color: #fff;
}

.card {
  background: #fff;
  margin: 20px auto;
  padding: 20px;
  /* max-width: 400px; */
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.card-body .form-label {
  display: block;
  text-align: left !important;
  font-weight: 700; /* optional: थोड़ा bold look */
}

.form-label span.required {
  color: red;
  font-weight: bold;
}

/* Select2 single select height fix */
.select2-container .select2-selection--single {
  height: 39.5px !important;   /* 👈 अपनी जरूरत के हिसाब से बढ़ा सकते हो */
  display: flex;
  align-items: left;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  padding: 6px 12px;
  font-size: 1rem;
}

/* Dropdown arrow align fix */
.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 46px !important;
  right: 10px;
}
/* Select2 text ko left align kare */
.select2-container .select2-selection--single .select2-selection__rendered {
  text-align: left !important;
  padding-left: 8px;   /* thoda left padding */
}

/* =========================
   Footer
   ========================= */
.footer {
  background: #800020;
  color: #fff;
  text-align: center;
  padding: 15px;
  margin-top: 40px;
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .mobile-nav {
    display: none;
  }
  .mobile-nav.active {
    display: block;
  }
}

/* //=========|user-info-container|=================== */
.user-info-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto; /* push to right on desktop */
    color: #fff;
    font-family: Arial, sans-serif;
    padding-left: 10px;

}

.user-text {
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
    line-height: 1.2;
}

.user-name {
    font-weight: bold;
}

.user-email {
    font-size: 0.75rem;
    color: #ccc;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .user-info-container {
        order: -1; /* move above nav on mobile */
        margin-left: 0;
        margin-bottom: 10px;
        width: 100%;
        justify-content: flex-start;
    }

    .user-text {
        font-size: 0.8rem;
    }
}
/*-----------------------*/
html,
body {
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main.content {
    flex: 1;
}

.footer {
    margin-top: auto;
}


.btn-burgundy {
    background-color: #800020 !important;
    border: 1px solid #800020 !important;
    color: #fff !important;
    padding: 5px 12px !important;
    font-size: 13px !important;
    font-weight: 500;
    border-radius: 4px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-burgundy:hover,
.btn-burgundy:focus {
    background-color: #54101c !important;
    border-color: #54101c !important;
    color: #fff !important;
}