/* Custom styles for AsPA Assistenzplanung und Abrechnung */

/* Calendar Cell Styles */
.calendar-day-cell {
  min-height: 120px;
  background-color: #ffffff;
  transition: background-color 0.2s ease, filter 0.15s ease;
  position: relative;
}

.calendar-day-cell:hover {
  filter: brightness(0.97);
}

.calendar-day-cell.other-month {
  color: #94a3b8;
  opacity: 0.65;
}

.calendar-day-cell.today {
  border: 2px solid #2563eb !important;
  box-shadow: inset 0 0 0 1px #2563eb;
}

/* Shift badge / card in calendar */
.shift-card {
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  cursor: pointer;
}

.shift-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

/* Tab Active Styles */
.tab-btn.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

/* Print Stylesheet for Billing / Settlement Beleg */
@media print {
  body {
    background: white !important;
    color: black !important;
    font-size: 11pt;
  }

  header, main, #shiftModal, #approveModal, #assistantModal {
    display: none !important;
  }

  #printReport {
    display: block !important;
    padding: 20mm;
    max-width: 100%;
    margin: 0 auto;
  }

  .print-page-break {
    page-break-before: always;
  }

  .print-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    margin-bottom: 25px;
  }

  .print-table th, .print-table td {
    border: 1px solid #cbd5e1;
    padding: 4px 7px;
    text-align: left;
    font-size: 8.5pt;
  }

  .print-table th {
    background-color: #f1f5f9 !important;
    font-weight: bold;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .signature-box {
    margin-top: 80px;
    display: flex;
    justify-content: space-between;
  }

  .signature-line {
    width: 45%;
    border-top: 1px solid #333;
    padding-top: 8px;
    font-size: 8.5pt;
    color: #475569;
  }
}

/* Highlight Animations for Inter-Tab Navigation */
@keyframes highlightRowPulse {
  0% {
    background-color: #fef08a !important; /* bright amber/yellow 200 */
    box-shadow: inset 0 0 0 2px #d97706;
  }
  50% {
    background-color: #fde047 !important; /* amber/yellow 300 */
    box-shadow: inset 0 0 0 3px #b45309;
  }
  100% {
    background-color: #fef08a !important;
    box-shadow: inset 0 0 0 2px #d97706;
  }
}

.row-highlight-active,
.row-highlight-active > td {
  background-color: #fef08a !important;
  animation: highlightRowPulse 0.9s ease-in-out infinite alternate !important;
  transition: all 0.3s ease;
  position: relative;
  z-index: 10;
}

.row-highlight-persistent,
.row-highlight-persistent > td {
  background-color: #fef9c3 !important; /* soft yellow-100 */
  border-left: 4px solid #eab308 !important; /* amber-500 accent marker */
  transition: background-color 0.5s ease;
}

@keyframes cardHighlightPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.8);
    transform: scale(1.02);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    transform: scale(1.04);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    transform: scale(1.02);
  }
}

.card-highlight-active {
  animation: cardHighlightPulse 1.5s infinite !important;
  border-color: #2563eb !important;
  z-index: 40 !important;
}

