@import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap");

:root {
  --light-green: #e8f4f0;
  --cream: #fff7ee;
  --light-mehron: #c3263f;
  --dark-mehron: #9c2941;
  --light-grey: #f2f2f2;
  --dark-blue: #0a143f;
  --dark-blue-2: #0a143fd5;
  --light-black: #444;
  --box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.1);
}

/* ===== Chrome, Edge, Safari ===== */
::-webkit-scrollbar {
  width: 12px;
  /* scrollbar width */
}

::-webkit-scrollbar-track {
  background: transparent;
  /* transparent track */
  border-radius: 10px;
  /* rounded track */
}

::-webkit-scrollbar-thumb {
  background: #888;
  /* thumb color */
  border-radius: 10px;
  /* rounded edges */
  border: 3px solid transparent;
  /* side padding effect */
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
  background-clip: content-box;
}

/* ===== Firefox ===== */
* {
  scrollbar-width: thin;
  /* "auto" or "thin" */
  scrollbar-color: #888 transparent;
  /* thumb color | track color */
}

*::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* ===== Optional smooth scrolling ===== */
html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Nunito", sans-serif;
  /* font-weight: 500; */
}

body {
  background-color: #f2f2f2;
}

/* Base Typography Utility Styles (Desktop Defaults) */
.fs-10 {
  font-size: 10px;
}

.fs-12 {
  font-size: 12px;
}

.fs-14 {
  font-size: 14px;
}

.fs-16 {
  font-size: 16px;
}

.fs-18 {
  font-size: 18px;
}

.fs-20 {
  font-size: 20px;
}

.fs-24 {
  font-size: 24px;
}

.fs-28 {
  font-size: 28px;
}

.fs-32 {
  font-size: 32px;
}

.fs-40 {
  font-size: 40px;
}

.fs-48 {
  font-size: 48px;
}

/* Font Weight Classes */
.fw-light {
  font-weight: 300;
}

.fw-normal {
  font-weight: 400;
}

.fw-medium {
  font-weight: 500;
}

.fw-semibold {
  font-weight: 600;
}

.fw-bold {
  font-weight: 700;
}

.fw-extrabold {
  font-weight: 800;
}

/* Line Height Helpers */
.lh-tight {
  line-height: 1.2;
}

.lh-normal {
  line-height: 1.5;
}

.lh-loose {
  line-height: 1.8;
}

/* Text Alignment & Case */
.text-uppercase {
  text-transform: uppercase;
}

.text-lowercase {
  text-transform: lowercase;
}

.text-capitalize {
  text-transform: capitalize;
}

.text-muted {
  color: #6c757d;
}

/* Heading Classes */
h1,
.h1 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

h2,
.h2 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
}

h3,
.h3 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 14px;
}

h4,
.h4 {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 12px;
}

h5,
.h5 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 10px;
}

h6,
.h6 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
}

.material-symbols-outlined {
  font-size: 20px;
  font-weight: 300;
  color: #999;
  vertical-align: middle;
  cursor: pointer;
}

/* ------------------navbar style------------------ */

.menu-icon .material-symbols-outlined {
  font-size: 22px;
  color: #fff;
}


.navbar {
  position: sticky;
  top: 20px;
  /* margin: 0 auto; */
  width: calc(100% - 10px);
  max-width: 1100px;
  background-color: var(--dark-blue);
  border-radius: 999px;
  padding: 10px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--box-shadow);
  /* z-index: 1050; */
  z-index: 1045;
  /* higher than overlay and drawer */
  /* margin-top: 20px; */
}



.nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-weight: 500;
}

.brand-logo {
  width: 135px;
}

.menu-icon {
  display: none;
}

/* Drawer */
.drawer {
  position: fixed;
  top: 105px;
  right: 20px;
  background-color: #fff;
  border-radius: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 20px 5px;
  transform: translateX(120%);
  transition: all 0.3s ease;
  z-index: 1040;
  /* just below navbar */
}

.scroll-container {
  width: 220px;
  height: 400px;
  overflow: auto;
  padding: 10px;
  margin-top: 20px;
}

.drawer.open {
  transform: translateX(0);
}

.drawer .close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}

.drawer nav a,
.dropdown-toggle {
  display: block;
  padding: 7px 15px;
  border-radius: 6px;
  margin: 0;
  font-size: 16px;
  color: black;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
}

.drawer nav a:hover,
.dropdown-toggle:hover {
  background-color: var(--light-grey);
}

.dropdown-arrow {
  transition: transform 0.3s ease-in-out;
}

.dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding-left: 16px;
}

/* Optional overlay behind drawer */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  z-index: 1030;
  /* behind both drawer and navbar */
  display: none;
}

.overlay.show {
  display: block;
}

/* ------------------navbar style end------------------ */

.page-container {
  display: flex;
  flex-direction: column;
  justify-content: start;
  /* justify-content: space-between; */
  align-items: center;
  min-height: 100svh;
  gap: 20px;
}

button {
  font-size: 14px;
  padding: 0.7rem 1.4rem;
  background-color: var(--light-mehron);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button.small{
  padding: 0.4rem 0.8rem;
  font-size: 13px;

}

button:hover {
  background-color: #9c2941;
  color: var(--cream);
}

.input-group {
  /* margin-bottom: 1rem; */
  position: relative;
}

.input-group label {
  font-size: 15px;
  display: block;
  margin-bottom: 0.3rem;
  color: #444;
  font-weight: 500;
}

.input-group input,
.input-group select,
.input-group textarea {
  font-size: 14px;
  width: 100%;
  padding: 0.5rem 0.8rem;
  padding-left: 36px;
  border: 1px solid #ccc;
  border-radius: 8px !important;
  transition: border-color 0.3s ease;
  appearance: none;
  /* hide native arrow */
  -webkit-appearance: none;
  -moz-appearance: none;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  outline: none;
  border-color: var(--dark-blue);
}

.input-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 10px;
  cursor: pointer;
  user-select: none;
}

.right-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  user-select: none;
}

a {
  color: var(--dark-blue);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

/* ------------------------------------ */

input,
select,
textarea {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 16px;
  font-family: inherit;
  color: #333;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

select {
  /* background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20,50 70,100 120,50' stroke='%23666' stroke-width='15' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); */
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 36px;
}

/* Remove extra inner padding in Firefox on select elements */
select:-moz-focusring {
  color: transparent;
  text-shadow: 0 0 0 #333;
}

.next-button {
  background-color: var(--dark-blue);
  border: none;
  padding: 0.7rem 1.4rem;
  border-radius: 12px;
  color: white;
  font-size: 14px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 7px 20px 0 rgba(0, 0, 0, 0.2);
}

.next-button:hover {
  background-color: var(--dark-blue-2);
}

.back-button {
  background-color: #f7f7f7;
  border: none;
  padding: 0.7rem 1.4rem;
  border-radius: 12px;
  color: #333;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.back-button:hover {
  background-color: #eaeaea;
  color: #333;
}

.is-invalid {
  border-color: var(--light-mehron) !important;
  box-shadow: 0 0 0 0.2rem rgba(227, 52, 47, 0.25);
}

.field-label {
  font-size: 14px;
  padding-bottom: 4px;
}

.signup-link {
  margin-top: 1rem;
  color: #666;
  font-size: 16px;
}

.form-container {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--box-shadow);
  width: 100%;
  max-width: 700px;
  margin: 20 0;
}

/* General Tooltip Style */
.tooltip .tooltip-inner {
  background-color: var(--cream);
  color: var(--dark-blue);
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  max-width: 250px;
}

/* Customize Card */
.customize-card {
  border-radius: 20px;
  overflow: hidden;
  border: none;
  height: 100%;
}

.customize-card>.card-header {
  background-color: white;
  padding: 12px 24px;
}

/* Table Styling */
.table td,
.table th {
  vertical-align: middle !important;
}

.table th.th-name {
  width: 150px;
}

/* Sidebar Styles */
.sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px;
  width: 200px;
  height: 100%;
  position: fixed;
  background-color: white;
  /* box-shadow: var(--box-shadow); */
  overflow: hidden;
}

.sidebar-nav-links {
  flex-grow: 1;
  overflow-y: auto;
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* Sidebar Links */
.sidebar div a {
  display: flex;
  align-items: center;
  justify-content: start;
  color: var(--dark-blue);
  padding: 10px 16px;
  text-decoration: none;
  border-radius: 6px;
  gap: 10px;
}

.sidebar div a .material-symbols-outlined {
  color: inherit;
  transition: color 0.2s ease;
}

/* Active Sidebar Link */
.sidebar div a.active {
  background-color: var(--dark-blue);
  color: white;
}

.sidebar div a.active .material-symbols-outlined {
  color: inherit;
}

/* Hover Effects */
.sidebar div a:hover:not(.active) {
  background-color: var(--dark-blue);
  color: white;
}

.sidebar div a:hover:not(.active) .material-symbols-outlined {
  color: inherit;
}

/* Main Content */
.content {
  margin-left: 200px;
  height: 100%;
}

/* Mobile Footer */
.m-footer {
  display: none;
}

.m-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #ffffff;
  padding: 10px;
  min-width: 280px;
  border-top: 0.5px solid #e5e5e7;
  z-index: 1000;
}

.m-footer-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 400px;
  margin: 0 auto;
}

.m-nav-item {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #8e8e93;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.2s ease;
  justify-content: center;
  gap: 5px;
}

.m-nav-item.active {
  background-color: var(--dark-blue) !important;
  color: #ffffff;
}

.m-nav-item.active .material-symbols-outlined {
  color: white;
}

.m-nav-item:not(.active) .material-symbols-outlined {
  color: #8e8e93;
}

.m-nav-item:hover:not(.active) {
  color: #48484a;
}

.m-nav-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.m-nav-label {
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.m-nav-item:not(.active) .m-nav-label {
  display: none;
}

.m-nav-item.active .m-nav-label {
  display: block;
}

/* Sidebar Dropdown */
.sidebar-dropdown {
  display: flex;
  flex-direction: column;
}

.sidebar-dropdown-content {
  display: none;
  flex-direction: column;
  padding-left: 8px;
  border-left: 2px solid var(--dark-blue);
  transition: max-height 0.3s ease, opacity 0.3s ease;
  background-color: var(--cream);
  border-radius: 6px;
  overflow: hidden;
}

.sidebar-dropdown.open .sidebar-dropdown-content {
  display: flex;
}

.sidebar-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

/* Profile Card Styles */
.sidebar-profile-card,
.profile-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--light-grey);
  border-radius: 12px;
  padding: 10px;
  transition: box-shadow 0.3s ease;
  cursor: pointer;
  margin: 10px 0;
}

.profile-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.profile-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sidebar-profile-card p,
.profile-info p {
  margin: 0;
  font-weight: 600;
  font-size: 13px;
  color: #333;
}

.profile-info small {
  font-size: 12px !important;
  color: #666;
}

.profile-icon {
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.profile-icon:hover {
  transform: scale(1.05);
}

.responsive-container {
  width: 100%;
  padding: 16px;
}

/* Request record Table styles   */
.badge-status {
  padding: 4px 10px;
  font-size: 14px;
  border-radius: 20px;
  font-weight: 600;
  text-transform: capitalize;
}

.yellow {  /* #ffe9b8 */
  /* pending  */
  background-color: #ffe9b8;
  color: #a15e00;
}

.light-blue {  /* #d4f0ff */
  /* assign  */
  background-color: #d4f0ff;
  color: #007aa3;
}

.light-red {  /* #ffd4d4 */
  /* incomplete, disapprove */
  background-color: #ffd4d4;
  color: #ff2323;
}

.light-green {  /* #c6f7d4 */
  /* complete, approve  */
  background-color: #c6f7d4;
  color: #1b6e3c;
}

.th-description,
td.detail-table-description {
  min-width: 150px;
  width: 30%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-wrap: wrap;
}



.small-mehron-button {
  font-size: 12px;
  color: white;
  background-color: var(--dark-mehron);
  padding: 6px;
  border-radius: 4px;
  text-wrap: nowrap;
  vertical-align: super;

  &:hover {
    background-color: var(--light-mehron);
  }
}

.small-mehron-button>span {
  color: white;
  font-size: 20px;
}

.table-card-header {
  display: flex;
  align-items: start;
  gap: 10px;
  justify-content: space-between;
}

.action-button {
  display: inline-grid;
  align-items: center;
  gap: 2px;
  /* padding: 5px 12px; */
  font-size: 12px;
  color: var(--dark-blue);
  background-color: none;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin: 0px 5px;
  color: #999;
}

.action-button:hover {
  background-color: var(--light-grey);
  color: black;
}

.action-button:hover>.material-symbols-outlined {
  color: black;
}


.action-button-plain {
  background-color: none;
  border: none;
  cursor: pointer;
  color: #999;
  border-radius: 100px !important;
  padding: 5px;
}

.action-button-plain:hover {
  border-radius: 100px !important;
  background-color: var(--light-grey);
}

.action-button-plain:hover>.material-symbols-outlined {
  color: black;
}

.request-detail-card {
  padding: 16px;
  height: 100%;
}

.request-detail-card>h5 {
  border-bottom: 1px solid var(--light-grey);
  color: var(--dark-blue-2);
  padding-bottom: 8px;
}

.request-detail-card>div {
  color: var(--light-black);
  padding: 4px 0;
}

.request-detail-card>div>span {
  font-size: 14px;
}


.signature {
  object-fit: contain;
  width: 120px;
}

.details-section {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  width: 100%;
}

.details-box {
  background-color: #fff;
  padding: 20px;
  flex: 1 1 calc(33% - 20px);
  min-width: 300px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.details-box>h5 {
  border-bottom: 1px solid var(--light-grey);
  color: var(--dark-blue-2);
  padding-bottom: 8px;
}

.details-box>div {
  color: var(--light-black);
  padding: 4px 0;
}

.details-box>div>span {
  font-size: 14px;
}

@media (min-width: 1000px) {
  .responsive-container {
    /* max-width: 1300px; */
    margin: 0 auto;
  }
}

/* Responsive Font Scaling */

/* Responsive */
@media (max-width: 1000px) {
  .nav-links {
    display: none;
  }

  .menu-icon {
    display: block;
  }

  .navbar {
    padding: 7px 21px;
  }

  .brand-logo {
    width: 120px;
  }

  .responsive-container {
    /* padding-bottom: 100px; */
    padding: 0px 20px 76px;
  }

  .navbar {
    margin-top: 20px;
  }

  #profileBtn {
    display: none;
  }

  .m-footer {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .content {
    margin-left: 0;
    margin-bottom: 60px;
  }
}

/* Tablets (≥600px and ≤1024px) */
@media (max-width: 1024px) and (min-width: 600px) {

  h1,
  .h1 {
    font-size: 32px;
  }

  h2,
  .h2 {
    font-size: 28px;
  }

  h3,
  .h3 {
    font-size: 24px;
  }

  h4,
  .h4 {
    font-size: 20px;
  }

  h5,
  .h5 {
    font-size: 18px;
  }

  .fs-48 {
    font-size: 40px;
  }

  .fs-40 {
    font-size: 32px;
  }

  .fs-32 {
    font-size: 28px;
  }

  .fs-28 {
    font-size: 24px;
  }

  .fs-24 {
    font-size: 20px;
  }
}

/* Mobile (≤599px) */
@media (max-width: 599px) {

  h1,
  .h1 {
    font-size: 28px;
  }

  h2,
  .h2 {
    font-size: 24px;
  }

  h3,
  .h3 {
    font-size: 20px;
  }

  h4,
  .h4 {
    font-size: 18px;
  }

  h5,
  .h5 {
    font-size: 16px;
  }

  h6,
  .h6 {
    font-size: 14px;
  }

  .fs-48 {
    font-size: 32px;
  }

  .fs-40 {
    font-size: 28px;
  }

  .fs-32 {
    font-size: 24px;
  }

  .fs-28 {
    font-size: 20px;
  }

  .fs-24 {
    font-size: 18px;
  }
}

@media (max-width: 320px) {
  .m-footer {
    padding: 12px 16px 24px 16px;
  }

  .m-nav-item {
    padding: 6px 12px;
    min-height: 40px;
  }

  .m-nav-icon {
    width: 22px;
    height: 22px;
    font-size: 18px;
  }
}


  /* OTP MODAL STYLE  */


    .otp-form {
        position: relative;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        overflow: hidden;
        /* hide off-screen panel */
    }

    .slider {
        display: flex;
        width: 200%;
        /* two children at 100% each */
        transition: transform 0.5s ease;
    }

    .slider.shifted {
        transform: translateX(-50%);
    }

    .mobile-otp,
    .email-otp {
        width: 50%;
        padding: 20px;
        box-sizing: border-box;
    }

    .mobile-otp h2,
    .email-otp h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
        text-align: center;
        color: #333;
    }

    .otp-container,
    .email-otp-container {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .otp-input,
    .email-otp-input {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
        text-align: center;
        border: 1px solid #ccc;
        border-radius: 0.25rem;
        transition: border-color 0.3s;
        outline: none;
    }

    .otp-input:focus,
    .email-otp-input:focus {
        border-color: #0d6efd;
    }

    .slider:not(.shifted) .email-otp #verifyEmailOTP {
        display: none;
    }

    .slider.shifted .mobile-otp #verifyMobileOTP {
        display: none;
    }

    .resend-row {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: .5rem;
    }

    .countdown {
        font-variant-numeric: tabular-nums;
        color: #6c757d;
    }