/* PersonalFlow Custom Styles */

/* Status badges */
.status-anwesend {
  background-color: #D1FAE5;
  color: #065F46;
}

.status-krank {
  background-color: #FEE2E2;
  color: #991B1B;
}

.status-urlaub {
  background-color: #DBEAFE;
  color: #1E40AF;
}

.status-abwesend {
  background-color: #F3F4F6;
  color: #4B5563;
}

.status-geplant {
  background-color: #FED7AA;
  color: #9A3412;
}

/* Table styles */
.table-auto {
  width: 100%;
}

.table-auto th {
  text-align: left;
  padding: 0.75rem;
  font-weight: 600;
  background-color: #F9FAFB;
  border-bottom: 2px solid #E5E7EB;
}

.table-auto td {
  padding: 0.75rem;
  border-bottom: 1px solid #E5E7EB;
}

.table-auto tr:hover {
  background-color: #F9FAFB;
}

/* Card hover effect */
.card {
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Button loading state */
.btn-loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Modal backdrop */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal-content {
  background: white;
  border-radius: 0.5rem;
  max-width: 32rem;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

/* Modal Overlay (für Edit-Modals) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal-overlay .modal-content {
  max-width: 48rem;
  width: 95%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex-grow: 1;
}

.modal-footer {
  padding: 1.5rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-shrink: 0;
  background-color: #f9fafb;
}

/* Notification badge */
.notification-badge {
  position: relative;
}

.notification-badge::after {
  content: attr(data-count);
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #EF4444;
  color: white;
  border-radius: 9999px;
  padding: 0.125rem 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  min-width: 1.25rem;
  text-align: center;
}

/* Auto-refresh indicator */
.refresh-indicator {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: .5;
  }
}

/* ===== KALENDER STYLES ===== */

/* Kalender Grid */
.calendar-grid {
  min-height: 400px;
}

/* Kalender Tag */
.calendar-day {
  min-height: 100px;
  padding: 0.5rem;
  border: 1px solid #E5E7EB;
  border-radius: 0.5rem;
  background-color: #FFFFFF;
  transition: all 0.2s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.calendar-day:hover {
  border-color: #9CA3AF;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.calendar-day-empty {
  min-height: 100px;
  background-color: #F9FAFB;
  border-radius: 0.5rem;
}

.calendar-day-today {
  border: 2px solid #8B5CF6;
  background-color: #FAF5FF;
}

.calendar-day-weekend {
  background-color: #F3F4F6;
}

.calendar-day-holiday {
  background-color: #EFF6FF;
  border-color: #3B82F6;
}

.calendar-day-number {
  font-weight: 600;
  font-size: 0.875rem;
  color: #374151;
  margin-bottom: 0.25rem;
}

.calendar-day-today .calendar-day-number {
  color: #8B5CF6;
  font-size: 1rem;
}

/* Kalender Events */
.calendar-event {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.2s;
}

.calendar-event:hover {
  transform: scale(1.02);
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.calendar-event-urlaub {
  background-color: #D1FAE5;
  color: #065F46;
  border-left: 3px solid #10B981;
}

.calendar-event-krank {
  background-color: #FEE2E2;
  color: #991B1B;
  border-left: 3px solid #EF4444;
}

.calendar-event-holiday {
  background-color: #DBEAFE;
  color: #1E40AF;
  border-left: 3px solid #3B82F6;
  font-weight: 500;
}

.calendar-event-pending {
  background-color: #FEF3C7;
  color: #92400E;
  border-left: 3px solid #F59E0B;
}

.calendar-event-rejected {
  background-color: #F3F4F6;
  color: #6B7280;
  border-left: 3px solid #9CA3AF;
  text-decoration: line-through;
}

/* Responsive Kalender */
@media (max-width: 768px) {
  .calendar-day {
    min-height: 80px;
    padding: 0.25rem;
  }
  
  .calendar-day-number {
    font-size: 0.75rem;
  }
  
  .calendar-event {
    font-size: 0.625rem;
    padding: 0.125rem 0.25rem;
  }
}

/* ===== ENDE KALENDER STYLES ===== */
