.auth-card {
  border-radius: 32px;
  box-shadow: 0 20px 45px rgba(46, 60, 138, 0.12);
  transition: all 0.3s ease;
}

.form-check.form-check-inline {
  margin-right: 1rem;
}

.form-check-input[type="radio"] {
  cursor: pointer;
}

.form-check-input[type="radio"]:checked + .form-check-label {
  background: var(--brand-primary);
  color: var(--brand-white);
  border-color: var(--brand-primary);
}

.form-check-label {
  border-color: rgba(46, 60, 138, 0.2);
  transition: all 0.2s ease;
  cursor: pointer;
}

.auth-page {
  background: #f8f9fa;
}

.auth-logo {
  width: 95px;
  height: auto;
}

.sidebar-logo {
  width: 65px;
  height: auto;
}

.form-label {
  font-weight: 600;
}
:root,
[data-bs-theme="light"] {
  --brand-primary: #2E3C8A;
  --brand-primary-rgb: 46, 60, 138;
  --brand-gradient-blue: #5B8BF7;
  --brand-gradient-mint: #C5F5DA;
  --brand-light-background: #EAF1FF;
  --brand-neutral-gray: #707070;
  --brand-white: #FFFFFF;
  --brand-success: #27AE60;
  --text-java: #20948B;
  --brand-warning: #F2C94C;
  --brand-error: #e93516;

  --bs-primary: var(--brand-primary);
  --bs-primary-rgb: var(--brand-primary-rgb);
  --bs-success: var(--brand-success);
  --bs-warning: var(--brand-warning);
  --bs-danger: var(--brand-error);
  --bs-light: var(--brand-light-background);
  --bs-body-color: var(--brand-neutral-gray);
  --bs-heading-color: var(--brand-primary);
  --bs-font-sans-serif: "Inter", sans-serif;
  --bs-body-font-family: "Inter", sans-serif;

  --brand-heading-font: "Poppins", sans-serif;
  --brand-body-font: "Inter", sans-serif;

  --bs-link-color: var(--brand-primary);
  --bs-link-hover-color: #1f2a5f;

  --bs-btn-border-radius: 12px;
  --bs-border-radius-lg: 16px;
}

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@500;600;700&display=swap");

body {
  font-family: var(--brand-body-font);
  color: var(--brand-neutral-gray);
  background: var(--brand-light-background);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--brand-heading-font);
  color: var(--brand-primary);
}

.btn-primary {
  --bs-btn-color: var(--brand-white);
  --bs-btn-bg: var(--brand-primary);
  --bs-btn-border-color: var(--brand-primary);
  --bs-btn-hover-color: var(--brand-white);
  --bs-btn-hover-bg: #22307a;
  --bs-btn-hover-border-color: #22307a;
  --bs-btn-active-bg: #1f2a5f;
  --bs-btn-active-border-color: #1f2a5f;
  font-weight: 600;
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.btn-danger{
  --bs-btn-bg: var(--brand-error);
  --bs-btn-border-color: var(--brand-error);
  --bs-btn-hover-bg: #e82f0e;
  --bs-btn-hover-border-color: #e82f0e;
  --bs-btn-active-bg: #b43721;
  --bs-btn-active-border-color: #b43721;

}

.btn-outline-primary {
  --bs-btn-color: var(--brand-primary);
  --bs-btn-border-color: var(--brand-primary);
  --bs-btn-hover-bg: var(--brand-primary);
  --bs-btn-hover-border-color: var(--brand-primary);
  --bs-btn-hover-color: var(--brand-white);
  --bs-btn-hover-bg: #22307a;
  --bs-btn-hover-border-color: #22307a;
  --bs-btn-active-bg: #1f2a5f;
  --bs-btn-active-border-color: #1f2a5f;
  font-weight: 600;
}

.badge.bg-success,
.text-bg-success {
  background-color: var(--text-java) !important;
}

.badge.bg-warning,
.text-bg-warning {
  background-color: #ffc61a !important;
  color: white !important;
}

.badge.bg-danger,
.text-bg-danger {
  background-color: var(--brand-error) !important;
}

.bg-brand-gradient {
  background: linear-gradient(90deg, var(--brand-gradient-mint) 0%, var(--brand-gradient-blue) 100%);
}

.sidebar-nav .sidebar-item .sidebar-link,
.sidebar-nav .nav-small-cap .hide-menu {
  font-family: var(--brand-body-font);
  font-weight: 500;
}

.sidebar-nav .sidebar-item .sidebar-link.active,
.sidebar-nav .sidebar-item .sidebar-link:hover {
  background-color: rgba(46, 60, 138, 0.08);
  color: var(--brand-primary);
}

.brand-logo img {
  max-height: 72px;
}

.brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--brand-heading-font);
  font-size: 1.25rem;
  color: var(--brand-white);
  box-shadow: 0 8px 18px rgba(46, 60, 138, 0.2);
}

.brand-title {
  font-family: var(--brand-heading-font);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-primary);
}

.brand-subtitle {
  font-size: 0.75rem;
  color: rgba(112, 112, 112, 0.8);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.language-switcher .language-link {
  color: var(--brand-neutral-gray);
  font-weight: 500;
  text-decoration: none;
  padding: 0.25rem 0.75rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.language-switcher .language-link:hover,
.language-switcher .language-link.is-active {
  background: rgba(46, 60, 138, 0.08);
  color: var(--brand-primary);
}

.flash-message {
  border: 1px solid rgba(46, 60, 138, 0.1);
  box-shadow: 0 10px 30px rgba(46, 60, 138, 0.08);
}

.page-wrapper {
  background: #ffffff;
}

.page-header-breadcrumbs a {
  color: var(--brand-primary);
}

.body-wrapper {
  min-height: 100vh;
  background: transparent;
}

.avatar {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: var(--brand-heading-font);
  font-size: 1rem;
  color: var(--brand-white);
}

#main-wrapper[data-layout="vertical"][data-sidebar-position="fixed"] .left-sidebar {
  top: 0;
  padding: 2px 4px 32px;
  background: var(--brand-white);
  box-shadow: 2px 0 40px rgba(46, 60, 138, 0.08);
  /* border-top-right-radius: 32px; */
}

.left-sidebar .brand-logo {
  padding: 0 0 28px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(46, 60, 138, 0.1);
}

.left-sidebar nav.sidebar-nav {
  margin-top: 24px;
}

#main-wrapper[data-layout="vertical"][data-sidebartype="full"] .body-wrapper {
  margin-left: 270px;
  background: transparent;
}

#main-wrapper[data-layout="vertical"][data-header-position="fixed"] .body-wrapper > .container-fluid,
#main-wrapper[data-layout="vertical"][data-header-position="fixed"] .body-wrapper > .container-sm,
#main-wrapper[data-layout="vertical"][data-header-position="fixed"] .body-wrapper > .container-md,
#main-wrapper[data-layout="vertical"][data-header-position="fixed"] .body-wrapper > .container-lg,
#main-wrapper[data-layout="vertical"][data-header-position="fixed"] .body-wrapper > .container-xl,
#main-wrapper[data-layout="vertical"][data-header-position="fixed"] .body-wrapper > .container-xxl {
  padding-top: 0;
}

.main-content {
  position: relative;
  /* padding: 40px 40px 56px; */
}

.main-content__inner {
  background: var(--brand-white);
  box-shadow: 0 30px 60px rgba(46, 60, 138, 0.08);
  padding: 20px 48px;
}

.users-index .card,
.users-new .card,
.users-edit .card {
  max-width: 960px;
  margin: 0 auto;
}

.btn-java,
.btn-java:hover {
  background-color: var(--text-java);
  border-color: var(--text-java);
  color: white;
}

.java-link,
.java-link:hover {
  background-color: var(--text-java) !important;
  color: white !important;
}

#leads-table-wrapper,
#users-table-wrapper {
  max-height: 600px;
  overflow-y: auto;
}

#leads-table-wrapper table thead th,
#users-table-wrapper table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background-color: #ffffff;
}

.lead-action-icon {
  border-radius: 12px;
  background-color: #f8f9ff;
  border: 1px solid #e2e6ff;
  color: var(--brand-primary);
  padding: 6px 8px;
  line-height: 1;
}

.lead-action-icon:hover {
  background-color: #eef0ff;
  color: var(--brand-primary);
}

.table-sort-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.table-sort-link .sort-icons {
  font-size: 0.7rem;
  opacity: 0.4;
}

.table-sort-link .sort-icons .active {
  opacity: 1;
}

.text-danger {
  color: var(--brand-error) !important;
}

.users-index .table-responsive {
  overflow-x: auto;
}

#users-table-wrapper {
  min-width: 640px;
}

.users-new .card,
.users-edit .card {
  border-radius: 28px;
}

.users-new .card-body,
.users-edit .card-body {
  padding: 32px 40px;
}

.profile-edit .card {
  border-radius: 28px;
}

.profile-form .form-control-lg {
  border-radius: 16px;
}

.profile-form .btn {
  border-radius: 999px;
}

.main-content__body {
  min-height: calc(100vh - 220px);
}

.flash-message {
  margin-bottom: 24px;
}

.text-java {
  color: var(--text-java);
}
.text-normal {
  color: #2A3547;
}

.form-control {
  font-size: 0.875rem;
  color: #5A6A85;
}

.hidden {
  display: none;
}

.required .form-label span {
  color: #e93516;
}

.field_with_errors > .error,
.error_text {
  color: #e93516;
  margin-left: 10px;
}

.page-link.active, .active > .page-link {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
}


/* Audit timeline */
.audit-timeline-item {
  display: flex;
  align-items: flex-start;
  position: relative;
}

.audit-timeline-icon-wrapper {
  width: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.timeline-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--brand-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.timeline-line {
  width: 2px;
  flex-grow: 1;
  min-height: 100%;
  background-color: rgba(46, 60, 138, 0.15);
  margin-top: 8px;
  margin-bottom: 8px;
}

/* Audit details */
.audit-details {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 12px;
  margin-top: 8px;
}

.change-item {
  padding: 4px 0;
  line-height: 1.6;
}

.change-item .badge {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 4px 8px;
}

/* Smooth scrolling for audit history */
.overflow-y-scroll {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(46, 60, 138, 0.3) transparent;
}

.overflow-y-scroll::-webkit-scrollbar {
  width: 6px;
}

.overflow-y-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.overflow-y-scroll::-webkit-scrollbar-thumb {
  background-color: rgba(46, 60, 138, 0.3);
  border-radius: 3px;
}

.overflow-y-scroll::-webkit-scrollbar-thumb:hover {
  background-color: rgba(46, 60, 138, 0.5);
}

.java-color {
  color: var(--text-java);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .audit-timeline-icon-wrapper {
    width: 32px;
  }
  
  .timeline-icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  
  .audit-details {
    font-size: 0.875rem;
  }
}

@media (max-width: 1199.98px) {
  #main-wrapper[data-layout="vertical"][data-sidebartype="full"] .body-wrapper {
    margin-left: 0;
  }

  #main-wrapper[data-layout="vertical"][data-header-position="fixed"] .body-wrapper {
    /* padding-top: 90px; */
  }

  #main-wrapper[data-layout="vertical"][data-sidebar-position="fixed"] .left-sidebar {
    top: 0;
    padding-top: 88px;
    border-top-right-radius: 0;
  }
  .main-content {
    padding: 32px 20px 40px;
  }
  .main-content__inner {
    padding: 32px 28px;
  }
}

@media (max-width: 991.98px) {
  #main-wrapper[data-layout="vertical"][data-header-position="fixed"] .body-wrapper {
    /* padding-top: 84px; */
  }

  .main-content {
    padding: 28px 20px 32px;
  }

  .page-header-card {
    padding: 28px 24px;
    border-radius: 24px;
  }

  .page-header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  #users-table-wrapper {
    min-width: auto;
  }

  .left-sidebar {
    transform: translateX(-100%);
    position: fixed;
    z-index: 1040;
    height: 100%;
    width: 260px;
    transition: transform 0.3s ease;
  }

  #main-wrapper.show-sidebar .left-sidebar,
  #main-wrapper.mini-sidebar .left-sidebar {
    transform: translateX(0);
  }
}

@media (max-width: 767.98px) {
  #main-wrapper[data-layout="vertical"][data-header-position="fixed"] .body-wrapper {
    /* padding-top: 76px; */
  }

  .main-content {
    padding: 24px 16px 28px;
  }

  .main-content__inner {
    padding: 24px;
  }

  .page-header-card {
    gap: 16px;
  }
}

@media (max-width: 575.98px) {
  #main-wrapper[data-layout="vertical"][data-header-position="fixed"] .body-wrapper {
    /* padding-top: 70px; */
  }

  .main-content {
    padding: 20px 12px 24px;
  }

  .main-content__inner {
    padding: 20px 18px;
  }

  .page-header-text h1 {
    font-size: 1.5rem;
  }

  .page-header-breadcrumbs {
    font-size: 0.85rem;
  }

  .users-index .card {
    border-radius: 18px;
  }
}
