:root {
  --primary: #1f65c5;
  --primary-dark: #143a91;
  --primary-soft: #8cb7ff;
  --surface: #ffffff;
  --surface-soft: #f4f8ff;
  --background: #e9efff;
  --text-dark: #0d1b39;
  --muted: #4d5b7f;
  --border-soft: rgba(20, 57, 145, 0.18);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: 0.8rem;
}

input[type="radio"],
input[type="checkbox"] {
  accent-color: var(--primary);
}


span {
  font-size: 0.7rem;
}

body {
  background-color: var(--background);
}

.text-muted {
  --bs-text-opacity: 1;
  color: var(--bs-secondary-color) !important;
  font-size: 0.6rem;
}

input,
select,
button,
textarea,
optgroup {
  font-size: 0.6rem;
}

.language-toggle {
  position: fixed;
  top: 10px;
  right: 70px;
  z-index: 1200;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.6rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.language-toggle select {
  border: none;
  background: transparent;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.language-toggle label {
  font-weight: 600;
}

.language-toggle--hrms {
  right: 70px;
}

/* Sidebar */
.sidebar {
  width: 220px;
  background: linear-gradient(180deg, #1f65c5 0%, #143a91 70%, #0d1b39 100%) !important;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  overflow-y: auto;
  transition: transform 0.3s ease;
  color: white;
  z-index: 999;
  padding: 10px 10px;
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 950;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.sidebar-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.sidebar .logo {
  text-align: center;
  width: 100%;
  height: 100px;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar ul li {
  padding: 12px 10px;
  cursor: pointer;
  display: flex;
  border-radius: 20px;
  transition: background-color 0.2s;
  font-size: 0.7rem;
  font-weight: bol600d;
}

.sidebar ul li a {
  text-decoration: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: 600;
}

.sidebar ul li:hover,
.sidebar ul li.active {
  background-color: var(--primary-dark);
  border-left: 4px solid #ffffff;
}

.sidebar ul li i {
  margin-right: 12px;
}

.submenu-toggle-icon {
  margin-left: 12px;
  margin-right: 0px;
}

.submenu {
  display: none;
  flex-direction: column;
  padding-left: 5px;
}

.submenu a {
  padding: 7px 0px 7px 0px;
  font-size: 0.7rem;
  color: #ffffff;
  text-decoration: none;
}

.submenu a:hover {
  background-color: var(--primary);
  border-left: 4px solid #ffffff;
}

.has-submenu {
  flex-direction: column;
}

.has-submenu.open .submenu {
  display: flex;
}

.sidebar.hide {
  transform: translateX(-100%);
}

/* Main content area */
.main,
.main-content {
  margin: 10px 20px 0px 250px;
  padding: 10px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  transition: all 0.3s ease;
  height: 95vh;
}

.main.full,
.main-content.full {
  margin-left: 0;
  width: 100%;
}

.form-footer {
  text-align: right;
  margin-top: 20px;
}

.form-footer button {
  padding: 8px 20px;
}

/* Table Styling */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
  font-size: 0.7rem;
}

.table thead tr {
  background-color: var(--primary);
  color: white;
}

.table thead th {
  font-weight: 600;
  text-align: center;
  border: none;
  font-size: 0.6rem;
}

.table tbody tr {
  background-color: #f5f6ff;
  color: #6c757d;
  box-shadow: 0 1px 4px rgba(31, 101, 197);
  transition: background-color 0.3s ease;
  border-radius: 8px;
}

.table tbody tr:hover {
  background-color: #dbe7ff;
  color: var(--primary-dark);
}

.table tbody td {
  padding: 4px 8px;
  text-align: center;
  vertical-align: middle;
  font-size: 0.6rem;
}

.table tbody td a {
  color: var(--primary);
  font-size: 0.6rem;
  margin: 0 8px;
  transition: color 0.3s ease;
}

.table tbody td a:hover {
  color: var(--primary-dark);
}

.table tbody tr td:first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.table tbody tr td:last-child {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

.table,
.table th,
.table td {
  border: none;
}

.table-responsive-table {
  height: 650px;
}

/* Forms and Focus */
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(31, 101, 197);
}

/* Upload Avatar */
.rounded-circle-upload {
  position: relative;
  width: 120px;
  height: 120px;
  margin: auto;
}

.rounded-circle-upload img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 2px solid #dee2e6;
  border-radius: 50%;
}

.rounded-circle-upload input[type="file"] {
  position: absolute;
  top: 85px;
  left: 85px;
  width: 35px;
  height: 35px;
  opacity: 0;
  cursor: pointer;
}

.rounded-circle-upload span {
  position: absolute;
  top: 85px;
  left: 85px;
  width: 35px;
  height: 35px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 0.7rem;
  cursor: pointer;
}

/* Switch Button */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 22px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: background-color 0.4s;
  border-radius: 34px;
}

.slider:before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 3px;
  background-color: white;
  transition: transform 0.4s;
  border-radius: 50%;
}

input:checked+.slider {
  background-color: var(--primary);
}

input:checked+.slider:before {
  transform: translateX(20px);
}

/* Page Layout */
.dashboard-header {
  font-size: 1rem;
  font-weight: bold;
  color: var(--primary);
  border-left: 5px solid var(--primary);
  padding-left: 12px;
}


.container-box {
  margin: 10px 20px 0px 260px;
  padding: 10px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  transition: all 0.3s ease;
}

/* Employee Page Styles */
.employee-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  position: fixed;
  width: 100%;
}

.employee-header img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--primary);
}

.employee-header .info h6 {
  margin: 0;
  color: var(--primary);
  font-weight: bold;
  font-size: 0.9rem;
}

.employee-header .info p {
  margin: 4px 0;
  color: #555;
}

.edit-employee-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--hrms-card);
  border-radius: 18px;
  padding: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--hrms-border);
  margin-bottom: 24px;
}

.edit-employee-header img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--primary);
}

.edit-employee-header .info h6 {
  margin: 0;
  color: var(--primary);
  font-weight: bold;
  font-size: 0.9rem;
}

.edit-employee-header .info p {
  margin: 4px 0;
  color: #555;
}

.section {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 25px;
}

.image-wrap {
  width: 20%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.form-label {
  font-weight: 600;
  margin-bottom: 6px;
}

#sidebarToggle {
  position: fixed;
  top: 15px;
  left: 230px;
  z-index: 1001;
  font-size: 0.9rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary);
  transition: color 0.3s ease;
}

#sidebarToggle:hover {
  color: var(--primary-dark);
}

/* Responsive Design */
@media (max-width: 768px) {

  #sidebarToggle {
    top: 10px
  }

  .sidebar.show {
    transform: translateX(0);
  }

  .main,
  .main-content,
  .container-box {
    margin-left: 0 !important;
    width: 100%;
    margin-top: 50px;
  }

  .table thead {
    display: none;
  }

  .table tbody tr {
    display: block;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(31, 101, 197);
    background: white;
  }

  .table tbody td {
    display: flex;
    justify-content: space-between;
    text-align: right;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
  }

  .table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--primary);
    flex-basis: 50%;
    text-align: left;
  }

  .table tbody td:last-child {
    border-bottom: none;
  }

  .dashboard-header {
    font-size: 0.9rem;
  }

  .employee-header {
    flex-direction: column;
    text-align: center;
  }

  .employee-header img {
    margin-bottom: 15px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }
}

.sidebar.hide~.container-box,
.sidebar.hide~.main,
.sidebar.hide~.main-content {
  margin-left: 0px !important;
  width: 100% !important;
}

.sidebarToggleCorrect {
  margin-left: -214px;
}

body.lang-ar {
  direction: rtl;
  text-align: right;
}

body.lang-ar .sidebar {
  left: auto;
  right: 0;
}

body.lang-ar .sidebar ul li {
  flex-direction: row-reverse;
}

body.lang-ar .sidebar ul li a {
  justify-content: flex-end;
  text-align: right;
}

body.lang-ar #sidebarToggle {
  left: auto;
  right: 15px;
}

body.lang-ar .language-toggle {
  left: 70px;
  right: auto;
  flex-direction: row-reverse;
}

@media (max-width: 768px) {
  .form-footer {
    display: flex;
    flex-direction: column;
  }

  .form-footer .btn {
    margin-bottom: 10px;
    width: 100%;
  }
}

.select2-container--default .select2-selection--multiple {
  min-height: 38px;
  border: 1px solid #ced4da;
  border-radius: 4px;
}

.select2-container--default .select2-selection--single {
  min-height: 38px;
  border: 1px solid #ced4da;
  border-radius: 4px;
}

.stage-btn {
  background-color: #fff;
  border: 2px solid var(--primary) !important;
  color: var(--primary);
  font-weight: 500;
  transition: all 0.2s ease-in-out;
  border-radius: 0.375rem !important;
}

.btn-check:checked+.stage-btn {
  background-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 8px rgba(31, 101, 197);
}

.btn-check+.stage-btn:hover {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

.img-box {
  width: 150px;
  height: 100px;
}

.img-box img {
  width: 100%;
  height: 100%;
}

.passes-box {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}

.gate-pass-box {
  border-radius: 8px;
  padding: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  width: calc(33.33% - 20px);
  /* for 3 in a row with 20px gap */
  box-sizing: border-box;
  background-color: white;
}

.gate-pass-box img {
  height: 60px;
  object-fit: contain;
}

.gate-pass-box h5 {
  margin: 0;
  font-size: 0.7rem;
  font-weight: bold;
}

.gate-pass-box p {
  margin: 6px 0;
  font-size: 0.8rem;
  ;
}

.btn {
  padding: 6px 14px;
  font-size: 0.7rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
}

/* Responsive refinements */
@media (max-width: 1200px) {
  .sidebar {
    width: 210px;
  }

  #sidebarToggle {
    left: 210px;
  }

  .main,
  .main-content,
  .container-box {
    margin-left: 220px;
  }
}

@media (max-width: 992px) {
  body {
    padding: 0 8px;
  }

  .sidebar {
    width: 240px;
    transform: translateX(-100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  }

  .sidebar.hide {
    transform: translateX(-100%);
  }

  .sidebar:not(.hide) {
    transform: translateX(0);
  }

  #sidebarToggle {
    left: 12px;
    top: 12px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    padding: 8px 10px;
  }

  .main,
  .main-content,
  .container-box {
    margin: 16px 10px 20px 10px;
    padding: 14px;
    width: auto;
  }

  .language-toggle {
    right: 16px;
  }

  .table-box-container,
  .table-wrapper,
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table-box-table,
  .table {
    min-width: 640px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .passes-box .gate-pass-box {
    width: calc(50% - 12px);
  }
}

@media (max-width: 768px) {

  .main,
  .main-content,
  .container-box {
    margin: 12px 8px 20px 8px;
    padding: 12px;
  }

  .sidebar {
    width: 82%;
    max-width: 220px;
  }

  .employee-header {
    position: static;
    width: 100%;
  }

  .passes-box .gate-pass-box {
    width: 100%;
  }

  .form-footer {
    text-align: center;
  }

  .form-footer .btn {
    width: 100%;
    margin-bottom: 10px;
  }

  .info-group label {
    font-size: 0.7rem;
  }
}

@media (max-width: 576px) {
  .language-toggle {
    position: fixed;
    top: 10px;
    right: 12px;
  }

  .container-box,
  .main,
  .main-content {
    margin: 70px 8px 16px 8px;
  }

  .table-box-table,
  .table {
    min-width: 520px;
  }
}

.btn-success {
  background-color: #28a745;
  color: white;
}

.btn-danger {
  background-color: var(--primary);
  color: white;
}

.status {
  font-weight: bold;
  margin-top: 10px;
  font-size: 0.7rem;
}

.img-box {
  width: 100px;
  height: 60px;
}

@media (max-width: 900px) {
  .passes-box {
    flex-direction: column;
  }

  .gate-pass-box {
    width: 100%;
  }

  .edit-employee-header {
    flex-direction: column-reverse;
  }

}

@media (max-width: 768px) {
  .dashboard-header {
    font-size: 0.8rem;
    ;
  }

  .gate-pass-box {
    font-size: 0.7rem;
    padding: 12px;
  }

  .btn {
    font-size: 0.6rem;
    ;
    padding: 5px 10px;
  }
}

.profile-card {
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-radius: 15px;
  padding: 30px;
  transition: 0.3s;
}

.profile-img {
  width: 100%;
  border-radius: 15px;
  border: 4px solid var(--primary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.info-table th {
  background-color: var(--primary);
  color: white;
  text-align: left;
  width: 40%;
}

.info-table td {
  background-color: #f5f7fa;
}

@media (max-width: 768px) {
  .profile-img {
    width: 100%;
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .page-wrapper {
    margin-left: 0;
    padding: 20px;
  }
}

/* Make iframe responsive */
.pdf-responsive {
  position: relative;
  width: 100%;
  padding-bottom: 70%;
  /* 16:9 ratio */
  height: 0;
  overflow: hidden;
}

.pdf-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Responsive Apply Button */
.apply-btn-wrapper {
  margin: 20px 29px 40px 260px;
}

@media (max-width: 768px) {
  .apply-btn-wrapper {
    margin: 20px auto;
    padding: 0 20px;
    justify-content: center;
  }

  .apply-btn-wrapper .btn {
    width: 100%;
    font-size: 0.7rem;
  }
}

.btn-apply-leave {
  display: inline-block;
  background-color: var(--primary);
  color: #fff;
  padding: 10px 20px;
  font-size: 0.7rem;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.btn-apply-leave:hover {
  background-color: var(--primary-dark);
}

.calendar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.month {
  width: 31%;
  margin-bottom: 20px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px;
}

.month h5 {
  text-align: center;
  background: #316561;
  color: white;
  padding: 5px;
  margin-bottom: 10px;
  border-radius: 4px;
}

.day {
  display: inline-block;
  width: 14.2%;
  text-align: center;
  padding: 5px 0;
  font-size: 0.6rem;
  ;
}

.holiday {
  background-color: var(--primary);
  color: white;
  border-radius: 4px;
}

.day-name {
  font-weight: bold;
  background-color: #f5f5f5;
}

.info-group label {
  font-size: 0.6rem;
  margin-bottom: 0.5rem;
}

.remove-btn {
  border-radius: 0 0.375rem 0.375rem 0;
  outline: none;
  border: none;
  background-color: #fff;
  color: var(--primary);
  padding: 10px;
}

.qualification-item:hover input {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.1rem rgba(135, 25, 25, 0.25);
}

.qualification-item input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(135, 25, 25, 0.25);
}

/* This targets the checked radio button specifically */
.form-check-input:checked[type="radio"] {
  background-color: var(--primary);
  /* Bootstrap's danger color */
  border-color: var(--primary);
  /* Ensures the border is also red */
}

/* Forms and Focus */
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(31, 101, 197);
}

/* Upload Avatar */
.rounded-circle-upload {
  position: relative;
  width: 120px;
  height: 120px;
  margin: auto;
}

.rounded-circle-upload img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 2px solid #dee2e6;
  border-radius: 50%;
}

.rounded-circle-upload input[type="file"] {
  position: absolute;
  top: 85px;
  left: 85px;
  width: 35px;
  height: 35px;
  opacity: 0;
  cursor: pointer;
}

.rounded-circle-upload span {
  position: absolute;
  top: 85px;
  left: 85px;
  width: 35px;
  height: 35px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 0.7rem;
  cursor: pointer;
}

/* Switch Button */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 22px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: background-color 0.4s;
  border-radius: 34px;
}

.slider:before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 3px;
  background-color: white;
  transition: transform 0.4s;
  border-radius: 50%;
}

input:checked+.slider {
  background-color: var(--primary);
}

input:checked+.slider:before {
  transform: translateX(20px);
}

.form-label,
.form-control {
  font-size: 0.7rem;

}


.content-box {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  height: 80vh;
  overflow-y: scroll;
}

/* Employee Page Styles */
.employee-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  position: fixed;
  width: 100%;
}

.employee-header img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--primary);
}

.employee-header .info h6 {
  margin: 0;
  color: var(--primary);
  font-weight: bold;
  font-size: 0.9rem;
}

.employee-header .info p {
  margin: 4px 0;
  color: #555;
}

.section {
  background: #fff;
  padding: 8px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 5px;
}

.section h6 {
  font-size: 0.8rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.detail-grid div {
  display: flex;
  align-items: center;
}

.detail-grid div span {
  width: 150px;
  font-weight: bold;
  color: #333;
}

.form-label {
  font-weight: 600;
  margin-bottom: 6px;
}

#sidebarToggle {
  position: fixed;
  top: 15px;
  left: 230px;
  z-index: 1001;
  font-size: 0.9rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary);
  transition: color 0.3s ease;
}

#sidebarToggle:hover {
  color: var(--primary-dark);
}

/* Responsive Design */
@media (max-width: 768px) {

  #sidebarToggle {
    top: 10px
  }

  .sidebar.show {
    transform: translateX(0);
  }

  .main,
  .main-content,
  .container-box {
    margin-left: 0 !important;
    width: 100%;
    margin-top: 50px;
  }

  .table thead {
    display: none;
  }

  .table tbody tr {
    display: block;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(31, 101, 197);
    background: white;
  }

  .table tbody td {
    display: flex;
    justify-content: space-between;
    text-align: right;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
  }

  .table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--primary);
    flex-basis: 50%;
    text-align: left;
  }

  .table tbody td:last-child {
    border-bottom: none;
  }

  .dashboard-header {
    font-size: 0.9rem;
  }

  .employee-header {
    flex-direction: column;
    text-align: center;
  }

  .employee-header img {
    margin-bottom: 15px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }
}

.sidebar.hide~.container-box,
.sidebar.hide~.main,
.sidebar.hide~.main-content {
  margin-left: 0px !important;
  width: 100% !important;
}

.sidebarToggleCorrect {
  margin-left: -214px;
}

@media (max-width: 768px) {
  .form-footer {
    display: flex;
    flex-direction: column;
  }

  .form-footer .btn {
    margin-bottom: 10px;
    width: 100%;
  }
}

.select2-container--default .select2-selection--multiple {
  min-height: 38px;
  border: 1px solid #ced4da;
  border-radius: 4px;
}

.select2-container--default .select2-selection--single {
  min-height: 38px;
  border: 1px solid #ced4da;
  border-radius: 4px;
}

.stage-btn {
  background-color: #fff;
  border: 2px solid var(--primary) !important;
  color: var(--primary);
  font-weight: 500;
  transition: all 0.2s ease-in-out;
  border-radius: 0.375rem !important;
}

.btn-check:checked+.stage-btn {
  background-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 8px rgba(31, 101, 197);
}

.btn-check+.stage-btn:hover {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}


.img-box {
  width: 150px;
  height: 100px;
}

.img-box img {
  width: 100%;
  height: 100%;
}

.passes-box {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}

.gate-pass-box img {
  height: 60px;
  object-fit: contain;
}

.gate-pass-box h5 {
  margin: 0;
  font-size: 0.7rem;
  font-weight: bold;
}

.gate-pass-box p {
  margin: 6px 0;
  font-size: 0.8rem;
  ;
}

.btn {
  padding: 6px 14px;
  font-size: 0.7rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
}

.btn-success {
  background-color: #28a745;
  color: white;
}

.btn-danger {
  background-color: var(--primary);
  color: white;
}

.status {
  font-weight: bold;
  margin-top: 10px;
  font-size: 0.7rem;
}

.img-box {
  width: 100px;
  height: 60px;
}

@media (max-width: 900px) {
  .passes-box {
    flex-direction: column;
  }

  .gate-pass-box {
    width: 100%;
  }

  .edit-employee-header {
    flex-direction: column-reverse;
  }

}

@media (max-width: 768px) {
  .dashboard-header {
    font-size: 0.8rem;
    ;
  }

  .gate-pass-box {
    font-size: 0.7rem;
    padding: 12px;
  }

  .btn {
    font-size: 0.6rem;
    ;
    padding: 5px 10px;
  }
}

.profile-card {
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-radius: 15px;
  padding: 30px;
  transition: 0.3s;
}

.profile-img {
  width: 100%;
  border-radius: 15px;
  border: 4px solid var(--primary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.info-table th {
  background-color: var(--primary);
  color: white;
  text-align: left;
  width: 40%;
}

.info-table td {
  background-color: #f5f7fa;
}

@media (max-width: 768px) {
  .profile-img {
    width: 100%;
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .page-wrapper {
    margin-left: 0;
    padding: 20px;
  }
}

/* Make iframe responsive */
.pdf-responsive {
  position: relative;
  width: 100%;
  padding-bottom: 70%;
  /* 16:9 ratio */
  height: 0;
  overflow: hidden;
}

.pdf-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Responsive Apply Button */
.apply-btn-wrapper {
  margin: 20px 29px 40px 260px;
}

@media (max-width: 768px) {
  .apply-btn-wrapper {
    margin: 20px auto;
    padding: 0 20px;
    justify-content: center;
  }

  .apply-btn-wrapper .btn {
    width: 100%;
    font-size: 0.7rem;
  }
}

.btn-apply-leave {
  display: inline-block;
  background-color: var(--primary);
  color: #fff;
  padding: 10px 20px;
  font-size: 0.7rem;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.btn-apply-leave:hover {
  background-color: var(--primary-dark);
}

@media (max-width: 768px) {
  .pdf-responsive {
    padding-bottom: 0%;
  }
}

.calendar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.month {
  width: 31%;
  margin-bottom: 20px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px;
}

.month h5 {
  text-align: center;
  background: #316561;
  color: white;
  padding: 5px;
  margin-bottom: 10px;
  border-radius: 4px;
}

.day {
  display: inline-block;
  width: 14.2%;
  text-align: center;
  padding: 5px 0;
  font-size: 0.6rem;
  ;
}

.holiday {
  background-color: var(--primary);
  color: white;
  border-radius: 4px;
}

.day-name {
  font-weight: bold;
  background-color: #f5f5f5;
}

.info-group label {
  font-size: 0.6rem;
  margin-bottom: 0.5rem;
}

.remove-btn {
  border-radius: 0 0.375rem 0.375rem 0;
  outline: none;
  border: none;
  background-color: #fff;
  color: var(--primary);
  padding: 10px;
}

.qualification-item:hover input {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.1rem rgba(135, 25, 25, 0.25);
}

.qualification-item input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(135, 25, 25, 0.25);
}

/* This targets the checked radio button specifically */
.form-check-input:checked[type="radio"] {
  background-color: var(--primary);
  /* Bootstrap's danger color */
  border-color: var(--primary);
  /* Ensures the border is also red */
}

/* Force fixed height PDF container */
.pdf-responsive {
  width: 100%;
  height: 500px;
  /* Desktop default height */
}

@media (max-width: 768px) {
  .pdf-responsive {
    height: 400px;
    /* Mobile height */
  }
}

.pdf-responsive iframe {
  width: 100%;
  height: 100%;
  border: 1px solid #ccc;
}

.apply-btn-wrapper {
  margin-top: 20px;
}

/* Make modal scrollable on small devices */
.modal-body {
  max-height: 70vh;
  overflow-y: auto;
}

.table-box-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
  /* Keeps table structure intact on small screens */
}

.small,
small {
  font-size: 0.6rem;
}

.table-box-table th,
.table-box-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
  font-size: 0.6rem;
}

.form-select {
  font-size: 0.7rem;
}

.table-box-table th {
  background-color: var(--primary);
  color: #fff;
  font-weight: bold;
}

.table thead th {
  position: fixed;
  top: 0;
  z-index: 2;
}

a {
  color: var(--primary);
}

.table-box-container {
  width: 100%;
  /* Table ki height fix karni hogi */
  overflow-y: auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
  /* thoda minimum width de sakte ho */
}

.table th,
.table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
}

.table thead th {
  position: sticky;
  top: 0;
  background-color: var(--primary);
  /* sticky hone par background chahiye */
  color: #fff;
  font-weight: bold;
  z-index: 2;
  /* table body se upar dikhe */
}

.form-check-input:checked[type=checkbox] {
  background-color: var(--primary);
  border-color: var(--primary);
}

/* --------------------------------------- */
/* Landing page ambient layer + footer vibe */
body.landing-body {
  background: #ffffff;
  min-height: 100vh;
  color: #0c1c35;
  position: relative;
  overflow-x: hidden;
}

body.landing-body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 12% 20%, rgba(30, 64, 180, 0.2), transparent 52%),
    radial-gradient(circle at 70% 10%, rgba(255, 182, 89, 0.18), transparent 48%),
    radial-gradient(circle at 45% 70%, rgba(21, 140, 224, 0.12), transparent 45%);
  opacity: 0.65;
  pointer-events: none;
  z-index: 0;
  filter: blur(1px);
  animation: shimmer 24s ease-in-out infinite alternate;
}

body.landing-body .video-hero,
body.landing-body main,
body.landing-body footer,
body.landing-body .floating-actions {
  position: relative;
  z-index: 2;
}

.ambient-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.ambient-layer .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.45;
  mix-blend-mode: screen;
  animation: drift 20s ease-in-out infinite alternate;
}

.ambient-layer .orb-1 {
  width: 260px;
  height: 260px;
  top: 6%;
  left: 5%;
  background: radial-gradient(circle, rgba(20, 101, 255, 0.85), transparent 70%);
}

.ambient-layer .orb-2 {
  width: 300px;
  height: 300px;
  top: 35%;
  right: 8%;
  background: radial-gradient(circle, rgba(255, 99, 71, 0.75), transparent 75%);
  animation-duration: 24s;
}

.ambient-layer .orb-3 {
  width: 320px;
  height: 320px;
  bottom: 10%;
  left: 18%;
  background: radial-gradient(circle, rgba(93, 230, 194, 0.66), transparent 70%);
  animation-duration: 28s;
}

.ambient-layer .orb-4 {
  width: 220px;
  height: 220px;
  bottom: 12%;
  right: 22%;
  background: radial-gradient(circle, rgba(255, 190, 105, 0.65), transparent 70%);
  animation-duration: 22s;
}

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-40px, 30px, 0);
  }
}

@keyframes shimmer {
  from {
    opacity: 0.4;
  }

  to {
    opacity: 0.85;
  }
}

.animated-section {
  opacity: 0;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.9s ease;
}

.animated-section[data-direction="left"] {
  transform: translateX(-70px);
}

.animated-section[data-direction="right"] {
  transform: translateX(70px);
}

.animated-section[data-direction="up"] {
  transform: translateY(40px);
}

.animated-section.in-view {
  opacity: 1;
  transform: translate(0, 0);
}

.site-footer {
  background: linear-gradient(135deg, rgba(2, 6, 30, 0.95), rgba(7, 24, 60, 0.95) 45%, rgba(3, 40, 80, 0.85));
  padding: 5rem 5vw 2rem;
  color: #f5f7ff;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.site-footer .footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.footer-brand h3 {
  font-size: 1.7rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  max-width: 360px;
  color: rgba(245, 247, 255, 0.84);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
}

.footer-links h4 {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  color: rgba(255, 255, 255, 0.85);
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.35rem;
}

.footer-links li {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
}

.footer-cta {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-start;
  box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.04);
}

.footer-cta .cta-heading {
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.footer-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(135deg, #4cadff, #0074ff);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 8px 25px rgba(0, 116, 255, 0.35);
}

.footer-cta-button.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #f9fbff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.footer-cta-button:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 18px 35px rgba(0, 116, 255, 0.45);
}

.footer-cta-note {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer-wave {
  position: absolute;
  inset: auto 0 0 0;
  height: 90px;
  display: flex;
  gap: 0;
}

.footer-wave span {
  flex: 1;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.15));
  animation: wave 6s ease-in-out infinite;
  opacity: 0.5;
}

.footer-wave span:nth-child(2) {
  animation-delay: 0.8s;
}

.footer-wave span:nth-child(3) {
  animation-delay: 1.5s;
}

@keyframes wave {
  0% {
    transform: translateY(0);
    opacity: 0.4;
  }

  50% {
    transform: translateY(-12px);
    opacity: 0.9;
  }

  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
}

.footer-bottom {
  margin-top: 2.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.08em;
}

.footer-bottom p:first-child {
  margin-bottom: 0.25rem;
  font-weight: 600;
}

@media (max-width: 768px) {
  .footer-cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .footer-cta-button {
    width: 100%;
    justify-content: center;
  }

  .footer-cta {
    align-items: stretch;
  }
}
