@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100..700;1,100..700&display=swap');

:root {
 /* COLOR VARIABLES */
 --kfupmTurquoise-50 : #EAEFF0;
 --kfupmTurquoise-200 : #9EB5B8;
 --kfupmTurquoise-300 : #729398;
 --kfupmTurquoise-400 : #567E84;
 --kfupmTurquoise-500 : #2C5E65;
 --kfupmTurquoise-700 : #1F4348;
 --kfupmGreen-100 : #D0F0E1;
 --kfupmGreen-200 : #afebd0;
 --kfupmGreen-500 : #49906D;
 --kfupmGreen-700 : #34664D;
 --kfupmGray-50 : #f2f4f8;
 --kfupmGray-100 : #DDE1E6;
 --kfupmGray-200 : #C1C7CD;
 --kfupmGray-300 : #A2A9B0;
 --kfupmGray-400 : #878D96;
 --kfupmGray-500 : #697077;
 --kfupmGray-700 : #343a3f;
 --kfupmRed-100 : #FAD2D2;
 --kfupmRed-700 : #A62A2A;
 --kfupmRed-900 : #762626;

 --kfupmBeige-50 : #FEFDFC;
 --kfupmBeige-100 : #FCF9F4;
 --kfupmBeige-200 : #F5EFE4;
 --kfupmBeige-300 : #EEE6D4;
 --kfupmBeige-400 : #E8DCC3;
 --kfupmBeige-500 : #ece0c7;

 --bs-body-color : #21272A;

 --role-badge-Orange-500: #FF7A00;
 --role-badge-Orange-100: #fff3d3;
 --role-badge-Orange-50: #fffaec;
 --role-badge-Blue: #146BB3;
 --role-badge-Yellow-400: #FACC15;
 --role-badge-Yellow-900: #713F12;
 --role-badge-Teal-50 : #eefbf5;
 --role-badge-Teal-100 : #d6f5e6;
 --role-badge-Teal-200 : #afebd0;
 --role-badge-Teal-400 : #4DD4AC;
 --role-badge-Teal-900 : #13795B;

 /* TEXT SIZE VARIABLES */
 --text-smaller: 0.75rem; /* 12px */
 --text-small: 0.875rem; /* 14px */
 --text-body: 1rem; /* 16px (body text) */
 --text-supportive: 1.25rem; /* 20px */
 --text-cardHeading: 1.5rem; /* 24px (H4) */
 --text-subPageHeading: 1.75rem; /* 28px (H3) */
 --text-sectionHeading: 2rem; /* 32px (H2) */
 --text-displayText: 2.25rem; /* 36px (H1) */
 --text-text-displayTextLarge: 2.5rem; /* 40px (Display) */

 /* SPACING VARIABLES */
 --gap-xs: 0.25rem; /* 4px */
 --gap-sm: 0.5rem;  /* 8px */
 --gap-md: 1rem;    /* 16px */
 --gap-lg: 1.5rem;  /* 24px */
 --gap-xl: 2rem;    /* 32px */
}

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "IBM Plex Sans", serif;
}

a{
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  color: var(--kfupmTurquoise-500);
}

a:hover{
  font-weight: 500;
}

/* Start: COLOR CLASSES FOR BACKGROUND */
.color-bg-primary-50 {
  background-color: var(--kfupmTurquoise-50);
}

.color-bg-primary-200 {
  background-color: var(--kfupmTurquoise-200);
}

.color-bg-primary-500 {
  background-color: var(--kfupmTurquoise-500);
}

.color-bg-gray-50 {
  background-color: var(--kfupmGray-50);
}

.color-bg-gray-100 {
  background-color: var(--kfupmGray-100);
}

.color-bg-gray-400 {
  background-color: var(--kfupmGray-400);
}

.color-bg-beige-50 {
  background-color: var(--kfupmBeige-50);
}

.color-bg-beige-100 {
  background-color: var(--kfupmBeige-100);
}

.color-bg-beige-200 {
  background-color: var(--kfupmBeige-200);
}

.color-bg-success-50 {
  background-color: var(--role-badge-Teal-50);
}

.color-bg-success-100 {
  background-color: var(--role-badge-Teal-100);
}

.color-bg-success-200 {
  background-color: var(--role-badge-Teal-200);
}

.color-bg-success-900 {
  background-color: var(--role-badge-Teal-900);
}

.color-bg-warning-50 {
  background-color: var(--role-badge-Orange-50);
}

.color-bg-warning-100 {
  background-color: var(--role-badge-Orange-100);
}

.color-bg-warning-500 {
  background-color: var(--role-badge-Orange-500);
}

.color-bg-blue-500 {
  background-color: var(--role-badge-Blue);
}

.color-bg-danger-100 {
  background-color: var(--kfupmRed-100);
}

.color-bg-danger-700 {
  background-color: var(--kfupmRed-700);
}
/* End: COLOR CLASSES FOR BACKGROUND */

/* Start: COLOR CLASSES FOR TEXT */
.color-txt-primary-500 {
  color: var(--kfupmTurquoise-500);
}

.color-txt-gray-700 {
  color: var(--kfupmGray-700) !important;
}

.color-txt-warning-500 {
  color: var(--role-badge-Orange-500) !important;
}
.color-txt-blue-500 {
  color: var(--role-badge-Blue) !important;
}

.color-txt-success-900 {
  color: var(--role-badge-Teal-900) !important;
}

.color-txt-danger-700 {
  color: var(--kfupmRed-700) !important;
}
.color-txt-danger-900 {
  color: var(--kfupmRed-900) !important;
}
/* End: COLOR CLASSES FOR TEXT */

/* Start: COLOR CLASSES FOR BORDER */
.color-border-primary-200 {
  border-color: var(--kfupmTurquoise-200) !important;
}

.color-border-primary-500 {
  border-color: var(--kfupmTurquoise-500) !important;
}

.color-border-blue-500 {
  border-color: var(--role-badge-Blue) !important;
}

.color-border-success-100 {
  border-color: var(--role-badge-Teal-100) !important;
}

.color-border-success-900 {
  border-color: var(--role-badge-Teal-900) !important;
}

.color-border-warning-100 {
  border-color: var(--role-badge-Orange-100) !important;
}

.color-border-warning-500 {
  border-color: var(--role-badge-Orange-500) !important;
}

.color-border-danger-100 {
  border-color: var(--kfupmRed-100) !important;
}

.color-border-danger-700 {
  border-color: var(--kfupmRed-700) !important;
}
.color-border-danger-900 {
  border-color: var(--kfupmRed-900) !important;
}

.color-border-gray-100 {
  border-color: var(--kfupmGray-100) !important;
}

.color-border-gray-400 {
  border-color: var(--kfupmGray-400) !important;
}
/* End: COLOR CLASSES FOR BORDER */

/* Start: BUTTONS CLASSES */
.btn-primary-KFUPM-circle{
  border-radius: 50% !important;
  background-color: var(--kfupmTurquoise-500);
  color: var(--kfupmGray-50);
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.btn-primary-KFUPM {
  padding: 8px 16px;
  /* height: 40px; */ /* I stop the hight to word come i in the ceneter*/
  border-radius: 4px;
  background-color: var(--kfupmTurquoise-500);
  color: var(--kfupmGray-50);
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.btn-primary-KFUPM:hover, .btn-primary-KFUPM-circle:hover {
  color: var(--kfupmGray-50);
  font-weight: 500;
  background-color: var(--kfupmTurquoise-700);
}
/* ------------- */

.btn-primary-KFUPM-sm {
  padding:0px 16px; /*change top and bottom to 0 instead of 8px */
  height: 36px;
  border-radius: 4px;
  background-color: var(--kfupmTurquoise-500);
  color: var(--kfupmGray-50);
  font-size: var(--text-small);
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.btn-primary-KFUPM-sm:hover {
  color: var(--kfupmGray-50);
  font-weight: 500;
  background-color: var(--kfupmTurquoise-700);
}
/* ------------- */

.btn-secondary-KFUPM-circle{
  border-radius: 50% !important;
  background-color: transparent;
  color: var(--kfupmTurquoise-500);
  border: 1px solid var(--kfupmTurquoise-500);
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.btn-secondary-KFUPM {
  padding: 8px 16px;
  height: 40px;
  border-radius: 4px;
  background-color: transparent;
  color: var(--kfupmTurquoise-500);
  border: 1px solid var(--kfupmTurquoise-500);
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.btn-secondary-KFUPM:hover, .btn-secondary-KFUPM-circle:hover {
  color: var(--kfupmGray-50);
  font-weight: 500;
  background-color: var(--kfupmGray-700);
}
/* ------------- */

.btn-secondary-KFUPM-sm {
  padding: 8px 16px;
  /* height: 36px; */
  border-radius: 4px;
  background-color: transparent;
  color: var(--kfupmTurquoise-500);
  font-size: var(--text-small);
  border: 1px solid var(--kfupmTurquoise-500);
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.btn-secondary-KFUPM-sm:hover {
  color: var(--kfupmGray-50);
  font-weight: 500;
  background-color: var(--kfupmGray-700);
}
/* ------------- */

.btn-danger-KFUPM-sm {
  padding: 8px 8px;
  height: 36px;
  border-radius: 4px;
  background-color: transparent;
  color: var(--kfupmRed-700);
  font-size: var(--text-small);
  border: 1px solid var(--kfupmRed-700);
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.btn-danger-KFUPM-sm:hover {
  color: var(--kfupmRed-700);
  font-weight: 500;
  background-color: var(--kfupmRed-100);
}

.btn-danger-KFUPM-filled-sm {
  padding: 8px 8px;
  height: 36px;
  border-radius: 4px;
  background-color: transparent;
  color: white;
  font-size: var(--text-small);
  background-color: var(--kfupmRed-700);
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.btn-danger-KFUPM-filled-sm:hover {
  color: white;
  font-weight: 500;
  background-color: var(--kfupmRed-900);
}
/* ------------- */

.btn-secondary-white {
  padding: 8px 16px;
  height: 40px;
  border-radius: 4px;
  background-color: transparent;
  color: white;
  border: 1px solid white;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.btn-secondary-white:hover {
  color: var(--kfupmTurquoise-500);
  font-weight: 500;
  background-color: var(--kfupmGray-100);
}
/* ------------- */


.btn-logout:hover {
  border: 1px solid var(--kfupmGray-200);
  color: var(--kfupmTurquoise-500);
  font-weight: 500;
  background-color: var(--kfupmGray-100);
}
/* End: BUTTONS CLASSES */

.saudi-riyal {
  width: 1rem;
  height: 1rem;
  margin-right: 2px;
}

.saudi-riyal-medium {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 4px;
}

/* Start: View Details Button */
.squared-icon-btn-sm {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background-color: var(--kfupmTurquoise-100);
  color: var(--kfupmTurquoise-500);
  transition: all 0.2s ease;
  border: none;
}

.squared-icon-btn-sm:hover {
  background-color: var(--kfupmTurquoise-500);
  color: white;
  transform: translateX(2px);
}

.squared-icon-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background-color: var(--kfupmTurquoise-100);
  color: var(--kfupmTurquoise-500);
  transition: all 0.2s ease;
  border: none;
}


.squared-icon-btn:hover {
  background-color: var(--kfupmTurquoise-500);
  color: white;
  transform: translateX(2px);
}

@media (max-width: 992px) {
  .squared-icon-btn-sm {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }
}
/* End: View Details Button */

/* Start: BADGES CLASSES */

.badge-small {
  font-size: var(--text-smaller);
  font-weight: 500;
  width: fit-content;
  border-radius: 50px;
  padding: 4px 10px;
}

.badge-small-outlined-gray {
  font-size: var(--text-smaller);
  font-weight: 500;
  width: fit-content;
  border-radius: 50px;
  border: 1px solid var(--kfupmGray-500);
  padding: 4px 10px;
}

.badge-small-outlined-green {
  font-size: var(--text-smaller);
  font-weight: 500;
  width: fit-content;
  border-radius: 50px;
  border: 1px solid var(--kfupmGreen-500);
  color: var(--kfupmGreen-700);
  padding: 4px 10px;
}

.badge-small-outlined-danger {
  font-size: var(--text-smaller);
  font-weight: 500;
  width: fit-content;
  border-radius: 50px;
  border: 1px solid var(--kfupmRed-700);
  color: var(--kfupmRed-900);
  padding: 4px 10px;
}
/* Ends: BADGES CLASSES */


/* Dashboard Layout */
.page-with-copyright-footer {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-with-copyright-footer .page-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.page-with-copyright-footer .container-fluid {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.page-with-sidebar-container {
  display: flex;
  min-height: 100vh;
}

.page-sidebar {
  width: 280px;
  background-color: var(--kfupmTurquoise-500);
  color: var(--kfupmGray-50);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: fixed;
  transition: transform 0.3s ease;
  z-index: 1000;
}

.page-body {
  flex: 1;
  margin-left: 280px;
  min-height: 100vh;
  overflow-y: auto;
  background-color: var(--kfupmGray-50);
}

/* Sidebar Header */
.sidebar-header {
  padding: 1.25rem;
}

.logo-sys-name{
  display: flex;
  flex-direction: row;
  justify-content: start;
  align-items: center;
}

.system-logo {
  margin-bottom: 10px;
}

.kfupm-logo{
  height: 3rem;
    width: 3rem;
}

.system-name {
  font-size: var(--text-cardHeading);
  margin: 0;
  text-align: center;
}

.mobile-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: var(--kfupmGray-50);
  font-size: 1.2rem;
}

/* Sidebar Menu */
.sidebar-menu {
  flex-grow: 1;
}

.sidebar-menu .nav-link {
  color: #ecf0f1;
  padding: 12px 20px;
  border-left: 4px solid transparent;
  transition: all 0.3s;
}

.sidebar-menu .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--kfupmGray-50);
}

.sidebar-menu .nav-link.active {
  background-color: var(--kfupmTurquoise-700);
  border-left: 4px solid var(--role-badge-Yellow-400);
  color: var(--kfupmGray-50);
}

.sidebar-menu .nav-link i {
  width: 20px;
  text-align: center;
}

.collapse-icon {
  transition: transform 0.2s ease;
}

.rotate-up {
  transform: rotate(180deg);
}

#scheduledSubmenu{
background-color: var(--kfupmTurquoise-400);
}

/* user Info */
.user-section, .user-section{
  padding: 1.25rem ;
  padding-bottom: 0;
}
.user-info {
  display: flex;
  flex-direction: row;
  justify-content: start;
  align-items: start;

}

.user-pic-letters {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1E1E1E;
  font-size: var(--text-body);
  font-weight: 700;
}

.user-fullname-title {
  flex-grow: 1;
}

.user-fullname {
  margin: 0;
  font-size: 1rem;
}

.user-title {
  margin: 0;
  font-size: 0.8rem;
  opacity: 0.8;
}

/* Secondary Menu */
.sidebar-secondary-menu {
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-secondary-menu .nav-link {
  color: #bdc3c7;
  padding: 4px 20px;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.sidebar-secondary-menu .nav-link:hover {
  color: #ecf0f1;
  background-color: rgba(255, 255, 255, 0.05);
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 20px;
  margin-top: auto;
}

.btn-secondary-white {
  width: 100%;
  padding: 8px 16px;
  height: 40px;
  border-radius: 4px;
  background-color: transparent;
  color: white;
  border: 1px solid white;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.btn-secondary-white:hover {
  color: var(--kfupmTurquoise-500);
  font-weight: 500;
  background-color: var(--kfupmGray-100);
}

/* Mobile Header */
.mobile-header {
  display: none;
  background-color: var(--kfupmTurquoise-500);
  color: white;
  padding: 15px 20px;
  position: fixed;
  width: 100%;
  z-index: 999;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.mobile-toggle-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  margin-right: 15px;
}

.mobile-logo {
  display: inline-flex;
  align-items: center;
}

.tip-text {
  margin-bottom: 0;
  color: var(--kfupmGray-400);
  font-size: var(--text-small);
}

.user-details-container {
  transition: all 0.3s ease;
  overflow: hidden;
}

/* Responsive Styles for Sidebar */
@media (max-width: 992px) {
  .page-body {
      margin-left: 0;
      padding-top: 70px;
  }

  .sidebar-header .logo-sys-name {
    display: none;
  }
  .mobile-header {
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
  }
}

@media (max-width: 992px) {
  .page-sidebar {
    width: 100%;
    transform: translateX(-100%);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
    overflow-y: auto; /* Enable scrolling */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */

  }

  .page-sidebar.show {
    transform: translateX(0);
  }

  .sidebar-header {
    position: sticky;
    top: 0;
    background-color: var(--kfupmTurquoise-500);
    z-index: 1001;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1)  }

  .mobile-close-btn {
    position: sticky;
    top: 1rem;
    right: 1rem;
    z-index: 1002;
  }

  .sidebar-footer {
    padding-bottom: 2rem;
  }

  /* Ensure content doesn't hide behind mobile header */
  .page-body {
    margin-left: 0;
    padding-top: 70px;
  }

}

.page-section{
  padding-top: 0.5rem;
}

.page-section-title {
  font-weight: 500;
  color: var(--kfupmGray-700);
  font-size: var(--text-body);
  margin-bottom: 0.125rem;
}



/* Start: Welcome Message */

.welcome-icon {
  font-size: 3rem;
  color: var(--kfupmTurquoise-500);
}
/* End: Welcome Message */

/* Start: Eligibility Criteria */
.eligibility-container {
  margin-bottom: 1rem;
}

.icon-square {
  width: 3rem;
  height: 3rem;
}

.icon-square-md {
  width: 2.5rem;
  height: 2.5rem;
}

.icon-square-sm {
  width: 2rem;
  height: 2rem;
}
/* End: Eligibility Criteria */

/* Start: Application Form */
.application-form, .subject-form {
  padding: 1rem;
  background-color: white;
  border-radius: 8px;
}
/* Start: Loan Type Segment Buttons Section */
.outline-border{
  border: 1px solid var(--kfupmGray-400);
  background-color: white;
  border-radius: 8px;
  padding: 0.25rem; /* Equivalent to Bootstrap's p-1 */
  display: inline-block;
}

.form-section-title {
  font-weight: 500;
  color: var(--kfupmGray-500);
  font-size: var(--text-body);
  margin-bottom: 0.125rem;
}

.segment-container {
  padding: 1rem 1.5rem;
}

.segment-btn {
  flex: 1;
  border: solid 1px var(--kfupmGray-100);
  color: var(--kfupmGray-500); /* Muted text color */
  background-color: transparent;
  font-size: var(--text-small); /* Default text size */
  padding: 0.5rem;
  font-weight: 400;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.segment-btn:first-child {
  border-radius: 0.25rem 0 0 0.25rem;
  margin-right: 0.25rem;
}

.segment-btn:last-child {
  border-radius: 0 0.25rem 0.25rem 0;
  margin-left: 0.25rem;

}

.segment-btn:hover {
  background: var(--kfupmGray-100);
  color: var(--kfupmGray-500);
  font-weight: 500;
}

.segment-btn.active {
  background: var(--kfupmTurquoise-500);
  color: white;
  font-weight: 500;
}

.segment-btn.active:hover {
  background: var(--kfupmTurquoise-700);
}




.criterion-item {
  display: flex;
  align-items: start;
  width: fit-content;
  margin-bottom: 0.25rem;
  padding: 0.25rem;
}

.criterion-item .fa-period{
  margin-top: -0.05rem;
}


.fade-in {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* End: Loan Type Segment Buttons Section */

.form-control:focus, .form-select:focus{
  border-color: var(--kfupmTurquoise-500);
  box-shadow: 0 0 0 0.25rem hsla(187, 40%, 20%, 0.25);
}

.form-select option:hover{
  background-color: #006735 !important;
}

/* Start: File Uploader- Attachments Section */
.drop-zone {
  border: 2px dashed #dee2e6;
  border-radius: 8px;
  transition: all 0.3s;
}

.drop-zone.active {
  border-color: var(--kfupmTurquoise-500);
  background-color: var(--kfupmGray-100);
}

.file-list {
  max-height: 200px;
  overflow-y: auto;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  gap: 1rem;
}

.file-item:hover {
  background-color: var(--kfupmGray-100);
}

.file-content {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: 0.75rem;
}

.file-details {
  flex: 1;
  min-width: 0;
}

.file-icon {
  color: var(--kfupmGray-400);
  flex-shrink: 0;
}

.file-size {
  color: #6c757d;
  font-size: 0.8rem;
}

.file-name {
  margin-bottom: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-actions {
  flex-shrink: 0;
}

.remove-file {
  color: var(--kfupmRed-700);
  cursor: pointer;
}

.file-list:not(:has(.file-item)) {
  display: none; /* Initially hide file list if empty */
}

@media (max-width: 767.98px) {
  .file-item {
    padding: 0.5rem 0.75rem;
  }

  .file-name {
    max-width: 150px;
  }
}

/* Fix list-group-item borders */
.list-group-item.file-item {
  border-top-width: 1px !important;
  border-top-style: solid !important;
  border-top-color: rgba(0, 0, 0, 0.125) !important;
}

.list-group-item.file-item + .list-group-item.file-item {
  border-top-width: 1px !important;
}

/* File count styles */
.file-count-item {
  font-weight: 600;
  border:none !important;
  padding: 0.25rem 0;

}

.file-count-text {
  text-align: start;
  color: var(--kfupmGray-500);
}
/* End: File Uploader- Attachments Section */

.terms-list {
  counter-reset: item;
  list-style-type: none;
  padding-left: 0;
}
.terms-list li {
  counter-increment: item;
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 2rem;
}
.terms-list li:before {
  content: counter(item) ".";
  position: absolute;
  left: 0;
  font-weight: bold;
}

.form-check-input:focus {
  border-color: var(--kfupmTurquoise-300);
  box-shadow: 0 0 0 0.25rem hsla(187, 40%, 20%, 0.25);
}

.form-check-input:checked {
  background-color: var(--kfupmTurquoise-500);
  border-color: var(--kfupmTurquoise-500);
}
/* End: Application Form */


/* Start: Loan Details */

.extra-small {
  font-size: 0.75rem;
}

.attachment-item {
  background-color: var(--kfupmGray-50);
}

.installment-card {
  background-color: var(--kfupmGray-50);
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.installment-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05) !important;
}

.installment-card[data-status="paid"] {
  border-left-color: var(--bs-success);
}

.installment-card[data-status="pending"] {
  border-left-color: var(--bs-warning);
}

/* Summary Cards Styling */
.vertical-divider {
  width: 1px;
  height: 40px;
  background: rgba(0,0,0,0.08);
}

.vertical-divider-sm {
  width: 1px;
  height: 28px;
  background: rgba(0,0,0,0.08);
}

.individual-payment-conatiner{
  margin: 0 !important;
  border-bottom-right-radius: calc(-1px + 0.375rem);
  border-bottom-left-radius: calc(-1px + 0.375rem);

}

/* End: Loan Details */

@media (max-width: 992px) {
  .pay-view-details{
    padding-top: 1.25rem;
    border-top: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
  }
}



/* For Admin Interfaces ................ */

/* Adjusting the page width */
@media (min-width: 992px) {
  .body-full-width {
    padding: 1rem 2rem;   
}
  
}
/* Smooth navbar collapse transition (used by Bootstrap) */
.navbar-collapse {
  overflow: hidden;
  transition: height 0.4s ease, padding 0.4s ease;
}

.navbar-collapse.collapsing {
  height: 0;
}

/* Main Navbar Styling */
.main-navbar {
  background-color: var(--kfupmTurquoise-500);
  --bs-navbar-toggler-transition: box-shadow 0.5s ease-in-out !important;
}

/* Nav link default styling */
.main-navbar .nav-link {
  color: #ecf0f1;
  padding: 12px 20px;
  transition: all 0.5s;
}

/* Hover effect */
.main-navbar .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--kfupmGray-50);
}

/* Active link styling (mobile & desktop default) */
.main-navbar .nav-link.active {
  background-color: var(--kfupmTurquoise-700);
  color: var(--kfupmGray-50);
  border-left: 4px solid var(--role-badge-Yellow-400);
  border-bottom: none;
}

/* Active link override for large screens */
@media (min-width: 992px) {
  .main-navbar .nav-link.active {
    border-left: none;
    border-bottom: 2px solid var(--role-badge-Yellow-400);
  }
}

/* Icon spacing in nav links */
.main-navbar .nav-link i {
  width: 20px;
  text-align: center;
}


/* Force color on open dropdown link */
.navbar-nav .nav-link.show {
  color: #ecf0f1;
}

/* Dropdown item styling */
/* Show dropdown on hover (for desktop) */
@media (min-width: 992px) {
  .navbar-collapse {
  overflow: visible !important;
}

/* Ensure proper z-index stacking */
.main-navbar {
  position: relative;
  z-index: 1020;
}

  .main-navbar .nav-item.dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
  }
}


/* Animation for dropdown */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}


.dropdown-menu .dropdown-item {
  background-color:var(--kfupmTurquoise-500);
  color: white;
  border-color: 1px solid white;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.dropdown-menu .dropdown-item:hover {
  background-color: var(--kfupmGray-100);
  color: var(--kfupmGray-700);
}

/* Mobile-specific navbar styles */
@media (max-width: 991.98px) {
  .main-navbar .navbar-collapse.show {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .main-navbar .navbar-nav {
    margin-bottom: 1rem;
  }
}

.user-pic-letters-on-white {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: var(--kfupmTurquoise-500);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

#searchForm .btn:hover, #searchForm .btn:focus {
  background-color: var(--kfupmTurquoise-700);
}

/* Custom styles for filter pills */
#activeFiltersContainer {
  min-height: 1rem;
}

.badge {
  padding: 0.35em 0.65em;
  border-radius: 50rem !important;
}

.btn-close-filter {
  font-size: 0.75rem;
  padding: 0.25rem;
  opacity: 0.7;
}

.btn-close-filter:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  #activeFiltersContainer {
    order: 3;
    width: 100%;
    margin-top: 0.5rem;
  }
}

/* Start: Filter Menu */
/* Start: Filter Menu */
.filter-menu {
  min-width: 320px;
  max-height: 80vh;
  overflow-y: auto;
}

.filter-header {
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--bs-border-color);
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
}

.filter-close-btn {
  font-size: 0.75rem;
  opacity: 0.7;
}

.filter-close-btn:hover {
  opacity: 1;
}

.filter-section {
  margin-bottom: 1.25rem;
}

.filter-subheader {
  padding-bottom: 0.25rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--bs-border-color);
}

.filter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.filter-row .form-label {
  margin-bottom: 0;
  white-space: nowrap;
}

.borderless-select,
.borderless-input {
  border: 0 !important;
  box-shadow: none !important;
  background-color: var(--bs-light) !important;
  width: 40%;
}

.borderless-select {
  appearance: none;
  padding-right: 1.75rem !important;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='%23697077' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 16px 12px;
}

.filter-range-inputs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-range-inputs .form-control {
  width: 80px;
}

.filter-range-inputs .form-control[type="date"] {
  width: 120px;
}

.filter-actions {
  display: flex;
  justify-content: space-between;
  padding-top: 0.75rem;
  margin-top: 0.5rem;
}

/* Active Filters Container */
#activeFiltersContainer {
  display: none;
  min-height: 2rem;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Clear Filters Link */
#clearFiltersLink {
  display: none;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--bs-danger);
  text-decoration: underline;
  margin-right: 0.5rem;
}

/* Filter Pills */
.filter-pill {
  border: 1px solid var(--kfupmTurquoise-500);
  color: var(--kfupmTurquoise-500);
  background-color: transparent;
  border-radius: 50rem;
  padding: 0.35em 0.75em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.filter-pill:hover {
  background-color: var(--kfupmTurquoise-50);
}

.filter-pill .btn-close {
  background-size: 0.65rem;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.filter-pill .btn-close:hover {
  opacity: 1;
}

.filter-pill .text-muted {
  margin-right: 2px;
}

.filter-pill .fw-semibold {
  margin-right: 4px;
}


/* Mobile Responsiveness */
@media (max-width: 768px) {
  .filter-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .borderless-select,
  .borderless-input {
    width: 100% !important;
  }

  .filter-pill {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }

  #clearFiltersLink {
    margin-right: 0.25rem;
  }
}
/* End: Filter Menu */

/* Start: Table Styles */
.table-responsive {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.table {
    margin-bottom: 0;
}

.table-outer-rounded {
    border-spacing: 0;    
    border-radius: 0.25rem;
    overflow: hidden;
}

.table thead th {
  border-radius: 0;
  background-color: var(--kfupmGray-100);
}


.table thead th {
    color: var(--kfupmGray-500);
    font-weight: 500;
    border-bottom: none;
    padding: 12px 16px;
    vertical-align: middle;
}

.table tbody tr {
    transition: background-color 0.2s ease;
}


.table tbody tr:hover {
    background-color: rgba(0,0,0,0.02);
}

.table tbody td {
    padding: 12px 16px;
    vertical-align: middle;
    border-top: 1px solid var(--kfupmGray-100);
}

/* Expanded row styling - applies to both main row and detail row */
tr[aria-expanded="true"] {
    background-color: var(--kfupmGray-50) !important;
    border-top: 2px solid var(--kfupmTurquoise-700) !important;
}

tr.detail-row.show {
    background-color: var(--kfupmGray-50) !important;
    /* border-top: none !important; */
}

/* Remove border between the rows when expanded */
tr[aria-expanded="true"] + tr.detail-row.show {
    box-shadow: inset 0 0 0 1000px var(--kfupmGray-50);
}

/* Adjust the detail content to match */
tr.detail-row.show .detail-content {
    background-color: #FDFCFA;
    border-top: none;
}

/* Ensure nested tables maintain their own styling */
tr.detail-row.show .table {
    background-color: white;
}

/* Smooth transition for background color */
.table tbody tr {
    transition: background-color 0.3s ease;
}


/* LOAN STATUS BADGES */

.status-pending {
    background-color: var(--role-badge-Orange-100);
    color: var(--role-badge-Orange-900);
}

.status-approved {
    background-color: var(--role-badge-Teal-100);
    color: var(--role-badge-Teal-900);
}

.status-rejected {
    background-color: var(--kfupmRed-100);
    color: var(--kfupmRed-900);
}

/* ACTION BUTTONS */
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background-color: transparent;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}

.action-btn:hover {
    background-color: var(--kfupmGray-100);
}

.action-btn.approve {
    color: var(--kfupmGreen-500);
    border-color: var(--kfupmGreen-500);
}

.action-btn.approve:hover {
    background-color: var(--kfupmGreen-100);
}

.action-btn.modify {
    color: var(--role-badge-Orange-500);
    border-color: var(--role-badge-Orange-500);
}

.action-btn.modify:hover {
    background-color: var(--role-badge-Orange-50);
}

.action-btn.reject {
    color: var(--kfupmRed-700);
    border-color: var(--kfupmRed-700);
}

.action-btn.reject:hover {
    background-color: var(--kfupmRed-100);
}

/* Modal Styles */
.modal {
  backdrop-filter: blur(5px);
  transition: all 0.3s ease-out;
}

.modal.fade .modal-dialog {
  transform: translateY(-20px);
  opacity: 0;
  transition: all 0.3s ease-out;
}

.modal.show .modal-dialog {
  transform: translateY(0);
  opacity: 1;
}

.modal-content {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.modal-header {
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding: 1.25rem 1.5rem;
}

.modal-body {
  padding: 1.5rem;
  line-height: 1.6;
}

.modal-footer {
  padding: 1rem 1.5rem;
}


/* EXPANDABLE ROWS */
.expand-btn {
    background: none;
    border: none;
    color: var(--kfupmTurquoise-500);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.expand-btn i {
    transition: transform 0.3s ease;
}

.expand-btn.collapsed i {
    transform: rotate(0deg);
}

.expand-btn:not(.collapsed) i {
    transform: rotate(180deg);
}

.detail-row {
    background-color: white;
}

.detail-content {
    padding: 1rem;
    border-top: 1px solid var(--kfupmGray-100);
}

.detail-label {
    font-weight: 500;
    color: var(--kfupmGray-500);
    margin-bottom: 4px;
}

.detail-value {
    color: var(--kfupmGray-700);
    margin-bottom: 12px;
}

.nested-table-heading{
  font-size: var(--text-small);
  white-space: nowrap;
}

.nested-table-data{
  font-size: var(--text-small);
  white-space: nowrap;
}


/* End: Table Styles */

/* Start: Pagination */
.page-link {
   color: var(--kfupmTurquoise-500);
}

.page-link:hover{
  background-color: var(--kfupmTurquoise-700);
  color: white;
}

.active>.page-link, .page-link.active {
  background-color: var(--kfupmTurquoise-500);
  border-color:var(--kfupmTurquoise-700);
}
/* End: Pagination */


/* Start: Charts Styling */
.chart-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.dashboard-card {
  background: var(--kfupmBeige-50);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.chart-card {
  padding: 1.5rem;
  overflow: hidden;
}

.chart-wrapper {
  position: relative;
  width: 160px;
  height: 160px;
  margin-right: 2rem;
}

.gauge-chart-wrapper {
  position: relative;
  width: 160px;
  height: 146px;
  margin-right: 2rem;
}

/* Unified Legend Styling */
.legend-container {
  font-size: 14px;
  flex-grow: 1;
  min-width: 180px;
}

.legend-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 1rem;
}

.legend-color-container {
  display: flex;
  align-items: center;
  flex-grow: 1;
}

.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
  flex-shrink: 0;
}


.legend-value {
  color: #6c757d;
  white-space: nowrap;
}

.legend-value strong {
  font-weight: 600;
}


.btn-light.active {
  background-color: #e6f0ff;
  border-color: #cce0ff;
  font-weight: 600;
}


.recent-activity {
  background: #f1f8fe;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.btn-light {
  background-color: #fff;
  border: 1px solid #ccc;
  font-size: 12px;
  color: #333;
  text-align: center;
  line-height: 1.2;
  padding: 0.5rem 1rem;
}

.btn-light strong {
  display: block;
  font-size: 14px;
  color: #000;
  font-weight: 600;
}

.btn-light.active {
  background-color: var(--kfupmTurquoise-400);
  border-color: var(--kfupmTurquoise-500);
  color: #fff;
}

.btn-light.active strong {
  color: #fff;
}

.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 2px;
  background-color: var(--role-badge-Blue);
}

.legend-label {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;

}


/* Responsive adjustments */
@media (max-width: 768px) {
  .chart-wrapper {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .legend-container {
    width: 100%;
  }
}


/* End: Charts Styling */

.copyright-footer {
    margin-top: auto;
    padding: 1rem 0;
    text-align: center;
    color: var(--kfupmGray-400);
    font-size: var(--text-small);
    background-color: transparent;
}

/* Start: More Menu in Card  */
/* Dropdown container */
.card.subject-card .card-body {
  position: relative; /* only needs to be set once */
}

/* position the menu where you want it in that wrapper */
.more-menu-in-card {
  position: absolute;
  top: 50%;    /* drop it just below the buttons */
  right: 50%;       /* align with the right edge of the wrapper */
  background-color: var(--kfupmGray-50);
  border: 1px solid var(--kfupmGray-100);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 0.5rem 0;
  min-width: 180px;
  display: none;
  z-index: 999;
}

/* Each item */
.more-menu-in-card .dropdown-item {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--kfupmGray-700);
  cursor: pointer;
  transition: background-color 0.2s;
}

.more-menu-in-card .dropdown-item:hover {
  background-color: var(--kfupmGray-100);
}

/* Disabled style */
.more-menu-in-card .dropdown-item.disabled {
  color: #adb5bd;
  cursor: not-allowed;
}

.more-menu-in-card .dropdown-item.disabled:hover {
  background-color: transparent;
}

/* Delete style */
.more-menu-in-card .dropdown-item.delete {
  color: var(--kfupmRed-700);
  font-weight: 500;
}

/* Divider */
.more-menu-in-card .dropdown-divider {
  margin: 4px 0;
  border-top: 1px solid #dee2e6;
}
.bottom-not-last:not(:last-child) {
  margin-bottom: 1rem;
}
/* End: More Menu in Card  */

.on-card-action-link{
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;

}

.on-card-action-link:hover{
  text-decoration: underline;
  color: var(--kfupmTurquoise-700);
  font-weight: 600;
}

/* Start: Subject Card style */
.subject-card {
    position: relative;
  }
  /* top-border indicators */
  .subject-card .confidence-indicator {
    position: absolute;
    top: -0.75rem;
    left: 1rem;
    background: var(--kfupmRed-100);
    color: var(--kfupmRed-700);
    border: 1px solid var(--kfupmRed-700);
    border-radius: 50%;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
  }
  .subject-card .status-badge {
    position: absolute;
    top: -0.5rem;
    left: 3.5rem;
    font-size: var(--text-smaller);
    font-weight: 500;
    z-index: 2;
  }
  
.border-primary {
  border-color: var(--kfupmTurquoise-500) !important;
}

.confidence-indicator-in-card{
  background: var(--kfupmRed-100);
  color: var(--kfupmRed-700);
  border: 1px solid var(--kfupmRed-700);
  border-radius: 50%;
  font-size: var(--text-smaller);
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
/* End: Subject Card style */

@media (min-width: 1200px){
  .scrolled-container {
    max-height: 8rem;
      
  }
  
}

.member-card {
    transition: transform 0.2s ease;
}
.member-card:hover {
    transform: translateY(-2px);
}

.member-card img {
    width: 4rem;
    height: 4rem;
}