@font-face {
  font-family: 'Poppins';
  src: url('assets/fonts/Poppins-Thin.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
}

@font-face {
  font-family: 'Poppins';
  src: url('assets/fonts/Poppins-ThinItalic.ttf') format('truetype');
  font-weight: 100;
  font-style: italic;
}

@font-face {
  font-family: 'Poppins';
  src: url('assets/fonts/Poppins-ExtraLight.ttf') format('truetype');
  font-weight: 200;
  font-style: normal;
}

@font-face {
  font-family: 'Poppins';
  src: url('assets/fonts/Poppins-ExtraLightItalic.ttf') format('truetype');
  font-weight: 200;
  font-style: italic;
}

@font-face {
  font-family: 'Poppins';
  src: url('assets/fonts/Poppins-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Poppins';
  src: url('assets/fonts/Poppins-LightItalic.ttf') format('truetype');
  font-weight: 300;
  font-style: italic;
}

@font-face {
  font-family: 'Poppins';
  src: url('assets/fonts/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Poppins';
  src: url('assets/fonts/Poppins-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: 'Poppins';
  src: url('assets/fonts/Poppins-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Poppins';
  src: url('assets/fonts/Poppins-MediumItalic.ttf') format('truetype');
  font-weight: 500;
  font-style: italic;
}

@font-face {
  font-family: 'Poppins';
  src: url('assets/fonts/Poppins-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'Poppins';
  src: url('assets/fonts/Poppins-SemiBoldItalic.ttf') format('truetype');
  font-weight: 600;
  font-style: italic;
}

@font-face {
  font-family: 'Poppins';
  src: url('assets/fonts/Poppins-Bold.ttf') format('truetype');
  /* This filename is missing a dot — fix it! */
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Poppins';
  src: url('assets/fonts/Poppins-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
}

@font-face {
  font-family: 'Poppins';
  src: url('assets/fonts/Poppins-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
}

@font-face {
  font-family: 'Poppins';
  src: url('assets/fonts/Poppins-ExtraBoldItalic.ttf') format('truetype');
  font-weight: 800;
  font-style: italic;
}

@font-face {
  font-family: 'Poppins';
  src: url('assets/fonts/Poppins-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
}

@font-face {
  font-family: 'Poppins';
  src: url('assets/fonts/Poppins-BlackItalic.ttf') format('truetype');
  font-weight: 900;
  font-style: italic;
}

:root {
  --primary-color: #77BABD;
  --primary-hover: #6ae1e7;
  --secondary-color: #497285;
  --secondary-hover: #5398b8;
  --highlight-color: #F78536;
  --text-color: #474747;
  --hr-color: #DFEBED;
  --bg-body: #f8f9fa;
  --header-bg: #2B4450;
  --sidebar-width: 250px;
}




/* ===== Global Reset & Font ===== */
body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-body);
  color: #2c3e50;
  font-size: 15px;
}

hr {
  border-color: var(--hr-color);
  opacity: 1;
}

.bg-body {
  background-color: var(--bg-body);
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.bg-secondary {
  background-color: var(--secondary-color) !important;
}

.bg-highlight {
  background-color: var(--highlight-color) !important;
}

.bg-header {
  background-color: var(--header-bg) !important;
}

.text-primary {
  color: var(--primary-color) !important;
}

.text-secondary {
  color: var(--secondary-color) !important;
}

.text-highlight {
  color: var(--highlight-color) !important;
}

.sidebar-width {
  width: var(--sidebar-width);
}

.screen-width {
  width: calc(100% - var(--sidebar-width));
}

.text-normal {
  color: var(--text-color) !important;
}


/* ========== BUTTONS ========== */

/* SUCCESS – Emerald */
.btn-success {
  background-color: #10b981 !important;
  border-color: #10b981 !important;
  color: #ffffff !important;
}
.btn-success:hover {
  background-color: #059669 !important;
  border-color: #059669 !important;
}

/* DANGER – Rose */
.btn-danger {
  background-color: #ef4444 !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
}
.btn-danger:hover {
  background-color: #dc2626 !important;
  border-color: #dc2626 !important;
}

/* WARNING – Amber */
.btn-warning {
  background-color: #f59e0b !important;
  border-color: #f59e0b !important;
  color: #ffffff !important;
}
.btn-warning:hover {
  background-color: #d97706 !important;
  border-color: #d97706 !important;
}

/* INFO – Sky */
.btn-info {
  background-color: #0ea5e9 !important;
  border-color: #0ea5e9 !important;
  color: #ffffff !important;
}
.btn-info:hover {
  background-color: #0284c7 !important;
  border-color: #0284c7 !important;
}

/* LIGHT – Light Gray */
.btn-light {
  background-color: #f3f4f6 !important;
  border-color: #e5e7eb !important;
  color: #111827 !important;
}
.btn-light:hover {
  background-color: #e5e7eb !important;
  border-color: #d1d5db !important;
}

/* DARK – Charcoal */
.btn-dark {
  background-color: #1f2937 !important;
  border-color: #1f2937 !important;
  color: #ffffff !important;
}
.btn-dark:hover {
  background-color: #111827 !important;
  border-color: #111827 !important;
}


.cursor-pointer {
  cursor: pointer;
}

/* ========== ALERTS ========== */

.alert-primary {
  background-color: #e0e7ff !important;
  color: #3730a3 !important;
  border-color: #c7d2fe !important;
}

.alert-secondary {
  background-color: #f1f5f9 !important;
  color: #334155 !important;
  border-color: #cbd5e1 !important;
}

.alert-success {
  background-color: #d1fae5 !important;
  color: #065f46 !important;
  border-color: #a7f3d0 !important;
}

.alert-danger {
  background-color: #fee2e2 !important;
  color: #991b1b !important;
  border-color: #fecaca !important;
}

.alert-warning {
  background-color: #fef3c7 !important;
  color: #92400e !important;
  border-color: #fde68a !important;
}

.alert-info {
  background-color: #cffafe !important;
  color: #075985 !important;
  border-color: #a5f3fc !important;
}

.alert-light {
  background-color: #f8fafc !important;
  color: #475569 !important;
  border-color: #e2e8f0 !important;
}

.alert-dark {
  background-color: #e5e7eb !important;
  color: #1f2937 !important;
  border-color: #d1d5db !important;
}




h2, h3, h5 {
  font-weight: 600;
}

h2 {
  font-size: 1.875rem;
}

h3 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1rem;
}

a {
  text-decoration: none;
  color: var(--primary-color);
}

/* ===== Header (Top Navbar) ===== */
.navbar {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.035);
  position: sticky;
  top: 0;
  z-index: 999;
}



/* Navbar Left: Search / Brand */
.navbar .navbar-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Navbar Right: Actions + Profile */
.navbar .navbar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Action Buttons (e.g., New Project, New Task) */
.navbar .btn-action {
  background-color: #0d6efd;
  color: #fff;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  transition: background-color 0.2s ease-in-out;
  border: none;
}

.navbar .btn-action:hover {
  background-color: #0b5ed7;
}

/* Notification bell */
.navbar .icon-button {
  font-size: 1.2rem;
  color: #6c757d;
  cursor: pointer;
}

.navbar .icon-button:hover {
  color: #0d6efd;
}

/* User Info */
.navbar .user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  color: #2c3e50;
}

.navbar .user-info img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e0e0e0;
}

/* ===== Sidebar ===== */
.bg-light.border {
  height: 100vh;
  border-right: 1px solid #e0e0e0;
  background-color: #fff !important;
}

.bg-light h5 {
  font-size: 1rem;
  font-weight: 700;
  color: #6366f1;
  margin-bottom: 1.5rem;
}

.nav-link {
  font-size: 1rem;
}

.nav.flex-column .nav-link:not(.btn) {
  color: #34495e;
  padding: 0.325rem 1rem;
  border-radius: 0.375rem;
  font-weight: 400;
  transition: all 0.2s;
  margin-left: 0.5rem;
  padding-left: 0;
}

.nav.flex-column .nav-link:not(.no-hover):hover,
.nav.flex-column .nav-link:not(.no-hover).active {
  /* background-color: #f0f4f8; */
  color: var(--highlight-color) !important;
}

/* Strong section titles in menu */
.nav.flex-column strong {
  font-size: 0.875rem;
  color: #888;
  margin-left: 0.5rem;
}

/* Indented submenus */
.nav.flex-column .ms-3 .nav-link {
  font-size: 0.9rem;
}

/* ===== Main Panel ===== */
.container-fluid .col-md-10 {
  background-color: #f9fafc;
  min-height: calc(100vh - 64px);
  padding-top: 2rem;
}

/* ===== Flash Messages ===== */
.alert {
  border-radius: 0.5rem;
  font-size: 0.95rem;
  padding: 0.75rem 1.25rem;
}

.alert-info {
  background-color: #e7f1ff;
  color: #084298;
}

.alert-danger {
  background-color: #fdecea;
  color: #b02a37;
}

/* ===== Buttons ===== */

/* PRIMARY */
.btn {
  border-radius: 100px !important;
  font-weight: 500;
  padding: 0.375rem 1rem;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: #ffffff !important;
}

.btn-primary:not(.no-hover):hover {
  background-color: transparent !important;
  color: var(--primary-color) !important;
}

/* SECONDARY */
.btn-secondary {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: #ffffff !important;
}

.btn-secondary:not(.no-hover):hover {
  background-color: transparent !important;
  color: var(--secondary-hover) !important;
}

.btn-secondary-reverse {
  background-color: transparent !important;
  color: var(--secondary-hover) !important;
  border-color: var(--secondary-color) !important;
}

.btn-secondary-reverse:not(.no-hover):hover {
  background-color: var(--secondary-color) !important;
  color: #ffffff !important;
}

/* HIGHLIGHT */
.btn-highlight {
  background-color: var(--highlight-color) !important;
  border-color: var(--highlight-color) !important;
  color: #ffffff !important;
}

.btn-highlight:not(.no-hover):hover,
.btn-highlight[aria-expanded="true"] {
  background-color: transparent !important;
  color: var(--highlight-color) !important;
}

/* ===== Cards (if used) ===== */
.card {
  border: 1px solid #e0e0e0;
  border-radius: 0.75rem;
  /* padding: 1.5rem; */
  background-color: #fff;
  /* box-shadow: 0 2px 6px rgba(0,0,0,0.05); */

  /* border: 0; */
  box-shadow: none;
  padding: 1.25rem 1.25rem 1.25rem 1.25rem !important;
}

/* ===== Responsive Tweaks ===== */
@media (max-width: 768px) {
  .bg-light.border.p-3 {
    height: auto;
    position: relative;
  }
}


@keyframes blink {
  0%, 100% { background-color: inherit; }
  50% { background-color: #ffeeba; }
}

tr.job-pending td {
  animation: blink 1s ease-in-out;
  animation-iteration-count: 3;
}


.cell-saved {
  background-color: #f7fff9 !important; /* Light green */
  transition: background-color 0.3s ease;
}

/* EXTRA */
.tabs {
  border-bottom: 1px solid #DFEBED;
  width: max-content;
}

.tab-link {
  position: relative;
}

.tab-link.divider-right.active:after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: -1rem;
  width: 1px;
  height: 60%;
  background-color: var(--secondary-color);
}

.tab-link.divider-left.active:before {
  content: '';
  position: absolute;
  top: 50%;
  transform:translateY(-50%);
  left: -1rem;
  width: 1px;
  height: 60%;
  background-color: var(--secondary-color);
}

.tab-link.active {
  font-weight: 600;
  border-bottom: 2px solid var(--primary-color);
}

/* Initial state */
.animate-dropdown {
  opacity: 0;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: block !important;
  /* prevent Bootstrap from using display: none */
  pointer-events: none;
  /* prevent interaction when hidden */
}

/* When dropdown is shown */
.animate-dropdown.show {
  opacity: 1;
  transform: translateY(30px);
  pointer-events: auto;
}

.dropdown-menu {
  border: 0;
  box-shadow: 0 70px 20px 0 rgba(85, 116, 131, 0.00), 0 45px 18px 0 rgba(85, 116, 131, 0.01), 0 25px 15px 0 rgba(85, 116, 131, 0.05), 0 11px 11px 0 rgba(85, 116, 131, 0.09), 0 3px 6px 0 rgba(85, 116, 131, 0.10);
}

.dropdown-item:hover {
  /* transition: .2s ease-in-out; */
  background-color: var(--primary-color);
  color: #fff !important;
}

.dropdown-item:hover svg * {
  fill: #fff !important;
}

.dropdown-menu.dropdown-menu-end {
  right: 0;
  left: auto;
}

.no-caret:after {
  display: none !important;
}

.min-w-150px {
  min-width: 150px;
}

.min-w-300px {
  min-width: 150px;
}

.card-header {
  background-color: #fff;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  padding: 0.6rem 0;
}

.card-body {
  padding: 0;
}

td {
  vertical-align: middle;
}

.mx-n3 {
  margin-left: -1rem !important;
  margin-right: -1rem !important;
}

.hidden {
  opacity: 0;
  visibility: hidden;
}

.w-60 {
  width: 60%;
}

.w-70 {
  width: 70%;
}

.search-input input {
  padding-right: 2.5rem;
}

.search-input .icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
}

table th,
table td {
  color: var(--text-color) !important;
}

table thead tr th:first-child {
  border-top-left-radius: 10px;
}

table thead tr th:last-child {
  border-top-right-radius: 10px;
}

table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 10px;
}

table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 10px;
}

table th {
  font-weight: 600;
  font-size: 1rem;
}

table td {
  font-size: 1rem;
}

.table>:not(caption)>*>* {
  border-bottom-width: 5px;
  border-color: var(--bg-body);
  padding: 0.65rem;
  box-shadow: none;
}

table thead tr th:first-child {
  padding-left: 2rem;
}

table thead tr th:last-child {
  padding-right: 2rem;
}

table tbody tr td:first-child {
  padding-left: 2rem;
}

table tbody tr td:last-child {
  padding-right: 2rem;
}

table.terminology-table {
  table-layout: auto;
}

table thead tr th.actions {
  width: 50px;
  padding: 0;
}

table tbody tr td.actions {
  width: 50px;
  padding: 0;
  text-align: center;
}

table#jobs-table {
  table-layout: auto;
}

table#jobs-table thead tr th:last-child {
  width: 50px;
  padding: 0;
}

table#jobs-table tbody tr td:last-child {
  width: 50px;
  padding: 0;
  text-align: center;
}

.dropdown-toggle.actions:after {
  display: none !important;
}

.svg-icon.svg-eye {
  position: absolute;
  top: 40%;
}

.svg-icon.svg-eye svg * {
  fill: black !important;
}

.fs-18 {
  font-size: 1.125rem;
}

.fs-7 {
  font-size: 0.875rem;
}

.form-label {
  font-size: 0.875rem;
}

.highlight-match {
  background-color: rgba(247, 133, 54, 0.10) !important;
  border-color: var(--highlight-color) !important;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  display: none;
  -webkit-appearance: none;
}

.custom-placeholder {
  position: absolute;
  width: calc(100% - 40px);
  text-align: start;
  left: 1px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #000;
  font-size: 1rem;
  font-weight: 400;
  transition: 0.2s ease;
  background: #fff;
  padding: 6px 12px;
  border-radius: 0.375rem;
}

.card.credit-view {
  padding: 1.875rem !important;
  box-shadow: 0 98px 27px 0 rgba(168, 177, 179, 0.00), 0 63px 25px 0 rgba(168, 177, 179, 0.01), 0 35px 21px 0 rgba(168, 177, 179, 0.05), 0 16px 16px 0 rgba(168, 177, 179, 0.09), 0 4px 9px 0 rgba(168, 177, 179, 0.10);
}

.credit-view h5 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.w-150 {
  width: 150px !important;
}

#projectForm table tbody tr:hover td {
  background-color: #DFEBED;
  cursor: pointer;
}

input[name="search"] {
  padding-right: 2.5rem;
}

.icon-search {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
}

.login-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#project_id {
  height: 38px;
}

.progress-bar {
  background-color: var(--secondary-color);
}

.progress,
.progress-stacked {
  --bs-progress-bg: var(--hr-color);
}

.pagination {
  gap: 0.35rem;
}

.page-item {
  width: 20px;
  height: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-item .page-link {
  color: var(--text-color) !important;
  padding: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.875rem;
  border-color: transparent !important;
  border-radius: 0px !important;
}

.page-item.active .page-link {
  background-color: var(--secondary-color) !important;
  color: #fff !important;
}

.dropdown-hover:hover>.dropdown-menu {
  display:block;
  position: absolute;
  inset: 0px 0px auto auto;
  margin: 0px;
  transform: translate(0px, 34px);
}

@media (max-width: 1200px) {
  html {
    font-size: 12px;
  }

  .logo-container,
  .utility-container {
    width: auto !important;
  }
}

@media (max-width: 767px) {
  :root {
    --sidebar-width: 175px;
  }

  html {
    font-size: 10px;
  }
}

@media (min-width: 768px) {
  .w-md-70 {
    width: 70% !important;
  }

  .w-md-60 {
    width: 60% !important;
  }

  .w-md-50 {
    width: 50% !important;
  }

  .min-w-md-150px {
    min-width: 150px !important;
  }

  .min-w-md-300px {
    min-width: 300px !important; 
  }
}