:root {
  --font-poppins: 'Poppins', sans-serif;
  --type-hero-size: 3rem;
  --type-hero-weight: 800;
  --type-title-size: 2rem;
  --type-title-weight: 700;
  --type-section-size: 1.25rem;
  --type-section-weight: 600;
  --type-body-size: 1rem;
  --type-body-weight: 500;
  --type-helper-size: 0.875rem;
  --type-helper-weight: 400;
  --type-overline-size: 0.625rem;
  --type-overline-weight: 600;
  --type-overline-spacing: 0.1em;
  --button-radius: 0.75rem;
  --button-height-sm: 2rem;
  --button-height-md: 2.25rem;
  --button-height-lg: 2.5rem;
  --button-shadow: 0 5px 12px rgba(30, 58, 95, 0.16);
  --button-focus: 0 0 0 3px rgba(245, 184, 0, 0.24);
}

body,
button,
input,
select,
textarea {
  font-family: var(--font-poppins);
}

h1 {
  font-size: var(--type-hero-size);
  font-weight: var(--type-hero-weight);
}

h2 {
  font-size: var(--type-title-size);
  font-weight: var(--type-title-weight);
}

h3,
h4,
h5 {
  font-size: var(--type-section-size);
  font-weight: var(--type-section-weight);
}

p,
label,
input,
select,
textarea,
.btn {
  font-size: var(--type-body-size);
  font-weight: var(--type-body-weight);
}

.btn,
.btn-login,
button.btn-custom-login,
.search-btn,
.clear-btn {
  min-height: var(--button-height-md);
  border-radius: var(--button-radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-poppins);
  font-size: var(--type-helper-size);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.btn:focus-visible,
.btn-login:focus-visible,
button.btn-custom-login:focus-visible,
.search-btn:focus-visible,
.clear-btn:focus-visible {
  outline: none;
  box-shadow: var(--button-focus);
}

small,
.text-muted,
.metadata {
  font-size: var(--type-helper-size);
  font-weight: var(--type-helper-weight);
}

.overline,
thead th {
  font-size: var(--type-overline-size);
  font-weight: var(--type-overline-weight);
  letter-spacing: var(--type-overline-spacing);
  text-transform: uppercase;
}

:root {
  --accent: #a71111;
  --accent-light: #a03434;
  /* deep red */
  --accent-dark: #8c0f0f;
  --muted: #f6f6f6;
  --text: #222;
  --radius: 5px;
  --sidebar-width: 280px;
  --max-content-width: 760px;
  font-family: 'Poppins', sans-serif;
}

/* reset */
* {
  /* box-sizing: border-box */
}

a {
  color: inherit;
  text-decoration: none
}

/* MAIN WRAPPER USING FLEX */
.main-container {
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR */
.user-sidebar {
  background: var(--accent);
  width: 20%;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  color: #fff;
  overflow-y: auto;
}

/* MAIN CONTENT */
.user-main-content {
  flex: 1;
  margin-left: 20%;
  /* same as sidebar width */
  /* padding: 20px; */
  background: #f8f8f8;
  min-height: 100vh;
}

/* ===========================
      RESPONSIVE
=========================== */

/* TABLET */
@media (max-width: 992px) {
  .user-sidebar {
    width: 25%;
  }

  .user-main-content {
    margin-left: 25%;
  }
}

/* MOBILE */
@media (max-width: 768px) {

  /* sidebar becomes top bar */
  .user-sidebar {
    position: relative;
    width: 100%;
    height: auto;
  }

  .main-container {
    flex-direction: column;
  }

  .user-main-content {
    margin-left: 0;
  }
}


.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;           /* remove fixed height */
  padding: 10px 0;        /* replace margin logic */
}

.logo img {
  max-height: 80px;       /* desktop default */
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Tablet */
@media (max-width: 768px) {
  .logo img {
    max-height: 60px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .logo img {
    max-height: 45px;
  }
}

.user-sidebar .sidebar-menu-box {
  padding: 20px;
}

.user-sidebar .sidebar-menu-box .auth-links {
  font-size: 16px !important;
}

.auth-links a {
  text-decoration: underline;
}

.user-sidebar .sidebar-menu-box .side-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.user-sidebar .sidebar-menu-box .side-nav .nav-item {
  padding: 4px 0 8px 8px;
  /* color: #fff; */
  font-size: 14px;
  /* margin: 11px 0; */
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.user-sidebar .sidebar-menu-box .side-nav .nav-item i {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 2px solid var(--theme-text-color);
  border-radius: 50%;
  /* color: #fff; */
  margin-right: 10px;
  font-size: 14px;

  transition: 0.3s ease;
}

/* 🔥 Hover effect — Fill background */
.user-sidebar .sidebar-menu-box .side-nav .nav-item:hover i {
  background-color: var(--theme-text-color);
  color: var(--primary-theme-color);
  border-color:  var(--theme-text-color);
}

/* 🔥 Hover effect — Fill background */
.user-sidebar .sidebar-menu-box .side-nav .nav-item.active i {
  background-color: var(--theme-text-color);
  color: var(--primary-theme-color);
  border-color:  var(--theme-text-color);
}

.search-bar {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 350px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 30px;
  padding: 0px;
  padding-left: 5px;
  margin: 10px 0;
  overflow: hidden;
}

.search-input {
  border: none;
  outline: none;
  flex: 1;
  padding: 0px 10px;
  font-size: 14px;
  background: transparent;
}

.search-btn {
  border: none;
  background: transparent;
  /* gold color */
  color: #000;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

/* LOGIN */

/* WRAPPER */
.container-content-wrapper {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* padding: 30px 20px; */
  background: #f5f5f5;
}

.user-page-title {
  background: var(--accent);
  padding: 10px 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
  font-size: 22px;
  font-weight: 600;
  color: #fff;
}

.user-page-title span {
  flex: 1;
  text-align: center;
}

.user-page-title.back-btn a {
  float: right;
  cursor: pointer;
}

/* LOGIN CARD */
.login-card {
  background: rgba(0, 0, 0, 0.02);
  padding: 40px;
  width: 100%;
  max-width: 550px;
  margin: 4rem auto;
  border-radius: var(--radius);
  box-shadow: 0px 0px 10px 0 rgba(0, 0, 0, 0.1)
}

/* CARD TITLES */
.card-title {
  margin-bottom: 5px;
  font-size: 26px;
  text-align: center;
  font-weight: 600;
}

.subtitle {
  text-align: center;
  font-size: 14px;
  color: #666;
  margin-bottom: 25px;
}

/* INPUT FIELDS */
.login-card label {
  font-size: 14px;
  margin-bottom: 6px;
  display: block;
  font-weight: 500;
}

.login-card input[type="text"],
.login-card input[type="number"],
.login-card input[type="email"],
.login-card input[type="password"] {
  width: 100%;
  padding: 5px 12px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  margin-bottom: 18px;
  font-size: 14px;
  transition: 0.2s border;
}

.login-card input[type="text"]:focus,
.login-card input[type="number"]:focus,
.login-card input[type="email"]:focus,
.login-card input[type="password"]:focus,
.address:focus {
  border: 1px solid var(--primary-theme-color);
  outline: none;
}

.custom-form-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.custom-input-group>label {
  margin-bottom: 4px !important;
}

.custom-input-group,
.custom-input-group>input[type="text"],
.custom-input-group>input[type="email"],
.custom-input-group>input[type="password"],
.custom-input-group>input[type="number"],
.custom-input-group>.address,
.custom-input-group>input[type="checkbox"] {
  margin-bottom: 0px !important;
}

input[type="checkbox"] {
  accent-color: var(--primary-theme-color);
}

.address {
  width: 100%;
  padding: 5px 12px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  margin-bottom: 18px;
  font-size: 14px;
  transition: 0.2s border;
  resize: none;
}

.login-card input:focus {
  border-color: var(--accent);
  outline: none;
}

/* REMEMBER ME + RESET */
.remember {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  user-select: none;
}

.forgot-link {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
}

.forgot-link:hover {
  text-decoration: underline;
}

/* LOGIN BUTTON */
.btn-login {
  width: 100%;
  padding: 0 1rem;
  background: var(--primary-theme-color, #1e3a5f);
  color: #f5b800;
  border: none;
  border-radius: var(--button-radius);
  font-size: var(--type-helper-size);
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--button-shadow);
}

.btn-login:hover {
  background: rgba(30, 58, 95, 0.9);
}

.resetpassword {
  display: block;
  text-align: center;
  margin-top: 18px;
  cursor: pointer;
}

/* FOOTER */
.footer {
  text-align: center;
  font-size: 13px;
  color: #666;
  padding: 20px 0;
  border-top: 5px solid var(--accent);
}

.required {
  color: red;
}

/* MOBILE */
@media (max-width: 480px) {
  .login-card {
    padding: 25px 20px;
  }

  .card-title {
    font-size: 22px;
  }
}


/* SEARCH */

.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 10px 40px 10px 12px;
  border-radius: 6px;
}

.search-btn {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
}

.clear-btn {
  position: absolute;
  top: 50%;
  right: 2.6rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: #777;
  padding: 0;
  line-height: 1;
  transform: translateY(-50%);
}

button.btn-custom-login {
  cursor: pointer;
  display: flex;
  text-align: center;
  padding: 0 1rem;
  background: var(--primary-theme-color, #1e3a5f);
  color: #f5b800;
  width: 100%;
  border: 0;
  border-radius: var(--button-radius) !important;
  font-size: var(--type-helper-size);
  font-weight: 600;
  box-shadow: var(--button-shadow);
  text-decoration: none;
}
