/* assets/styles/app.css */

:root {
    --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-dark: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    --accent-color: #6366f1;
}

/* --- KARTEN DESIGN --- */
.dashboard-card {
    border: 1px solid rgba(128, 128, 128, 0.15);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: var(--shadow-light);
    /* Transition Zeit auf einen normalen Wert (0.2s) korrigiert */
    transition: all 0.2s ease-in-out;
    position: relative;
    overflow: hidden;
}

/* Hover-Effekt: KEIN Aufploppen mehr, nur subtile optische Tiefe */
.dashboard-card:hover {
    transform: none;
    /* Verhindert das Hochspringen */
    border-color: rgba(99, 102, 241, 0.4);
    /* Subtiler Farbakzent am Rand */
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.1), var(--shadow-light);
}

/* Dark Mode Anpassung */
[data-theme="dark"] .dashboard-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .dashboard-card:hover {
    background: #232f45;
    /* Ganz leichtes Aufhellen im Darkmode */
    border-color: rgba(99, 102, 241, 0.5);
}

/* --- ICON BOXEN --- */
.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    transition: all 0.2s ease;
}

/* Nur das Icon selbst bekommt einen minimalen Effekt beim Hover */
.dashboard-card:hover .icon-box {
    transform: scale(1.05);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #6366f1, #a855f7);
}

.bg-gradient-danger {
    background: linear-gradient(135deg, #ef4444, #f97316);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #10b981, #3b82f6);
}

.bg-gradient-info {
    background: linear-gradient(135deg, #0ea5e9, #2dd4bf);
}

/* --- TYPOGRAFIE --- */
.metric-value {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 0;
    color: #1e293b;
}

[data-theme="dark"] .metric-value {
    color: #f1f5f9;
}

/* --- BADGES & STATUS --- */
.badge-soft-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.75rem;
}

.bg-soft-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-radius: 6px;
    padding: 4px 8px;
}

.bg-soft-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border-radius: 6px;
    padding: 4px 8px;
}

/* Pulsierender Punkt */
.live-pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
    margin-right: 8px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Tabelle */
.table-hover tbody tr:hover {
    background-color: rgba(99, 102, 241, 0.03);
}

/* --- DARK MODE CORE --- */
[data-theme="dark"] {
    --bg-main: #0f172a;
    /* Deep Ocean Blue */
    --bg-card: #1e293b;
    /* Slate Blue Card */
    --bg-card-hover: #26334d;
    /* Slightly lighter for interaction */
    --border-color: rgba(255, 255, 255, 0.08);
    --text-muted: #94a3b8;
    /* Soft Slate */
}

/* Haupt-Hintergrund für das gesamte Dashboard */
[data-theme="dark"] body {
    background-color: var(--bg-main) !important;
}

/* --- KARTEN DESIGN --- */
.dashboard-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #ffffff;
    transition: all 0.2s ease-in-out;
}

[data-theme="dark"] .dashboard-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    /* Tiefe durch Schatten */
}

[data-theme="dark"] .dashboard-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(99, 102, 241, 0.5);
    /* Leuchtender Rand beim Hover */
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
}

/* --- TEXTE --- */
[data-theme="dark"] .text-muted {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .metric-value {
    color: #f8fafc;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* --- TABELLEN --- */
[data-theme="dark"] .table {
    color: #cbd5e1;
}

[data-theme="dark"] .table thead th {
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .table-hover tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.03) !important;
}

/* --- BADGES (Soft Look im Darkmode) --- */
[data-theme="dark"] .bg-soft-danger {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #fca5a5 !important;
}

[data-theme="dark"] .bg-soft-warning {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #fcd34d !important;
}

/* Pulsierender Punkt im Dunkeln heller */
[data-theme="dark"] .live-pulse {
    background-color: #34d399;
    box-shadow: 0 0 12px rgba(52, 211, 153, 0.6);
}

.input-group-merge:focus-within {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
}

.badge-status {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-bottom: 2px;
}

.transition-all {
    transition: all 0.2s ease;
}

[data-theme="dark"] .input-group-merge {
    background: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .input-group-merge input,
[data-theme="dark"] .input-group-merge .input-group-text,
[data-theme="dark"] .input-group-merge button {
    background: #1e293b !important;
    color: #f8fafc !important;
}
.icon-indicator {
    width: 40px;
    height: 40px;
    background: rgba(239, 68, 68, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

[data-theme="dark"] .bg-white {
    background-color: #1e293b !important;
}

[data-theme="dark"] .input-group {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .form-control {
    background-color: #1e293b !important;
    color: white;
}

.bg-soft-light {
    background: rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .bg-soft-light {
    background: rgba(255, 255, 255, 0.05);
}