/* Jagdeinladung – Custom Styles */

/* Smooth transitions */
* {
    scroll-behavior: smooth;
}

/* Table styles */
.table-striped tbody tr:nth-child(even) {
    background-color: rgb(249, 250, 251);
}

/* Status badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.5;
}
.badge-success { background-color: #dcfce7; color: #166534; }
.badge-danger  { background-color: #fee2e2; color: #991b1b; }
.badge-warning { background-color: #fef3c7; color: #92400e; }
.badge-info    { background-color: #dbeafe; color: #1e40af; }
.badge-gray    { background-color: #f3f4f6; color: #374151; }

/* Dark mode badge overrides */
.dark .badge-success { background-color: rgba(22, 101, 52, 0.3); color: #86efac; }
.dark .badge-danger  { background-color: rgba(153, 27, 27, 0.3); color: #fca5a5; }
.dark .badge-warning { background-color: rgba(146, 64, 14, 0.3); color: #fcd34d; }
.dark .badge-info    { background-color: rgba(30, 64, 175, 0.3); color: #93c5fd; }
.dark .badge-gray    { background-color: rgba(55, 65, 81, 0.5); color: #d1d5db; }

/* Dark mode table striping */
.dark .table-striped tbody tr:nth-child(even) {
    background-color: rgba(31, 41, 55, 0.5);
}

/* Wizard step indicator */
.wizard-step {
    position: relative;
}
.wizard-step::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: 100%;
    height: 2px;
    background-color: #e5e7eb;
    transform: translateY(-50%);
}
.wizard-step:last-child::after {
    display: none;
}
.wizard-step.active::after,
.wizard-step.completed::after {
    background-color: #2D5A27;
}

/* Impersonate banner offset */
body.impersonating .sidebar-offset {
    padding-top: 2.5rem;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

.dark ::-webkit-scrollbar-thumb { background: #4b5563; }
.dark ::-webkit-scrollbar-thumb:hover { background: #6b7280; }

/* Dark mode: global card/border/input overrides via CSS */
.dark .bg-white { background-color: #1f2937 !important; }
.dark .border-gray-200 { border-color: #374151 !important; }
.dark .border-gray-300 { border-color: #4b5563 !important; }
.dark .border-gray-100 { border-color: #374151 !important; }
.dark .bg-gray-50 { background-color: #111827 !important; }
.dark .bg-gray-100 { background-color: #1f2937 !important; }
.dark .text-gray-900 { color: #f3f4f6 !important; }
.dark .text-gray-800 { color: #e5e7eb !important; }
.dark .text-gray-700 { color: #d1d5db !important; }
.dark .text-gray-600 { color: #9ca3af !important; }
.dark .text-gray-500 { color: #9ca3af !important; }
.dark .text-gray-400 { color: #6b7280 !important; }
.dark .hover\:bg-gray-50:hover { background-color: #374151 !important; }
.dark .hover\:bg-gray-100:hover { background-color: #374151 !important; }
.dark .hover\:bg-gray-200:hover { background-color: #4b5563 !important; }
.dark .hover\:text-gray-900:hover { color: #f3f4f6 !important; }
.dark .hover\:text-gray-600:hover { color: #d1d5db !important; }

/* Dark mode: forest-green links brauchen mehr Kontrast */
.dark .text-forest-600 { color: #8ebf85 !important; }
.dark .hover\:text-forest-700:hover { color: #b9d9b3 !important; }

/* Dark mode: amber/warning tones */
.dark .bg-amber-100 { background-color: rgba(146, 64, 14, 0.25) !important; }
.dark .text-amber-600 { color: #fbbf24 !important; }

/* Dark mode: focus ring offset (weisser Ring auf dunklem BG vermeiden) */
.dark .focus\:ring-offset-2:focus { --tw-ring-offset-color: #1f2937 !important; }

/* Dark mode: hr / Trennlinien */
.dark hr { border-color: #374151; }

/* Dark mode form inputs */
.dark input[type="text"],
.dark input[type="email"],
.dark input[type="password"],
.dark input[type="number"],
.dark input[type="tel"],
.dark input[type="url"],
.dark input[type="search"],
.dark input[type="date"],
.dark input[type="datetime-local"],
.dark select,
.dark textarea {
    background-color: #374151 !important;
    border-color: #4b5563 !important;
    color: #f3f4f6 !important;
}
.dark input::placeholder,
.dark textarea::placeholder {
    color: #9ca3af !important;
}
.dark input:focus,
.dark textarea:focus,
.dark select:focus {
    border-color: #4a8a3f !important;
    box-shadow: 0 0 0 2px rgba(74, 138, 63, 0.3) !important;
}

/* Dark mode: disabled inputs */
.dark input:disabled,
.dark textarea:disabled,
.dark select:disabled {
    background-color: #1f2937 !important;
    border-color: #374151 !important;
    color: #6b7280 !important;
}

/* Dark mode: checkboxes & radio buttons */
.dark input[type="checkbox"],
.dark input[type="radio"] {
    background-color: #374151 !important;
    border-color: #6b7280 !important;
}

/* ============================================
   Focus-Visible: Keyboard-only focus indicators
   ============================================ */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
[tabindex="0"]:focus-visible {
    outline: 2px solid #4a8a3f;
    outline-offset: 2px;
    border-radius: 4px;
}
.dark a:focus-visible,
.dark button:focus-visible,
.dark [role="button"]:focus-visible,
.dark [tabindex="0"]:focus-visible {
    outline-color: #8ebf85;
}

/* Remove default outline for mouse users */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
[role="button"]:focus:not(:focus-visible),
[tabindex="0"]:focus:not(:focus-visible) {
    outline: none;
}

/* ============================================
   Touch Targets: Minimum 44px hit area
   ============================================ */

/* Filter pills and small interactive elements */
.touch-target {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
