/* JVA Workflow - Custom Styles */

/* Status badges */
.status-eingereicht { background-color: #0d6efd; color: white; }
.status-in_bearbeitung { background-color: #ffc107; color: #212529; }
.status-genehmigt { background-color: #198754; color: white; }
.status-abgelehnt { background-color: #dc3545; color: white; }
.status-weitergeleitet { background-color: #fd7e14; color: white; }

/* Body background */
body { background-color: #f2f2f2; }

/* Navbar branding */
.navbar-brand i { margin-right: 0.3rem; }
.navbar { min-height: 80px; }
.navbar .container-fluid { padding-left: 20px; }
.navbar-brand { padding-top: 0; padding-bottom: 0; }
.navbar-brand img { height: 68px; margin-top: -18px; margin-bottom: -18px; }
.navbar.bg-dark { background-color: #1a1a2e !important; }
.navbar .nav-link { color: rgba(255,255,255,0.85) !important; }
.navbar .nav-link:hover, .navbar .nav-link:focus { color: #ffffff !important; }
.navbar .nav-link.active { color: #ffffff !important; }
.navbar .navbar-brand { color: #ffffff !important; }
.navbar-divider { width: 1px; height: 32px; background: #ffffff; margin: 0 16px; align-self: center; flex-shrink: 0; }
.navbar .badge.bg-light { background-color: #e0e0e0 !important; color: #1a1a2e !important; }

/* Card header color */
.card-header { background-color: #eaf0f7 !important; }

/* Card hover effect */
.card { transition: box-shadow 0.2s; border-color: #b0c4d8 !important; }
.card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.1); }

/* Table styling */
.table th { font-weight: 600; white-space: nowrap; }
.table thead th { background-color: #eaf0f7 !important; }
.table { --bs-table-border-color: #b0c4d8; border-color: #b0c4d8; }
.table-responsive { border: 1px solid #b0c4d8; border-radius: 0.375rem; background-color: #eaf0f7; }
.table > :not(caption) > * > * { border-bottom-color: #b0c4d8; }

/* Dashboard display numbers */
.display-6 { font-weight: 700; }

/* Footer */
footer { font-size: 0.85rem; }

/* Calendar event colors */
.fc-event-title { font-size: 0.85em; }
.fc .fc-toolbar { padding: 16px 16px 18px 16px; margin-bottom: 0 !important; }
.fc .fc-toolbar-title { font-size: 18px; }
.fc .fc-prev-button,
.fc .fc-next-button,
.fc .fc-timeGridDay-button { background-color: #82a1bb !important; border-color: #82a1bb !important; }
.fc .fc-timeGridWeek-button { background-color: #587085 !important; border-color: #587085 !important; }
.fc .fc-prev-button:hover, .fc .fc-next-button:hover,
.fc .fc-timeGridDay-button:hover { background-color: #6e8fa8 !important; border-color: #6e8fa8 !important; }
.fc .fc-timeGridWeek-button:hover { background-color: #47607a !important; border-color: #47607a !important; }

/* Accessibility: larger click targets */
.list-group-item-action { min-height: 48px; display: flex; align-items: center; }

/* Mitteilung priority indicators */
.mitteilung-card { border-left: 4px solid #6c757d; transition: background 0.2s; }
.mitteilung-card.prio-wichtig { border-left-color: #ffc107; }
.mitteilung-card.prio-dringend { border-left-color: #dc3545; }
.mitteilung-new { background: #fff3cd; }
.mitteilung-card:hover { background: #f8f9fa; }

/* Large icon helper for dashboard */
.large-icon { font-size: 1.5rem; vertical-align: middle; margin-right: 0.3rem; }

/* Mobile responsive */
@media (max-width: 768px) {
    .display-6 { font-size: 1.5rem; }
    .table-responsive { font-size: 0.85rem; }
    .navbar-brand { font-size: 1rem; }
    .dashboard-section { min-height: auto; }
    /* Bigger touch targets for accessibility */
    .btn-sm { min-height: 38px; min-width: 38px; }
    .list-group-item { font-size: 1rem; padding: 0.75rem 1rem; }
}

/* Chat navbar badge pulse */
#navChatBadge:not(.d-none) {
    animation: chatPulse 2s infinite;
}
@keyframes chatPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Print styles */
@media print {
    .navbar, footer, .btn, .form-select, .alert-dismissible .btn-close,
    .no-print { display: none !important; }
    .card { border: 1px solid #dee2e6 !important; box-shadow: none !important; }
    .table { font-size: 0.8rem; }
}
