/* Base Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8fafc;
}

/* ========================================
   MOBILE MENU & RESPONSIVE SIDEBAR
   ======================================== */

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1100;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

.mobile-menu-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.4);
}

.mobile-menu-btn i {
    font-size: 1.25rem;
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.mobile-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 260px;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    padding: 2rem 0;
    overflow-y: auto;
    box-shadow: 4px 0 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: transform 0.3s ease;
}

/* Mobile: Sidebar versteckt */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-overlay {
        display: block;
    }
}

.sidebar .logo {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 0 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
}

.sidebar .nav-item {
    display: flex;
    align-items: center;
    color: #cbd5e1;
    text-decoration: none;
    padding: 0.875rem 1.5rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.sidebar .nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-left-color: #3b82f6;
}

.sidebar .nav-item.active {
    background: rgba(59, 130, 246, 0.1);
    color: white;
    border-left-color: #3b82f6;
}

.sidebar .nav-item i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

/* Content Area */
.content {
    margin-left: 260px;
    min-height: 100vh;
    background: #f8fafc;
    padding: 2rem;
    transition: margin-left 0.3s ease;
}

/* Mobile: Kein Margin für Content */
@media (max-width: 1024px) {
    .content {
        margin-left: 0;
        padding: 5rem 1rem 1rem;
    }
}

/* Tablet: Kleineres Padding */
@media (max-width: 768px) {
    .content {
        padding: 5rem 0.75rem 0.75rem;
    }
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .grid.md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid.md\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .grid.lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .grid.lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Mobile: Kleinere Gaps */
@media (max-width: 640px) {
    .grid {
        gap: 1rem;
    }
}

/* Stats Card */
.stats-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

/* Mobile: Kleineres Padding */
@media (max-width: 640px) {
    .stats-card {
        padding: 1rem;
    }
}

/* Flexbox Utilities */
.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.justify-between {
    justify-content: space-between;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-1 {
    flex: 1 1 0%;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-x-2 {
    column-gap: 0.5rem;
}

.gap-x-3 {
    column-gap: 0.75rem;
}

/* Spacing */
.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 0.75rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

.ml-4 {
    margin-left: 1rem;
}

.ml-6 {
    margin-left: 1.5rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.mr-3 {
    margin-right: 0.75rem;
}

.p-4 {
    padding: 1rem;
}

.p-8 {
    padding: 2rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.pt-2 {
    padding-top: 0.5rem;
}

.pt-3 {
    padding-top: 0.75rem;
}

.pb-3 {
    padding-bottom: 0.75rem;
}

/* Typography */
.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

/* Mobile: Kleinere Schriftgrößen */
@media (max-width: 640px) {
    .text-3xl {
        font-size: 1.5rem;
        line-height: 2rem;
    }

    .text-2xl {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.font-medium {
    font-weight: 500;
}

.text-center {
    text-align: center;
}

/* Colors */
.text-gray-500 {
    color: #6b7280;
}

.text-gray-600 {
    color: #4b5563;
}

.text-gray-700 {
    color: #374151;
}

.text-gray-800 {
    color: #1f2937;
}

.text-blue-600 {
    color: #2563eb;
}

.text-blue-700 {
    color: #1d4ed8;
}

.text-green-600 {
    color: #16a34a;
}

.text-green-700 {
    color: #15803d;
}

.text-red-600 {
    color: #dc2626;
}

.text-red-700 {
    color: #b91c1c;
}

.text-yellow-600 {
    color: #ca8a04;
}

.bg-gray-50 {
    background-color: #f9fafb;
}

.bg-blue-100 {
    background-color: #dbeafe;
}

.bg-green-100 {
    background-color: #dcfce7;
}

.bg-red-100 {
    background-color: #fee2e2;
}

.bg-purple-100 {
    background-color: #f3e8ff;
}

.bg-white {
    background-color: white;
}

/* Borders */
.border {
    border-width: 1px;
}

.border-t {
    border-top-width: 1px;
}

.border-b {
    border-bottom-width: 1px;
}

.border-green-200 {
    border-color: #bbf7d0;
}

.rounded {
    border-radius: 0.25rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-full {
    border-radius: 9999px;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    display: inline-block;
    text-align: center;
    font-size: 0.875rem;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Mobile: Größere Touch-Targets */
@media (max-width: 640px) {
    .btn-primary {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        min-height: 48px;
    }
}

.btn-shopify {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.btn-shopify:hover:not(:disabled) {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* Alerts */
.alert {
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    animation: slideDown 0.3s ease-out;
}

/* Mobile: Kleineres Padding */
@media (max-width: 640px) {
    .alert {
        padding: 0.875rem 1rem;
        border-radius: 8px;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.alert-warning {
    background: #fffbeb;
    border: 1px solid #fde047;
    color: #92400e;
}

.close-btn {
    background: none;
    border: none;
    color: inherit;
    opacity: 0.5;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0;
    line-height: 1;
    transition: opacity 0.2s;
    min-width: 32px;
    min-height: 32px;
}

.close-btn:hover {
    opacity: 1;
}

/* Icon Styles */
.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Mobile: Kleinere Icons */
@media (max-width: 640px) {
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Log Container */
.log-container {
    background: #1e293b;
    color: #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    max-height: 400px;
    overflow: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Mobile: Kleinere Log-Container */
@media (max-width: 640px) {
    .log-container {
        font-size: 0.75rem;
        padding: 0.75rem;
        max-height: 300px;
    }
}

/* Utility Classes */
.opacity-50 {
    opacity: 0.5;
}

.opacity-60 {
    opacity: 0.6;
}

.pointer-events-none {
    pointer-events: none;
}

.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

.w-full {
    width: 100%;
}

.max-h-40 {
    max-height: 10rem;
}

.max-h-60 {
    max-height: 15rem;
}

.overflow-y-auto {
    overflow-y: auto;
}

.overflow-auto {
    overflow: auto;
}

.space-y-1 > * + * {
    margin-top: 0.25rem;
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

/* Transitions */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.duration-300 {
    transition-duration: 300ms;
}

.duration-500 {
    transition-duration: 500ms;
}

/* ========================================
   PRODUKTE LISTE - Zusätzliche Styles
   ======================================== */

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Mobile: Kleinere Grid-Items */
@media (max-width: 640px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Mobile: Keine Hover-Animation */
@media (max-width: 640px) {
    .product-card:hover {
        transform: none;
    }
}

.product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #f3f4f6;
}

/* Mobile: Kleinere Bilder */
@media (max-width: 640px) {
    .product-image {
        height: 150px;
    }
}

.product-info {
    padding: 1rem;
}

/* Mobile: Kleineres Padding */
@media (max-width: 640px) {
    .product-info {
        padding: 0.75rem;
    }
}

.product-sku {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Mobile: Noch kleinere SKU */
@media (max-width: 640px) {
    .product-sku {
        font-size: 0.65rem;
    }
}

.product-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0.5rem 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Mobile: Kleinerer Text */
@media (max-width: 640px) {
    .product-name {
        font-size: 0.875rem;
        -webkit-line-clamp: 3;
    }
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #3b82f6;
    margin: 0.75rem 0;
}

/* Mobile: Kleinerer Preis */
@media (max-width: 640px) {
    .product-price {
        font-size: 1.125rem;
    }
}

.product-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.product-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Mobile: Kleinere Badges */
@media (max-width: 640px) {
    .product-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
    }
}

.badge-shopify {
    background: #dcfce7;
    color: #15803d;
}

.badge-active {
    background: #dbeafe;
    color: #1d4ed8;
}

.badge-inactive {
    background: #fee2e2;
    color: #b91c1c;
}

.badge-source {
    background: #f3e8ff;
    color: #7c3aed;
}

/* Filter Section */
.filter-section {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

/* Mobile: Kleineres Padding */
@media (max-width: 640px) {
    .filter-section {
        padding: 1rem;
        border-radius: 8px;
    }
}

.filter-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: end;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

/* Mobile: Volle Breite */
@media (max-width: 640px) {
    .filter-group {
        min-width: 100%;
    }
}

.filter-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.filter-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: border-color 0.2s;
}

/* Mobile: Größere Touch-Targets */
@media (max-width: 640px) {
    .filter-input {
        padding: 0.75rem 1rem;
        font-size: 1rem;
        min-height: 48px;
    }
}

.filter-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s;
}

/* Mobile: Größere Touch-Targets */
@media (max-width: 640px) {
    .filter-select {
        padding: 0.75rem 1rem;
        font-size: 1rem;
        min-height: 48px;
    }
}

.filter-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    color: #6b7280;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
    margin-bottom: 1.5rem;
}

.back-link:hover {
    color: #3b82f6;
}

.back-link i {
    margin-right: 0.5rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #6b7280;
}

/* Mobile: Kleineres Padding */
@media (max-width: 640px) {
    .empty-state {
        padding: 2rem 1rem;
    }
}

.empty-state i {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

/* Mobile: Kleinere Icons */
@media (max-width: 640px) {
    .empty-state i {
        font-size: 3rem;
    }
}

.empty-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

/* Mobile: Kleinerer Text */
@media (max-width: 640px) {
    .empty-state h3 {
        font-size: 1.125rem;
    }
}

.empty-state p {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
}

/* Mobile: Größere Touch-Targets */
@media (max-width: 640px) {
    .pagination-btn {
        padding: 0.625rem 1.125rem;
        font-size: 0.875rem;
        min-width: 44px;
        min-height: 44px;
    }
}

.pagination-btn:hover:not(:disabled) {
    background: #f9fafb;
    border-color: #3b82f6;
    color: #3b82f6;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

/* ========================================
   TABLE STYLES FÜR PRODUKTLISTE
   ======================================== */

/* Table Container */
.overflow-x-auto {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Table Base */
table {
    width: 100%;
    border-collapse: collapse;
}

/* Mobile: Kleinere Schrift */
@media (max-width: 640px) {
    table {
        font-size: 0.8125rem;
    }
}

/* Table Head */
thead tr {
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

thead th {
    padding: 0.75rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* Mobile: Kleineres Padding */
@media (max-width: 640px) {
    thead th {
        padding: 0.5rem;
        font-size: 0.65rem;
    }
}

thead th a {
    color: #4b5563;
    text-decoration: none;
}

thead th a:hover {
    color: #2563eb;
}

/* Table Body */
tbody {
    background-color: white;
}

tbody tr {
    border-bottom: 1px solid #e5e7eb;
}

tbody tr:hover {
    background-color: #f9fafb;
}

tbody td {
    padding: 0.75rem;
    font-size: 0.875rem;
    color: #1f2937;
}

/* Mobile: Kleineres Padding */
@media (max-width: 640px) {
    tbody td {
        padding: 0.5rem;
        font-size: 0.8125rem;
    }
}

/* Column Widths */
.w-12 {
    width: 3rem;
}

.w-16 {
    width: 4rem;
}

.w-20 {
    width: 5rem;
}

.w-24 {
    width: 6rem;
}

.w-32 {
    width: 8rem;
}

/* Mobile: Flexiblere Widths */
@media (max-width: 640px) {
    .w-12,
    .w-16,
    .w-20,
    .w-24,
    .w-32 {
        width: auto;
        min-width: 60px;
    }
}

/* Text Utilities */
.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.uppercase {
    text-transform: uppercase;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

/* Badges */
.rounded-full {
    border-radius: 9999px;
}

.bg-blue-100 {
    background-color: #dbeafe;
}

.text-blue-800 {
    color: #1e40af;
}

.bg-green-100 {
    background-color: #dcfce7;
}

.text-green-800 {
    color: #166534;
}

.bg-gray-100 {
    background-color: #f3f4f6;
}

.text-gray-800 {
    color: #1f2937;
}

/* Input Fields in Table */
.editable-field {
    transition: all 0.2s;
    width: 5rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
}

/* Mobile: Größere Touch-Targets */
@media (max-width: 640px) {
    .editable-field {
        width: 100%;
        min-width: 80px;
        padding: 0.5rem;
        font-size: 1rem;
        min-height: 40px;
    }
}

.editable-field:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: scale(1.02);
}

/* Status Toggle Button */
.status-toggle {
    cursor: pointer;
    user-select: none;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    transition: all 0.2s;
    border: none;
}

/* Mobile: Größere Touch-Targets */
@media (max-width: 640px) {
    .status-toggle {
        padding: 0.375rem 0.625rem;
        font-size: 0.8125rem;
        min-height: 36px;
    }
}

.status-toggle:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* Image Preview */
.image-preview-container img {
    width: 3rem;
    height: 3rem;
    object-fit: cover;
    border-radius: 0.375rem;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s;
}

/* Mobile: Kleinere Bilder */
@media (max-width: 640px) {
    .image-preview-container img {
        width: 2.5rem;
        height: 2.5rem;
    }
}

.image-preview-container img:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Modal */
.fixed {
    position: fixed;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.z-50 {
    z-index: 50;
}

.z-10 {
    z-index: 10;
}

.hidden {
    display: none;
}

.bg-opacity-75 {
    background-color: rgba(0, 0, 0, 0.75);
}

.bg-opacity-50 {
    background-color: rgba(0, 0, 0, 0.5);
}

.max-w-4xl {
    max-width: 56rem;
}

.max-h-full {
    max-height: 100%;
}

.max-w-full {
    max-width: 100%;
}

.max-h-screen {
    max-height: 100vh;
}

/* Mobile: Kleinere Modal-Padding */
@media (max-width: 640px) {
    .max-w-4xl {
        max-width: calc(100% - 2rem);
        margin: 1rem;
    }
}

.object-contain {
    object-fit: contain;
}

.object-cover {
    object-fit: cover;
}

/* Max Width for Long Text */
.max-w-md {
    max-width: 28rem;
}

/* Divider */
.divide-y > * + * {
    border-top-width: 1px;
}

.divide-gray-200 > * + * {
    border-color: #e5e7eb;
}

/* Border */
.border-gray-200 {
    border-color: #e5e7eb;
}

.border-gray-300 {
    border-color: #d1d5db;
}

/* Focus Ring */
.focus\:ring-2:focus {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

.focus\:ring-blue-500:focus {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

.focus\:border-transparent:focus {
    border-color: transparent;
}

/* Hover Effects */
.hover\:bg-gray-50:hover {
    background-color: #f9fafb;
}

.hover\:bg-gray-200:hover {
    background-color: #e5e7eb;
}

.hover\:bg-gray-300:hover {
    background-color: #d1d5db;
}

.hover\:bg-green-200:hover {
    background-color: #bbf7d0;
}

.hover\:text-blue-600:hover {
    color: #2563eb;
}

.hover\:text-gray-300:hover {
    color: #d1d5db;
}

.hover\:shadow-lg:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Cursor */
.cursor-pointer {
    cursor: pointer;
}

/* Image Fallback (No Image Icon) */
.fa-image {
    font-size: 1.5rem;
}

/* Mobile: Kleinere Icons */
@media (max-width: 640px) {
    .fa-image {
        font-size: 1.25rem;
    }
}

/* Notification Styles */
.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.transform {
    transform: translateX(0) translateY(0);
}

/* Pagination */
.gap-2 {
    gap: 0.5rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.py-1\.5 {
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
}

.bg-blue-600 {
    background-color: #2563eb;
}

.text-white {
    color: white;
}

/* Relative & Absolute Positioning */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.top-4 {
    top: 1rem;
}

.right-4 {
    right: 1rem;
}

.bottom-0 {
    bottom: 0;
}

.left-0 {
    left: 0;
}

.right-0 {
    right: 0;
}

/* Rounded */
.rounded-b-lg {
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

/* Font Sizes */
.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

/* Additional Text Colors */
.text-gray-400 {
    color: #9ca3af;
}

.text-gray-900 {
    color: #111827;
}

/* Placeholder */
input::placeholder {
    color: #9ca3af;
}

/* Autocomplete Off */
input[autocomplete="off"]::-webkit-contacts-auto-fill-button {
    visibility: hidden;
    display: none !important;
}

/* Smooth Table Row Transitions */
tbody tr {
    transition: background-color 0.15s ease;
}

/* ========================================
   FILTER SECTION - Kompakt nebeneinander
   ======================================== */

/* Filter Container */
.stats-card form.grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
    align-items: end;
}

/* Mobile: Stack vertically */
@media (max-width: 768px) {
    .stats-card form.grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

/* Label Styling - kompakter */
.stats-card form label {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.375rem;
}

.stats-card form label i {
    margin-right: 0.375rem;
    font-size: 0.875rem;
}

/* Input & Select - einheitliche Höhe */
.stats-card form input,
.stats-card form select {
    width: 100%;
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background-color: white;
    transition: all 0.2s;
    height: 2.5rem;
}

/* Mobile: Größere Touch-Targets */
@media (max-width: 640px) {
    .stats-card form input,
    .stats-card form select {
        padding: 0.75rem 1rem;
        font-size: 1rem;
        height: 48px;
    }
}

.stats-card form input:focus,
.stats-card form select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Select mit Custom Arrow */
.stats-card form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
    padding-right: 2.25rem;
    cursor: pointer;
}

/* Placeholder */
.stats-card form input::placeholder {
    color: #9ca3af;
}

/* Reset Button Container */
#resetButtonContainer {
    margin-top: 0.5rem;
}

#resetButtonContainer button {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    background-color: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

/* Mobile: Größerer Reset Button */
@media (max-width: 640px) {
    #resetButtonContainer button {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 1rem;
        min-height: 48px;
        justify-content: center;
    }
}

#resetButtonContainer button:hover {
    background-color: #e5e7eb;
    border-color: #d1d5db;
}

#resetButtonContainer button i {
    margin-right: 0.5rem;
}

/* Spinner in Label */
#searchSpinner {
    margin-left: 0.5rem;
    color: #2563eb;
}

/* Filter Indicator Badge */
#filterIndicator {
    display: inline-flex;
    align-items: center;
    margin-left: 0.5rem;
    padding: 0.125rem 0.5rem;
    background-color: #dbeafe;
    color: #1e40af;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

#filterIndicator i {
    margin-right: 0.25rem;
}

/* Grid Override für alle Filter-Divs */
.stats-card form > div:not(#resetButtonContainer) {
    display: flex;
    flex-direction: column;
}
