:root {
  --bs-primary: #50A5F1;
}

.bg-primary {
  background-color: var(--bs-primary) !important;
}

.btn-custom-dropdown {
  background-color: white;
  border: 1px solid #ced4da;
  padding: 8px 16px;
  border-radius: 5px;
}

.btn-custom-dropdown:hover {
  border: 1px solid #ced4da;
}

.btn-custom-dropdown:focus {
  outline: none;
  border: 1px solid #ced4da;
}

.btn-custom-dropdown-menu {
  border: 1px solid #ced4da;
}

.btn-custom-dropdown::placeholder {
  color: #000;
  opacity: 1;
}

.btn-warning,
.btn-danger,
.btn-primary,
.btn-danger,
.btn-info {
  border: none;
}

.preview-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

.preview-content {
  background: white;
  padding: 20px;
  border-radius: 5px;
  max-width: 400px;
  width: 100%;
}

/* Custom switch styles */
.custom-switch:checked {
  background-color: #34C38F;
  border-color: #34C38F;
}

.custom-switch {
  border: 1px solid #ccc;
}

/* Search box Customize  */
.search-box .rounded-search {
  height: 38.5px;
  border-radius: 6px;
}

/* Text Customize */
.text-primary {
  color: var(--bs-primary) !important;
}

/* Dropdown Cus */
.dropdown-menu {
  position: absolute;
  margin-top: 8px;
  left: 0;
  overflow-y: auto;
  background-color: white;
  border-radius: 5px;
  z-index: 1050;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-content {
  padding-bottom: 150px;
}


/* Custom Style Select */
.custom-select-wrapper {
  position: relative;
}

.custom-select {
  position: relative;
  display: inline-block;
  font-family: Arial, sans-serif;
  border: 1px solid #CED4DA;
  border-radius: 4px;
  cursor: pointer;
  background-color: #fff;
  width: 100%;
  box-sizing: border-box;
}

.custom-select__header {
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  border-radius: 4px;
  height: 36px;
}

.custom-select__dropdown {
  position: absolute;
  top: calc(100% + 1px);
  border-left: 1px solid #EFF2F7;
  border-right: 1px solid #EFF2F7;
  border-bottom: 1px solid #EFF2F7;
  background-color: #fff;
  z-index: 1000;
  max-height: 300px;
  overflow-y: auto;
  transform: translateX(-1px);
  width: calc(100% + 2px);
  box-sizing: border-box;
  padding: 8px 12px;

}

.custom-select__search {
  width: 100%;
  padding: 4px;
  margin: 8px 0;
  border: 1px solid #ccc;
  outline: none;
  font-size: 12px;
  box-sizing: border-box;
  color: #74788D;
}

.custom-select__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.custom-select__list li {
  padding: 6px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
  font-size: 12px;
}

.custom-select__list li.selected {
  background-color: #EFF2F7;
  color: black;
}

.custom-select__list li:hover {
  background-color: #50A5F1;
  color: #fff;
}

.custom-select__list li.hovered {
  background-color: #50A5F1;
  color: #fff;
}

.arrow {
  margin-left: 10px;
}

.mdi-chevron-down,
.mdi-chevron-up {
  font-size: 12px;
}

.dropdown-enter-active,
.dropdown-leave-active {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown-enter,
.dropdown-leave-to {
  opacity: 0;
  transform: translateY(-10px);
}

/* Custom Table Styling */
.attendance-table {
  --primary-color: #495057;
  --secondary-color: #495057;
  --accent-color: #3498db;
  --success-color: #27ae60;
  --warning-color: #f39c12;
  --danger-color: #e74c3c;
  --hover-bg: #f8f9fa;
  --border-color: #ecf0f1;
}

.attendance-table table {
  border-collapse: separate;
  border-spacing: 0 12px;
}

.attendance-table thead th {
  background-color: #f8f9fa;
  color: var(--primary-color);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 13px;
  line-height: 20px;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--border-color);
  padding: 12px 16px;
  color: #000;
}

.attendance-table tbody tr {
  font-family: 'Poppins', sans-serif;
  background-color: white;
  position: relative;
}

/* Card-style rows */
.attendance-table tbody td {
  padding: 16px;
  vertical-align: middle;
  color: var(--primary-color);
  font-size: 13px;
  background: white;
  border: 1px solid var(--border-color) !important;
  border-left: none !important;
  border-right: none !important;
}

.attendance-table tbody td:first-child {
  border-left: 1px solid var(--border-color) !important;
  border-radius: 16px 0 0 16px;
}

.attendance-table tbody td:last-child {
  border-right: 1px solid var(--border-color) !important;
  border-radius: 0 16px 16px 0;
}

/* No border for loading and no-records states */
.attendance-table tbody tr.no-records-row td,
.attendance-table tbody tr.loading-row td {
  border: none !important;
  background-color: transparent !important;
}

.attendance-table tbody tr.no-records-row td {
  padding: 24px;
  text-align: center;
}

.attendance-table tbody tr.loading-row td {
  padding: 16px;
  text-align: center;
}

.user-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
}

.employee-info div:first-child {
  color: var(--primary-color);
  font-size: 13px;
  font-weight: 500;
}

.status-label {
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 4px;
  display: inline-block;
}

.time-entry {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--primary-color);
}

/* On-hold state styling */
.on-hold td {
  background-color: #fff9e6 !important;
  border-color: #ffe69c !important;
}

.on-hold td:first-child {
  border-left: 3px solid var(--warning-color) !important;
}

.no-records {
  color: var(--secondary-color);
  font-size: 0.9rem;
  padding: 24px;
  text-align: center;
}

/* Remove hover animation */
.attendance-table tbody tr {
  transition: none;
}

/* Subtle hover effect */
.attendance-table tbody tr:hover td {
  background-color: var(--hover-bg);
}

.clock-icon {
  width: 16px;
  height: 16px;
}

.time-text {
  font-weight: 500;
  font-size: 13px;
}

.status-label-container {
  display: flex;
  gap: 6px;
  align-items: center;
}

.status-label-light {
  font-weight: 300;
  font-size: 13px;
}

.status-label-medium {
  font-weight: 500;
  font-size: 13px;
}

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

.table {
  width: 100%;
  margin-bottom: 1rem;
}

.fw-semibold {
  font-weight: 500;
  font-size: 13px;
}

.fw-light {
  font-weight: 300;
}

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

.text-muted {
  color: #74788D;
}

.text-dark {
  color: #343a40;
}

.text-center {
  text-align: center;
}

/* Image Viewer Styles */
.profile-image-wrapper {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.profile-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.profile-image-wrapper:hover .profile-thumbnail {
  transform: scale(1.1);
}

.view-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.profile-image-wrapper:hover .view-overlay {
  opacity: 1;
}

.view-text {
  color: white;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  margin: 0 auto;
}

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lightbox-close i {
  color: white;
  font-size: 24px;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.lightbox-image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  animation: zoomIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Custom styles for the text color */
.title-text {
  color: #495057;
}
.modal-title {
  color: #495057;
}