.background-fixed {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: calc(100vh - calc(4.2rem + 1px) - calc(3.5rem + 1px));
  overflow: hidden;
}

.background-dashboard {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url('/img/bg_dashboard.jpeg');
}

.custom-toast {
  color: #ffffff !important;
  padding: 16px !important;
  border-radius: 8px !important;
  border-color: #ffffff00 !important;
}

.custom-toast-success {
  background-color: #4caf50 !important;
}

.custom-toast-error {
  background-color: #f44336 !important;
}

.custom-toast-warning {
  background-color: #ff9800 !important;
}

.custom-toast-info {
  background-color: #2196f3 !important;
}

.custom-toast-content .p-toast-summary {
  font-weight: bold !important;
}

.custom-toast-content .p-toast-detail {
  font-size: 14px !important;
}

.custom-toast-content .p-icon {
  display: none !important;
}

.hand-cursor {
  cursor: pointer;
  caret-color: transparent;
}

.modern-absence-container {
  min-height: 100vh;
  margin-left: -40px;
  margin-right: -40px;
  background: white;
}

.header-section {
  background: white;
  color: #1e293b;
  padding: 2rem 0;
  border-bottom: 1px solid #e5e7eb;
  margin-top: -40px;
}

.header-title {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #1e293b;
}

.header-subtitle {
  font-size: 1.1rem;
  margin-bottom: 0;
  color: #6b7280;
}

.current-time {
  background: #f8fafc;
  padding: 0.75rem 1.5rem;
  border: 1px solid #e5e7eb;
  display: inline-block;
  color: #374151;
}

.notification-display {
  background: rgba(255, 206, 101, 0.399);
  border: 2px solid #fed1576e;
  padding: 1rem;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
}

.notification-display:hover {
  border-color: #e5e7eb;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.1);
}

.card {
  border: none;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  background: white;
}

.card:hover {
  box-shadow: var(--card-shadow-hover);
}

.card-header {
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
  padding: 1.5rem;
}

.card-title {
  font-weight: 600;
  color: #1e293b;
}

.map-card .card-body {
  position: relative;
}

.location-info {
  position: relative;
  left: 0;
  right: 0;
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding-top: 1rem;
  background: white;
  border-top: 1px solid #e5e7eb;
}

.modern-form {
  padding: 1rem 0;
}

.form-section {
  margin-bottom: 2rem;
}

.section-label {
  font-weight: 600;
  color: #374151;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  display: block;
}

.radio-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .radio-group {
    grid-template-columns: 1fr 1fr;
  }
}

.radio-option {
  position: relative;
}

.radio-option input[type='radio'] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.radio-option label {
  display: block;
  padding: 1.5rem;
  border: 2px solid #e5e7eb;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
  color: #1e293b;
}

.radio-option label.option-disabled {
  background-color: #f8fafc;
}

.radio-option input:checked + label {
  border-color: #3b82f6;
  background: #f0f9ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -8px rgba(59, 130, 246, 0.3);
}

.radio-content {
  text-align: center;
}

.radio-title {
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.radio-description {
  font-size: 0.875rem;
  color: #6b7280;
}

.form-control,
.form-select {
  border: 2px solid #e5e7eb;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
  color: #1e293b;
}

.form-control:focus,
.form-select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15);
  background: white;
}

.input-group-text {
  border: 2px solid #e5e7eb;
  border-right: none;
  background: #f8fafc;
  color: #6b7280;
}

.input-group:focus-within .input-group-text {
  border-color: #3b82f6;
}

.select-wrapper {
  position: relative;
  width: 100%;
}

.select-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  pointer-events: none;
  z-index: 5;
}

.modern-select {
  padding: 0.75rem 1rem;
  appearance: none;
  background-image: none;
  width: 100%;
}

.textarea-wrapper {
  position: relative;
}

.modern-textarea {
  resize: vertical;
  min-height: 100px;
}

.btn-clock-in {
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  width: 100%;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  color: white;
}

.btn-clock-in:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.btn-clock-in::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-clock-in:hover::before {
  left: 100%;
}

.error-message {
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: block;
}

.loading-content,
.normal-content {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 767.98px) {
  .header-title {
    font-size: 1.7rem;
  }

  .current-time {
    margin-top: 1rem;
    width: 100%;
    text-align: center;
  }

  .radio-group {
    grid-template-columns: 1fr;
  }

  .card-header {
    padding: 1rem;
  }

  .modern-form {
    padding: 0.5rem 0;
  }

  .status-card {
    margin-bottom: 1rem;
  }
}

.alert-container {
  width: 100%;
  margin: 0 auto;
  margin-bottom: 2rem;
}

.modern-alert {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 24px;
  box-shadow: 0 5px 40px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.modern-alert:hover {
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.15);
}

.modern-alert::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
  background-size: 200% 100%;
  /* animation: shimmer 3s infinite; */
}

@keyframes shimmer {
  0%,
  100% {
    background-position: 200% 0;
  }
  50% {
    background-position: -200% 0;
  }
}

.alert-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.alert-message {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: 12px;
}

.alert-icon {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.alert-text {
  color: #2d3748;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
}

.scan-button {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.scan-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.5);
  background: linear-gradient(135deg, #5a67d8, #6b46c1);
}

.scan-button:active {
  transform: translateY(0);
}

.scan-button i {
  font-size: 16px;
}

@media (max-width: 640px) {
  .modern-alert {
    padding: 20px;
  }

  .alert-content {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .alert-message {
    justify-content: center;
    text-align: center;
  }

  .alert-text {
    font-size: 15px;
  }

  .scan-button {
    justify-content: center;
    padding: 14px 24px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .modern-alert {
    padding: 16px;
    margin: 10px;
  }

  .alert-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .alert-text {
    font-size: 14px;
  }

  .scan-button {
    padding: 12px 20px;
    font-size: 14px;
  }
}

.location-display {
  margin-bottom: 1rem;
}

.status-indicators {
  margin-top: 1rem;
}

.status-card {
  background: white;
  border: 2px solid #f3f4f6;
  padding: 1rem;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
}

.status-card:hover {
  border-color: #e5e7eb;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.1);
}

.status-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.status-label {
  font-size: 0.75rem;
  color: #6b7280;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.status-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
  margin-top: 0.25rem;
}

.btn-clock-out {
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  width: 100%;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-clock-out:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px -10px rgba(220, 38, 38, 0.4);
  background: linear-gradient(135deg, #b91c1c 0%, #7f1d1d 100%);
}

.btn-clock-out:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.btn-clock-out::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-clock-out:hover::before {
  left: 100%;
}

.error-message {
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: block;
}

.loading-content,
.normal-content {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 575.98px) {
  .status-indicators .row {
    --bs-gutter-x: 0.75rem;
  }

  .status-card {
    padding: 0.75rem;
  }

  .status-icon {
    font-size: 1.25rem;
  }

  .status-label {
    font-size: 0.7rem;
  }

  .status-value {
    font-size: 0.8rem;
  }
}

.modern-alert-info {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  padding: 8px 20px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.25);
  display: flex;
  align-items: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.alert-icon-wrapper-info {
  background: rgba(255, 255, 255, 0.2);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  flex-shrink: 0;
}

.alert-icon-wrapper-info i {
  color: #ffffff;
  font-size: 18px;
}

.alert-content-info {
  flex: 1;
}

.alert-text-info {
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  margin: 0;
}
