/* Helaplus UI Improvements
 * Modern UI enhancements for Mifos Community App
 */

:root {
  /* Landing-page palette (styles/landing.css) */
  --primary-color: #14322a;
  --secondary-color: #4ade80;
  --accent-color: #c8860a;
  --text-color: #1e293b;
  --muted-color: #64748b;
  --border-color: #e2e8f0;
  --light-bg: #f1f5f4;
  --card-shadow: 0 1px 3px rgba(15,42,34,0.08), 0 8px 24px rgba(15,42,34,0.06);
  --header-height: 60px;
  --sidebar-width: 250px;
  --border-radius: 10px;
  --hp-display-font: 'Inter Tight', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* Global Styles */
body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--text-color);
  background-color: var(--light-bg);
}

/* Card Styling */
.card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow: var(--card-shadow);
  margin-bottom: 20px;
  padding: 20px;
}

/* Header & Navigation — deep-green landing gradient */
.navbar-default {
  background: linear-gradient(120deg, #0f2a22 0%, #14322a 55%, #1a4a36 100%);
  border-color: transparent;
  box-shadow: 0 2px 12px rgba(15,42,34,0.25);
  height: var(--header-height);
}

/* white logo sits directly on the dark bar — no pill needed */
.navbar-brand img {
  height: 32px;
  margin-top: -4px;
}

/* ID prefix needed — the base theme (injected later by require-css) pins
   nav links to #222 with !important at equal specificity and wins on
   source order; the id beats it outright. */
#mifos-reskin-header-nav .navbar-default .navbar-nav > li > a {
  color: rgba(255,255,255,0.78) !important;
  font-weight: 500;
  padding: 20px 15px;
  transition: all 0.2s ease;
}

#mifos-reskin-header-nav .navbar-default .navbar-nav > li > a:hover,
#mifos-reskin-header-nav .navbar-default .navbar-nav > li > a:focus,
#mifos-reskin-header-nav .navbar-default .navbar-nav > li > a.activate {
  color: #fff !important;
  background-color: rgba(255,255,255,0.08);
}

/* open dropdown parent stays light-on-dark, not bootstrap's grey */
#mifos-reskin-header-nav .navbar-default .navbar-nav > .open > a,
#mifos-reskin-header-nav .navbar-default .navbar-nav > .open > a:hover,
#mifos-reskin-header-nav .navbar-default .navbar-nav > .open > a:focus {
  color: #fff !important;
  background-color: rgba(255,255,255,0.08) !important;
}

.navbar-default .navbar-toggle {
  border-color: transparent;
}

.navbar-default .navbar-toggle .icon-bar {
  background-color: rgba(255,255,255,0.85);
}

.nav-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--header-height);
  width: 50px;
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s ease;
}

.nav-toggle-btn:hover {
  color: var(--secondary-color);
}

/* Dropdown Menus */
.dropdown-menu {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(15,42,34,0.12);
  padding: 8px 0;
  min-width: 200px;
}

.dropdown-menu > li > a {
  padding: 8px 20px;
  color: var(--text-color);
  transition: all 0.2s ease;
}

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
  background-color: rgba(74,222,128,0.10);
  color: var(--primary-color);
}

.dropdown-menu > li > a i {
  margin-right: 10px;
  width: 16px;
  text-align: center;
}

/* User Dropdown */
.user-dropdown {
  min-width: 250px;
}

.user-info {
  padding: 15px 20px;
  display: flex;
  align-items: center;
}

.user-avatar {
  font-size: 36px;
  color: var(--primary-color);
  margin-right: 15px;
}

.user-details {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 5px;
}

.user-role {
  font-size: 12px;
  color: #777;
}

/* Notification Dropdown */
.notification-dropdown {
  min-width: 300px;
  max-height: 400px;
  overflow-y: auto;
}

.notification-header {
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
}

.notification-header span {
  font-weight: 600;
}

.notification-header a {
  font-size: 12px;
  color: var(--primary-color);
}

.notification-item {
  border-bottom: 1px solid #f5f5f5;
}

.notification-item a {
  padding: 10px 15px;
  display: block;
}

.notification-read {
  background-color: #f9f9f9;
}

.notification-message {
  display: block;
  font-size: 13px;
  margin-bottom: 5px;
}

.notification-time {
  display: block;
  font-size: 11px;
  color: #999;
}

.notification-footer {
  padding: 10px 15px;
  text-align: center;
}

.notification-empty {
  padding: 20px;
  text-align: center;
  color: #999;
}

.badge-notify {
  background-color: var(--accent-color);
  color: white;
  font-size: 10px;
  position: absolute;
  top: 10px;
  right: 5px;
  padding: 3px 5px;
  border-radius: 50%;
}

/* Left Navigation — dark forest drawer; 3-ID selector beats the
   require-css'd base theme which injects after this file */
#mifos-reskin-ui-container #mifos-reskin-body-container #mifos-reskin-side-nav {
  background: linear-gradient(180deg, #14322a 0%, #0f2a22 100%);
  width: var(--sidebar-width);
  box-shadow: 2px 0 12px rgba(15,42,34,0.15);
}

#mifos-reskin-side-nav .left-nav ul li {
  border-color: rgba(255,255,255,0.06);
}

#mifos-reskin-side-nav .left-nav ul li a {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  height: auto; /* base theme pins 40px which clips the icon boxes */
  color: rgba(255,255,255,0.72);
  font-weight: 500;
  font-size: 13.5px;
  border: none; /* kill the base theme's hard divider lines */
  transition: all 0.15s ease;
}

#mifos-reskin-side-nav .left-nav ul li a:hover,
#mifos-reskin-side-nav .left-nav ul li a:focus,
#mifos-reskin-side-nav .left-nav ul li a.active {
  background-color: rgba(255,255,255,0.06);
  color: #fff;
}

/* boxed line icons, like the reference sidebar */
#mifos-reskin-side-nav .left-nav ul li a i.fa {
  width: 32px;
  min-width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.26);
  border-radius: 9px;
  transition: all 0.15s ease;
}

#mifos-reskin-side-nav .left-nav ul li a:hover i.fa,
#mifos-reskin-side-nav .left-nav ul li a:focus i.fa,
#mifos-reskin-side-nav .left-nav ul li a.active i.fa {
  background: #fff;
  border-color: #fff;
  color: var(--primary-color);
}

/* section dividers between nav groups */
#mifos-reskin-side-nav .left-nav ul li.hp-nav-divider {
  height: 1px;
  margin: 8px 14px;
  background: rgba(255,255,255,0.10);
}

/* Login Form */
#login-form {
  max-width: 400px;
  margin: 100px auto;
  background: #fff;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  text-align: center;
}

.login-header {
  margin-bottom: 25px;
}

.login-header .login-logo {
  height: 40px;
  margin-bottom: 15px;
}

.login-header h2 {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 10px;
}

.login-header p {
  color: #666;
  font-size: 14px;
}

.login-inputs {
  margin-bottom: 20px;
}

.login-inputs .form-group {
  margin-bottom: 15px;
  text-align: left;
}

.login-inputs label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #555;
  font-size: 14px;
}

#login-form input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-size: 14px;
  transition: border-color 0.3s ease;
}

#login-form input:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(22, 51, 0, 0.1);
}

.login-actions {
  margin-bottom: 20px;
}

.btn-login {
  width: 100%;
  padding: 12px 15px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-login:hover {
  background-color: #0e2200;
}

.login-error {
  background-color: #ffebee;
  color: #d32f2f;
  padding: 10px;
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  font-size: 14px;
}

.login-footer {
  font-size: 12px;
  color: #999;
  margin-top: 20px;
}

/* Tables — slate neutrals from the landing palette */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.table thead th {
  background-color: #f8fafc;
  color: var(--muted-color);
  font-weight: 600;
  padding: 12px 15px;
  border-bottom: 1px solid var(--border-color);
}

.table tbody td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--border-color);
}

.table tbody tr:hover {
  background-color: rgba(74,222,128,0.05);
}

/* Buttons — deep green like the sign-in submit (important: base theme
   is injected later by require-css) */
.btn-primary {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: #fff !important;
  border-radius: var(--border-radius);
  font-weight: 600;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:active:focus {
  background-color: #1a4a36 !important;
  border-color: #1a4a36 !important;
  color: #fff !important;
}

.btn-success {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

/* Client view — action button bar (replaces floated .btn-group + <br> hacks) */
.client-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.client-actions > .btn {
  margin-left: 0;
}

@media (max-width: 767px) {
  .client-actions {
    justify-content: flex-start;
  }

  .client-actions > .btn {
    flex: 1 1 calc(50% - 8px);
    min-height: 40px;
    white-space: normal;
  }

  .client-actions > .btn-group.dropdown {
    flex: 1 1 100%;
    position: relative;
  }

  .client-actions > .btn-group.dropdown > a.btn {
    display: block;
    width: 100%;
  }
}

/* Forms */
.form-control {
  height: 40px;
  border-radius: var(--border-radius);
  border: 1px solid #ddd;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(22, 51, 0, 0.25);
}

/* Datepicker Styling */
.datepicker-container {
  position: relative;
}

.datepicker-container .form-control {
  background-color: #fff;
}

.uib-datepicker-popup {
  background-color: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  padding: 10px;
  z-index: 9999 !important;
}

.uib-datepicker-popup .btn-default {
  background-color: #fff;
  border-color: #ddd;
  color: var(--text-color);
}

.uib-datepicker-popup .btn-default:hover,
.uib-datepicker-popup .btn-default:focus {
  background-color: #f5f5f5;
}

.uib-datepicker-popup .btn-info {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.uib-datepicker-popup .btn-info:hover,
.uib-datepicker-popup .btn-info:focus {
  background-color: #0e2200;
  border-color: #0e2200;
}

.uib-datepicker-popup .text-info {
  color: var(--primary-color);
}

.uib-datepicker-popup .text-muted {
  color: #999;
}

.uib-datepicker-popup table {
  width: 100%;
}

.uib-datepicker-popup th {
  text-align: center;
  padding: 5px;
  font-weight: 600;
}

.uib-datepicker-popup td {
  text-align: center;
  padding: 2px;
}

.uib-datepicker-popup .uib-title {
  font-weight: 600;
  color: var(--text-color);
}

/* Fix for datepicker popup positioning */
.uib-position-measure {
  display: block !important;
  visibility: hidden !important;
  position: absolute !important;
  top: -9999px !important;
  left: -9999px !important;
}

.uib-datepicker .uib-title strong {
  font-weight: 600;
  color: var(--primary-color);
}

/* Responsive Adjustments */
.side-nav-backdrop {
  display: none;
}

@media (max-width: 768px) {
  /* Navbar: fixed 60px height clipped the expanded collapse, leaving the
     open menu transparent over page content — let it grow on mobile */
  .navbar-default {
    height: auto;
    min-height: var(--header-height);
  }

  .navbar-default .navbar-collapse {
    background-color: #14322a;
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 12px 24px rgba(15,42,34,0.3);
  }

  /* base theme reserved 65px for the old icon rail — the drawer covers it */
  #mifos-reskin-header-nav #bs-example-navbar-collapse-1 {
    padding-left: 0;
  }

  /* Sidebar drawer — 3-ID selectors needed because styles.2304bb49.css
     is injected by require-css after this file and wins equal specificity */
  #mifos-reskin-ui-container #mifos-reskin-body-container #mifos-reskin-side-nav {
    width: 280px;
    max-width: 85vw;
    top: var(--header-height);
    position: fixed;
    z-index: 999;
    background: linear-gradient(180deg, #14322a 0%, #0f2a22 100%);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 2px 0 12px rgba(0,0,0,0.2);
    overflow-y: auto;
  }

  #mifos-reskin-ui-container #mifos-reskin-body-container #mifos-reskin-side-nav.active {
    transform: translateX(0);
  }

  #mifos-reskin-side-nav .left-nav ul li a {
    color: rgba(255,255,255,0.85);
  }

  .side-nav-backdrop {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0,0,0,0.4);
    z-index: 998;
  }

  /* remove the desktop icon-rail offset so content uses full width */
  #mifos-reskin-ui-container #mifos-reskin-body-container #mifos-reskin-body-view {
    padding-left: 0;
  }

  .navbar-toggle {
    display: block;
  }

  #login-form {
    margin: 50px 20px;
  }
}

/* Dropdown menus — rounded, padded, soft shadow (ID prefixes beat the
   base theme's #222 !important link colour) */
#mifos-reskin-header-nav .dropdown-menu,
#mifos-reskin-body-view .dropdown-menu {
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(15,42,34,0.14), 0 2px 6px rgba(15,42,34,0.06);
  padding: 8px;
  margin-top: 6px;
  background: #fff;
}

/* invisible hover bridge — the 6px visual gap must not close the menu */
#mifos-reskin-header-nav .dropdown-menu::before,
#mifos-reskin-body-view .dropdown-menu::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 0;
  right: 0;
  height: 7px;
}

/* clean separator under the dark bar */
#mifos-reskin-header-nav .navbar-default {
  border-bottom: 1px solid rgba(74,222,128,0.18);
}

#mifos-reskin-header-nav .dropdown-menu > li > a,
#mifos-reskin-body-view .dropdown-menu > li > a,
#mifos-reskin-header-nav .navbar-nav .open .dropdown-menu > li > a,
#mifos-reskin-header-nav .navbar-default .navbar-nav .open .dropdown-menu > li > a {
  color: var(--text-color) !important;
  font-weight: 500;
  font-size: 13.5px;
  padding: 9px 14px;
  border-radius: 8px;
  white-space: normal;
}

#mifos-reskin-header-nav .dropdown-menu > li > a:hover,
#mifos-reskin-header-nav .dropdown-menu > li > a:focus,
#mifos-reskin-body-view .dropdown-menu > li > a:hover,
#mifos-reskin-body-view .dropdown-menu > li > a:focus,
#mifos-reskin-header-nav .navbar-default .navbar-nav .open .dropdown-menu > li > a:hover,
#mifos-reskin-header-nav .navbar-default .navbar-nav .open .dropdown-menu > li > a:focus {
  background: rgba(74,222,128,0.12);
  color: var(--primary-color) !important;
}

#mifos-reskin-header-nav .dropdown-menu > li > a i,
#mifos-reskin-body-view .dropdown-menu > li > a i {
  margin-right: 8px;
  color: var(--muted-color);
}

#mifos-reskin-header-nav .dropdown-menu > li > a:hover i,
#mifos-reskin-body-view .dropdown-menu > li > a:hover i {
  color: var(--primary-color);
}

#mifos-reskin-header-nav .dropdown-menu .divider,
#mifos-reskin-body-view .dropdown-menu .divider {
  background-color: var(--border-color);
  margin: 6px 8px;
}

#mifos-reskin-header-nav .dropdown-menu .dropdown-header,
#mifos-reskin-body-view .dropdown-menu .dropdown-header {
  font-family: var(--hp-display-font);
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-color);
  padding: 10px 14px;
}

/* Tables — kill the Bootstrap-3 bordered grid, keep hairline row rules */
#mifos-reskin-body-view .table > thead > tr > th,
#mifos-reskin-body-view .table > thead > tr > td {
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
  border-top: none;
  color: var(--muted-color);
  font-family: var(--hp-display-font);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 12px 14px;
  vertical-align: middle;
}

#mifos-reskin-body-view .table > tbody > tr > td,
#mifos-reskin-body-view .table > tbody > tr > th {
  border-top: none;
  border-bottom: 1px solid #eef2f1;
  padding: 12px 14px;
  vertical-align: middle;
  color: var(--text-color);
}

/* .table-bordered drops the cell grid for a single soft frame */
#mifos-reskin-body-view .table-bordered {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

#mifos-reskin-body-view .table-bordered > thead > tr > th,
#mifos-reskin-body-view .table-bordered > thead > tr > td,
#mifos-reskin-body-view .table-bordered > tbody > tr > th,
#mifos-reskin-body-view .table-bordered > tbody > tr > td {
  border-left: none;
  border-right: none;
}

#mifos-reskin-body-view .table-bordered > tbody > tr:last-child > td,
#mifos-reskin-body-view .table-bordered > tbody > tr:last-child > th {
  border-bottom: none;
}

/* label column (profile/detail tables) reads muted */
#mifos-reskin-body-view .table > tbody > tr > td:first-child,
#mifos-reskin-body-view .table > tbody > tr > th:first-child {
  color: var(--muted-color);
  font-weight: 500;
}

/* stripes go whisper-subtle, hover gets the emerald wash */
#mifos-reskin-body-view .table-striped > tbody > tr:nth-of-type(odd) {
  background-color: #fafcfc;
}

/* row hover = same light emerald wash as dropdown items; !important
   because some tables get a dark hover from plugin/inline styles */
#mifos-reskin-body-view .table > tbody > tr:hover,
#mifos-reskin-body-view .table > tbody > tr:hover > td,
#mifos-reskin-body-view .table > tbody > tr:hover > th,
#mifos-reskin-body-view .table-hover > tbody > tr:hover,
#mifos-reskin-body-view .table-hover > tbody > tr:hover > td,
#mifos-reskin-body-view .table-hover > tbody > tr:hover > th {
  background-color: rgba(74,222,128,0.12) !important;
}

#mifos-reskin-body-view .table > tbody > tr:hover > td:first-child {
  color: var(--primary-color);
}

/* Pagination — emerald instead of the base theme's blue */
#mifos-reskin-body-view .pagination > li > a,
#mifos-reskin-body-view .pagination > li > span,
#mifos-reskin-body-view .pagination-sm > li > a,
#mifos-reskin-body-view .pagination-lg > li > a {
  color: var(--primary-color);
  border-color: var(--border-color);
}

#mifos-reskin-body-view .pagination > li > a:hover,
#mifos-reskin-body-view .pagination > li > a:focus {
  background-color: rgba(74,222,128,0.12);
  color: var(--primary-color);
  border-color: var(--border-color);
}

#mifos-reskin-body-view .pagination > .active > a,
#mifos-reskin-body-view .pagination > .active > a:hover,
#mifos-reskin-body-view .pagination > .active > a:focus,
#mifos-reskin-body-view .pagination > .active > span {
  background-color: #4ade80;
  border-color: #4ade80;
  color: #14322a;
  font-weight: 700;
}

#mifos-reskin-body-view .pagination > .disabled > a,
#mifos-reskin-body-view .pagination > .disabled > span {
  color: #94a3b8;
  border-color: var(--border-color);
}

/* Secondary + semantic buttons */
#mifos-reskin-body-view .btn-default,
.modal .btn-default {
  background-color: #fff !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-color) !important;
}

#mifos-reskin-body-view .btn-default:hover,
#mifos-reskin-body-view .btn-default:focus,
.modal .btn-default:hover {
  background-color: rgba(74,222,128,0.12) !important;
  border-color: rgba(74,222,128,0.5) !important;
  color: var(--primary-color) !important;
}

#mifos-reskin-body-view .btn-warning,
.modal .btn-warning {
  background-color: #d97706 !important;
  border-color: #d97706 !important;
  color: #fff !important;
}
#mifos-reskin-body-view .btn-warning:hover,
.modal .btn-warning:hover { background-color: #b45309 !important; border-color: #b45309 !important; }

#mifos-reskin-body-view .btn-danger,
.modal .btn-danger {
  background-color: #dc2626 !important;
  border-color: #dc2626 !important;
  color: #fff !important;
}
#mifos-reskin-body-view .btn-danger:hover,
.modal .btn-danger:hover { background-color: #b91c1c !important; border-color: #b91c1c !important; }

#mifos-reskin-body-view .btn-info,
.modal .btn-info {
  background-color: #475569 !important;
  border-color: #475569 !important;
  color: #fff !important;
}
#mifos-reskin-body-view .btn-info:hover,
.modal .btn-info:hover { background-color: #334155 !important; border-color: #334155 !important; }

/* Emerald checkboxes and radios */
#mifos-reskin-body-view input[type="checkbox"],
#mifos-reskin-body-view input[type="radio"],
.modal input[type="checkbox"],
.modal input[type="radio"] {
  accent-color: #4ade80;
  width: 15px;
  height: 15px;
}

/* Content links go deep green, not theme blue */
#mifos-reskin-body-view a:not(.btn):not(.dropdown-toggle) {
  color: var(--primary-color);
}
#mifos-reskin-body-view a:not(.btn):not(.dropdown-toggle):hover {
  color: #1a4a36;
}

/* Thin slate scrollbars */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: #94a3b8; background-clip: padding-box; border: 2px solid transparent; }
html { scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; }

/* Chosen select plugin — emerald, not theme blue */
#mifos-reskin-body-view .chosen-container .chosen-results li.highlighted,
.modal .chosen-container .chosen-results li.highlighted {
  background: #4ade80 !important;
  color: #14322a !important;
}

#mifos-reskin-body-view .chosen-container-single .chosen-single {
  height: 40px;
  line-height: 38px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: #fff;
  box-shadow: none;
  color: var(--text-color);
}

#mifos-reskin-body-view .chosen-container.chosen-container-active .chosen-single,
#mifos-reskin-body-view .chosen-container.chosen-with-drop .chosen-single {
  border-color: rgba(74,222,128,0.6);
  box-shadow: 0 0 0 3px rgba(74,222,128,0.15);
}

#mifos-reskin-body-view .chosen-container .chosen-drop {
  border: 1px solid var(--border-color);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  box-shadow: 0 8px 24px rgba(15,42,34,0.12);
}

#mifos-reskin-body-view .chosen-container .chosen-search input[type="text"] {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 6px 24px 6px 10px;
}

#mifos-reskin-body-view .chosen-container .chosen-results li {
  padding: 7px 10px;
}

#mifos-reskin-body-view .chosen-container-multi .chosen-choices {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: #fff;
}

#mifos-reskin-body-view .chosen-container-multi .chosen-choices li.search-choice {
  background: rgba(74,222,128,0.12);
  border: 1px solid rgba(74,222,128,0.45);
  border-radius: 999px;
  color: var(--primary-color);
}

/* Datepicker popup — match the card language */
.uib-datepicker .btn,
.uib-datepicker-popup .btn {
  border-radius: 8px;
  border: none;
  font-weight: 500;
}
.uib-datepicker tbody .btn:hover { background: rgba(74,222,128,0.15); }
.uib-datepicker .btn-info {
  background: #4ade80;
  border-color: #4ade80;
  color: #14322a;
}
.uib-datepicker .btn-info.active,
.uib-datepicker .active > .btn-info {
  background: #14322a;
  border-color: #14322a;
  color: #fff;
}

/* Recently-viewed chips on the dashboard */
#mifos-reskin-body-view .hp-recent {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 4px;
}

#mifos-reskin-body-view .hp-recent-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-color);
  margin-right: 4px;
}

#mifos-reskin-body-view .hp-recent-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: #fff;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary-color) !important;
  text-decoration: none;
  transition: all 0.15s ease;
}

#mifos-reskin-body-view .hp-recent-chip i {
  font-size: 11px;
  color: var(--muted-color);
}

#mifos-reskin-body-view .hp-recent-chip:hover {
  border-color: rgba(74,222,128,0.55);
  background: rgba(74,222,128,0.10);
  text-decoration: none;
}

/* Empty-state row for overview tables */
#mifos-reskin-body-view .hp-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 26px 16px;
  color: var(--muted-color);
  font-size: 13px;
  font-weight: 500;
}
#mifos-reskin-body-view .hp-empty i { color: #cbd5e1; font-size: 16px; }

/* ---- Landing theme polish ---- */

/* Tab strips: slate inactive, deep-green active with emerald underline */
.nav-tabs {
  border-bottom: 1px solid var(--border-color);
}

.nav-tabs > li > a {
  color: var(--muted-color);
  border-radius: 8px 8px 0 0;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
  color: var(--primary-color);
  border-bottom: 2px solid var(--secondary-color);
}

/* Scrollable-tab arrows inherit the palette */
div.scrollable:before,
div.scrollable:after {
  color: var(--primary-color);
}

/* Breadcrumb */
.breadcrumb {
  background: transparent;
  color: var(--muted-color);
}

.breadcrumb a {
  color: var(--primary-color);
}

/* Login card */
#login-form {
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

/* Form focus ring in emerald */
.form-control:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.2rem rgba(74,222,128,0.2);
}

/* Client page header + overview cards (dashboard-style) */
#mifos-reskin-body-view .client-title {
  font-family: var(--hp-display-font);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--primary-color);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

#mifos-reskin-body-view .client-title > i {
  font-size: 14px;
  position: relative;
  top: -2px;
}

#mifos-reskin-body-view .client-title small {
  font-family: var(--hp-font);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted-color);
  letter-spacing: 0;
}

#mifos-reskin-body-view .hp-overview-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  margin-bottom: 18px;
  overflow: hidden;
}

#mifos-reskin-body-view .hp-ov-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(160deg, #f6faf7 0%, #ffffff 70%);
}

#mifos-reskin-body-view .hp-ov-head h4 {
  font-family: var(--hp-display-font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--primary-color);
  margin: 0;
}

#mifos-reskin-body-view .hp-ov-head .btn {
  border-radius: 999px;
  font-size: 11.5px;
  padding: 5px 14px;
}

/* tables inside overview cards sit flush — no double frame */
#mifos-reskin-body-view .hp-overview-card .table {
  margin-bottom: 0;
}

#mifos-reskin-body-view .hp-overview-card .table > tbody > tr:last-child > td {
  border-bottom: none;
}

/* client action bar — pills, breathing room */
#mifos-reskin-body-view .client-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0 14px;
}

#mifos-reskin-body-view .client-actions .btn {
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
}

/* entity action bars — .pull-right.btn-group is used as a plain button
   row (loans, savings, deposits, shares, groups…); un-join the buttons */
#mifos-reskin-body-view .pull-right.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  float: none;
}

#mifos-reskin-body-view .pull-right.btn-group .btn {
  border-radius: 999px;
  margin-left: 0;
  font-size: 12.5px;
  font-weight: 600;
}

#mifos-reskin-body-view .pull-right.btn-group .btn-group {
  margin-left: 0;
}

/* Client profile card — avatar hero, status pill, KPI chips */
#mifos-reskin-body-view .hp-client-card {
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  padding: 0;
  overflow: hidden;
  background: #fff;
}

#mifos-reskin-body-view .hp-client-hero {
  text-align: center;
  padding: 24px 18px 18px;
  background: linear-gradient(160deg, #f6faf7 0%, #ffffff 70%);
  border-bottom: 1px solid var(--border-color);
}

#mifos-reskin-body-view .hp-client-avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto 12px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--border-color), 0 6px 18px rgba(15,42,34,0.14);
}

#mifos-reskin-body-view .hp-client-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#mifos-reskin-body-view .hp-client-name {
  font-family: var(--hp-display-font);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--primary-color);
  margin: 0 0 6px;
}

#mifos-reskin-body-view .hp-client-status {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(74,222,128,0.18);
  color: #166534;
  margin-bottom: 10px;
}

#mifos-reskin-body-view .hp-client-photo-actions {
  margin-top: 4px;
}

#mifos-reskin-body-view .hp-client-photo-actions .btn {
  border-radius: 8px;
}

#mifos-reskin-body-view .hp-client-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

#mifos-reskin-body-view .hp-cstat {
  background: #fff;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
}

#mifos-reskin-body-view .hp-cstat-v {
  font-family: var(--hp-display-font);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary-color);
  line-height: 1.2;
}

#mifos-reskin-body-view .hp-cstat-l {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-color);
  margin-top: 2px;
}

/* details list inside the card */
#mifos-reskin-body-view .hp-client-card .table-minified {
  margin: 0;
  width: 100%;
}

#mifos-reskin-body-view .hp-client-card .table-minified tr > th {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted-color);
  padding: 9px 14px;
  border: none;
  border-bottom: 1px solid #f1f5f4;
  vertical-align: top;
  white-space: normal;
}

#mifos-reskin-body-view .hp-client-card .table-minified tr > td {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-color);
  padding: 9px 14px;
  border: none;
  border-bottom: 1px solid #f1f5f4;
  text-align: right;
}

#mifos-reskin-body-view .hp-client-card .table-minified tr:last-child > th,
#mifos-reskin-body-view .hp-client-card .table-minified tr:last-child > td {
  border-bottom: none;
}

/* ---- Modern app surfaces (login-card language carried inside the app) ----
   ID prefix beats the require-css'd base theme on equal-specificity rules */

/* Kill Bootstrap's dated .well (gray inset box) — content wells become cards */
#mifos-reskin-body-view .well {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  padding: 24px;
}

/* Cards and panels share the login-card radius/shadow */
#mifos-reskin-body-view .card {
  border-radius: 16px;
}

#mifos-reskin-body-view .panel {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(15,42,34,0.06);
}

#mifos-reskin-body-view .panel-heading {
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
  border-radius: 12px 12px 0 0;
}

/* modals attach to <body>, outside body-view — .modal prefix outranks
   the base .modal-content without needing the page-scoped ID */
.modal .modal-content {
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(15,42,34,0.25);
}

.modal .modal-header {
  border-bottom: 1px solid var(--border-color);
  border-radius: 16px 16px 0 0;
}

.modal .modal-footer {
  border-top: 1px solid var(--border-color);
}

/* Inputs: taller, softer, slate-bordered like the sign-in fields */
#mifos-reskin-body-view .form-control {
  border: 1px solid var(--border-color);
  border-radius: 10px;
  height: 42px;
  color: var(--text-color);
}

#mifos-reskin-body-view textarea.form-control {
  height: auto;
}

#mifos-reskin-body-view .control-label,
#mifos-reskin-body-view label {
  color: var(--muted-color);
  font-weight: 500;
}

/* Buttons: login-submit radius + weight */
#mifos-reskin-body-view .btn {
  border-radius: 10px;
  font-weight: 600;
}

#mifos-reskin-body-view .btn-default {
  background: #fff;
  border-color: var(--border-color);
  color: var(--text-color);
}

#mifos-reskin-body-view .btn-default:hover,
#mifos-reskin-body-view .btn-default:focus {
  background: #f1f5f4;
  border-color: #cbd5e1;
  color: var(--primary-color);
}

/* Breadcrumb becomes a slim white pill */
#mifos-reskin-body-view .breadcrumb {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 8px 16px;
  max-height: none; /* base theme clamps it to 21px */
  line-height: 1.5;
}

/* Headings: landing's tight, weighty type — Inter Tight display font */
#mifos-reskin-body-view h1,
#mifos-reskin-body-view h2,
#mifos-reskin-body-view h3,
#mifos-reskin-body-view h4,
#mifos-reskin-body-view .toolbar h3,
#mifos-reskin-body-view .gray-head {
  font-family: var(--hp-display-font);
  color: var(--primary-color);
  font-weight: 700;
  letter-spacing: -0.02em;
}

#mifos-reskin-body-view .hp-stat-value,
#mifos-reskin-body-view .hp-module-name,
#mifos-reskin-body-view .hp-list-head h4 {
  font-family: var(--hp-display-font);
}

/* ---- Home (post-login landing) ---- */

/* Welcome/search card */
#mifos-reskin-body-view #expertsearch {
  border-radius: 16px;
  padding: 28px 32px;
}

#mifos-reskin-body-view #expertsearch .toolbar h3 {
  font-size: 24px;
  margin-bottom: 4px;
}

#mifos-reskin-body-view #expert {
  height: 48px;
  border-radius: 12px;
  font-size: 15px;
  padding: 10px 16px;
}

/* keep the brand mark from overwhelming the welcome card */
#mifos-reskin-body-view #home img {
  max-height: 260px;
  margin: 0 auto;
}

/* ---- Dashboard landing (home_default) ---- */

#mifos-reskin-body-view .hp-home {
  padding: 32px 36px;
}

#mifos-reskin-body-view .hp-home-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

#mifos-reskin-body-view .hp-home-head h3 {
  margin: 0 0 4px;
  font-size: 26px;
  color: var(--primary-color);
}

#mifos-reskin-body-view .hp-home-date {
  font-size: 13px;
  color: var(--muted-color);
}

#mifos-reskin-body-view .hp-home-mark {
  height: 52px;
  width: auto;
  opacity: 0.9;
}

#mifos-reskin-body-view .hp-home #expert {
  width: 100%;
  margin-bottom: 24px;
}

/* Stat cards */
#mifos-reskin-body-view .hp-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

#mifos-reskin-body-view .hp-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

#mifos-reskin-body-view .hp-stat:hover,
#mifos-reskin-body-view .hp-stat:focus {
  transform: translateY(-2px);
  border-color: var(--secondary-color);
  box-shadow: 0 10px 24px rgba(15,42,34,0.10);
  text-decoration: none;
}

#mifos-reskin-body-view .hp-stat-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(74,222,128,0.14);
  color: var(--primary-color);
  font-size: 18px;
}

#mifos-reskin-body-view .hp-stat-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

#mifos-reskin-body-view .hp-stat-value {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary-color);
  line-height: 1.15;
}

#mifos-reskin-body-view .hp-stat-label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted-color);
}

/* Quick actions */
#mifos-reskin-body-view .hp-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

#mifos-reskin-body-view .hp-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
  transition: all 0.15s ease;
}

#mifos-reskin-body-view .hp-action i {
  font-size: 18px;
  color: var(--secondary-color);
}

#mifos-reskin-body-view .hp-action:hover,
#mifos-reskin-body-view .hp-action:focus {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
  text-decoration: none;
}

#mifos-reskin-body-view .hp-action:hover i,
#mifos-reskin-body-view .hp-action:focus i {
  color: var(--secondary-color);
}

/* Module showcase — "one platform, several modules" */
#mifos-reskin-body-view .hp-modules-head {
  margin: 4px 0 14px;
}

#mifos-reskin-body-view .hp-modules-head h4 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--primary-color);
}

#mifos-reskin-body-view .hp-modules-head p {
  margin: 0;
  font-size: 13px;
  color: var(--muted-color);
}

#mifos-reskin-body-view .hp-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

#mifos-reskin-body-view .hp-module {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  text-decoration: none;
}

#mifos-reskin-body-view .hp-module-live {
  background: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

#mifos-reskin-body-view .hp-module-live:hover,
#mifos-reskin-body-view .hp-module-live:focus {
  transform: translateY(-2px);
  border-color: var(--secondary-color);
  box-shadow: 0 10px 24px rgba(15,42,34,0.10);
  text-decoration: none;
}

#mifos-reskin-body-view .hp-module-soon {
  background: #f8fafc;
  opacity: 0.75;
  cursor: default;
}

#mifos-reskin-body-view .hp-module-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 17px;
}

#mifos-reskin-body-view .hp-module-live .hp-module-icon {
  background: rgba(74,222,128,0.16);
  color: var(--primary-color);
}

#mifos-reskin-body-view .hp-module-soon .hp-module-icon {
  background: #eef2f1;
  color: var(--muted-color);
}

#mifos-reskin-body-view .hp-module-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--primary-color);
}

#mifos-reskin-body-view .hp-module-desc {
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted-color);
}

#mifos-reskin-body-view .hp-module-badge {
  align-self: flex-start;
  margin-top: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #eef2f1;
  color: var(--muted-color);
}

#mifos-reskin-body-view .hp-badge-live {
  background: rgba(74,222,128,0.18);
  color: #166534;
}

@media (max-width: 767px) {
  #mifos-reskin-body-view .hp-home {
    padding: 20px;
  }
  #mifos-reskin-body-view .hp-home-head h3 {
    font-size: 20px;
  }
  #mifos-reskin-body-view .hp-home-mark {
    height: 40px;
  }
}

/* Superuser tiles — hover lift + palette alignment */
#mifos-reskin-body-view .hela-card,
#mifos-reskin-body-view .border-card {
  border-radius: 16px;
  border: 1px solid var(--border-color);
  background: #fff;
  box-shadow: 0 1px 3px rgba(15,42,34,0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

#mifos-reskin-body-view a:hover .hela-card,
#mifos-reskin-body-view a:hover .border-card,
#mifos-reskin-body-view .hela-card:hover,
#mifos-reskin-body-view .border-card:hover {
  transform: translateY(-3px);
  border-color: var(--secondary-color);
  box-shadow: 0 12px 28px rgba(15,42,34,0.12);
}

#mifos-reskin-body-view .title-card {
  color: var(--primary-color);
  font-weight: 700;
  letter-spacing: -0.01em;
}

#mifos-reskin-body-view .subtitle-card {
  color: var(--muted-color);
}

#mifos-reskin-body-view .home-import-button {
  background: var(--primary-color);
  border-radius: 10px;
  color: #fff;
}

#mifos-reskin-body-view .home-import-button:hover {
  background: #1a4a36;
}

#mifos-reskin-body-view .home-create-button {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--primary-color);
}

#mifos-reskin-body-view .home-create-button:hover {
  background: rgba(74,222,128,0.12);
  border-color: var(--secondary-color);
}

/* ---- Loaders ---- */

/* Boot loader: centered brand mark + emerald ring (replaces the GIF) */
#loaderWrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-bg);
  z-index: 2000;
}

#loaderWrapper #loader {
  margin: 0 auto !important; /* beats the legacy inline 175px offset */
}

.hp-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

/* the favicon mark itself is the spinner */
.hp-loader-logo {
  width: 72px;
  height: auto;
  display: block;
  animation: hp-spin 1.4s cubic-bezier(0.65, 0.1, 0.35, 0.9) infinite;
}

.hp-loader-sub {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-color);
}

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

/* In-app blockUI overlay: swap the dated svg for the same ring */
.loading-widget-div .centerloader img {
  display: none;
}

.loading-widget-div .centerloader::before {
  content: "";
  display: block;
  width: 48px;
  height: 48px;
  margin-left: -24px;
  border-radius: 50%;
  border: 4px solid rgba(20,50,42,0.12);
  border-top-color: var(--secondary-color);
  animation: hp-spin 0.8s linear infinite;
}

/* Modern Auth Card - OTP & Login */
.auth-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  padding: 40px 32px;
  max-width: 460px;
  margin: 60px auto 0;
  text-align: center;
}

.auth-card .auth-icon {
  width: 64px;
  height: 64px;
  background: rgba(22, 51, 0, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--primary-color);
  font-size: 28px;
}

.auth-card h2 {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.auth-card .auth-subtitle {
  font-size: 14px;
  color: #666;
  margin-bottom: 28px;
  line-height: 1.5;
}

.auth-card .user-email {
  font-weight: 600;
  color: #333;
}

/* Delivery Method Radio Cards */
.delivery-method-list {
  text-align: left;
  margin-bottom: 24px;
}

.delivery-method {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.delivery-method:hover {
  border-color: rgba(22, 51, 0, 0.3);
  background: rgba(22, 51, 0, 0.02);
}

.delivery-method input[type="radio"] {
  margin: 0 12px 0 0;
  width: 18px;
  height: 18px;
  accent-color: var(--primary-color);
  cursor: pointer;
}

.delivery-method .method-icon {
  width: 36px;
  height: 36px;
  background: rgba(22, 51, 0, 0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  color: var(--primary-color);
  font-size: 16px;
}

.delivery-method .method-label {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

/* Remember Me Checkbox */
.remember-me {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 20px 0;
  font-size: 14px;
  color: #555;
}

.remember-me input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  accent-color: var(--primary-color);
  cursor: pointer;
}

/* OTP Input */
.otp-input-group {
  margin: 24px 0;
}

.otp-input-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin-bottom: 8px;
  text-align: left;
}

.otp-input {
  width: 100%;
  height: 52px;
  font-size: 22px;
  letter-spacing: 8px;
  text-align: center;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s ease;
}

.otp-input:focus {
  border-color: var(--primary-color);
}

/* Modern Primary Button */
.btn-modern {
  width: 100%;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--primary-color);
  color: #ffffff;
}

.btn-modern:hover {
  background: #0f2400;
  box-shadow: 0 4px 12px rgba(22, 51, 0, 0.25);
}

.btn-modern:disabled {
  background: #a8b8a0;
  cursor: not-allowed;
  box-shadow: none;
}

/* Secondary Button */
.btn-modern-outline {
  width: 100%;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: 2px solid #e0e0e0;
  background: #ffffff;
  color: #555;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 12px;
}

.btn-modern-outline:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: rgba(22, 51, 0, 0.04);
}

/* Auth Footer */
.auth-footer {
  margin-top: 24px;
  font-size: 13px;
  color: #888;
}

.auth-footer a {
  color: var(--primary-color);
  font-weight: 600;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 576px) {
  .auth-card {
    padding: 28px 20px;
    margin-top: 40px;
  }
}
