/* CSS styling for ShiftsSelectorMatchingModal */

.matching-shifts-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  animation: modalFadeIn 0.3s ease;
  padding: 1.25rem;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.matching-shifts-modal {
  background: #ffffff;
  border-radius: 1.5rem;
  padding: 2rem;
  max-width: 520px;
  width: 100%;
  max-height: 85vh;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  animation: modalPopIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}

@keyframes modalPopIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.matching-shifts-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  color: #64748b;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.matching-shifts-close-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
  transform: rotate(90deg);
}

.matching-shifts-header {
  margin-bottom: 1.5rem;
  padding-right: 2rem;
}

.matching-shifts-header h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.35rem 0;
  line-height: 1.3;
}

.matching-shifts-header p {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

.matching-shifts-content {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 1.5rem;
  padding-right: 0.25rem;
}

/* Scrollbar styling */
.matching-shifts-content::-webkit-scrollbar {
  width: 5px;
}

.matching-shifts-content::-webkit-scrollbar-track {
  background: transparent;
}

.matching-shifts-content::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 99px;
}

/* Card list styling */
.matching-shifts-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.matching-shift-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  user-select: none;
}

.matching-shift-item:hover {
  border-color: var(--primary-purple);
  box-shadow: 0 4px 12px rgba(106, 62, 235, 0.04);
  transform: translateY(-1px);
}

.matching-shift-item.checked {
  border-color: var(--primary-purple);
  background: rgba(106, 62, 235, 0.01);
}

.matching-shift-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: left;
}

.matching-shift-date {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.matching-shift-date::first-letter {
  text-transform: uppercase;
}

.matching-shift-subtitle {
  font-size: 0.775rem;
  color: #64748b;
  font-weight: 500;
}

.matching-shift-right {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.matching-shift-time-badge {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 0.35rem 0.65rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
  letter-spacing: -0.01em;
}

/* Custom premium circular checkbox */
.matching-shift-checkbox-custom {
  width: 22px;
  height: 22px;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  background: #ffffff;
  flex-shrink: 0;
}

.matching-shift-item.checked .matching-shift-checkbox-custom {
  background: var(--primary-purple);
  border-color: var(--primary-purple);
}

.matching-shift-checkbox-custom svg {
  color: #ffffff;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.2);
}

.matching-shift-item.checked .matching-shift-checkbox-custom svg {
  opacity: 1;
  transform: scale(1);
}

/* Confirmation and Warning View styling */
.matching-shifts-confirm-view {
  text-align: center;
  padding: 1.5rem 0.5rem 0.5rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.matching-shifts-confirm-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fef3c7;
  color: #d97706;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  animation: alertPulse 2s infinite;
}

@keyframes alertPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.4); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(251, 191, 36, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
}

.matching-shifts-confirm-text {
  font-size: 1rem;
  color: #334155;
  line-height: 1.5;
  font-weight: 500;
  margin: 0;
}

.matching-shifts-confirm-buttons {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  margin-top: 0.5rem;
}

.matching-shifts-confirm-buttons button {
  flex: 1;
}

/* Actions at the bottom */
.matching-shifts-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 1px solid #f1f5f9;
  padding-top: 1.25rem;
  width: 100%;
}
