/* Command Palette Styles */
.command-palette {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
}

.command-palette.active {
    display: block;
}

.command-palette-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.command-palette-modal {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background: var(--bs-body-bg);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: commandPaletteSlideIn 0.2s ease-out;
}

@keyframes commandPaletteSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.command-palette-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--bs-border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.command-palette-header i {
    color: var(--bs-secondary);
    font-size: 1.25rem;
}

.command-palette-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1.1rem;
    color: var(--bs-body-color);
}

.command-palette-input::placeholder {
    color: var(--bs-secondary);
}

.command-palette-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.command-palette-item {
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.command-palette-item:hover,
.command-palette-item.selected {
    background: rgba(var(--bs-primary-rgb), 0.1);
}

.command-palette-item.disabled {
    color: var(--bs-secondary);
    cursor: default;
}

.command-palette-item i {
    width: 20px;
    text-align: center;
    color: var(--bs-primary);
}

.command-palette-footer {
    padding: 0.75rem 1.5rem;
    border-top: 1px solid var(--bs-border-color);
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--bs-secondary);
}

.command-palette-footer kbd {
    background: var(--bs-secondary-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-family: monospace;
}

/* Quick Actions FAB vorübergehend deaktiviert */

/* Dark Mode Anpassungen */
[data-bs-theme="dark"] .command-palette-modal {
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .command-palette-item:hover,
[data-bs-theme="dark"] .command-palette-item.selected {
    background: rgba(102, 126, 234, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .command-palette-modal {
        top: 10%;
        width: 95%;
    }
    
    /* Quick Actions FAB deaktiviert */
}


/* ==========================================================================
   Player 360 strip
   ========================================================================== */
.player-360-card {
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}
.player-360-card .card-body {
    min-height: 3.5rem;
}
[data-theme="dark"] .player-360-card,
[data-bs-theme="dark"] .player-360-card {
    background: #1e293b;
    border-color: rgba(148, 163, 184, 0.12);
}

/* Home extras + timeline */
.home-feed-list .list-group-item {
    background: transparent;
}
.home-discovery-card {
    display: block;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    background: var(--app-surface, #fff);
    color: inherit;
    height: 100%;
    transition: box-shadow .15s ease, transform .15s ease;
}
.home-discovery-card:hover {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}
.home-health-card .badge {
    font-variant-numeric: tabular-nums;
}
.player-timeline .list-group-item {
    background: transparent;
}
[data-theme="dark"] .home-discovery-card,
[data-bs-theme="dark"] .home-discovery-card {
    background: #1e293b;
    border-color: rgba(148, 163, 184, 0.12);
}

/* ==========================================================================
   Home Hub (Schnellzugriff) – server status dashboard
   ========================================================================== */
.home-hub {
    margin-bottom: 1.25rem;
}

.home-hub-welcome h2 {
    font-weight: 600;
    letter-spacing: -0.01em;
}

.home-hub-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (min-width: 576px) {
    .home-hub-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .home-hub-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
        gap: 0.85rem;
    }
}

.home-hub-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 5.5rem;
    padding: 0.85rem 0.5rem;
    border-radius: 0.85rem;
    text-decoration: none !important;
    color: inherit;
    background: var(--bs-body-bg, #fff);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.home-hub-card:hover,
.home-hub-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    border-color: rgba(13, 110, 253, 0.25);
    outline: none;
}

.home-hub-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.7rem;
    font-size: 1.15rem;
    background: rgba(13, 110, 253, 0.08);
    color: #0d6efd;
}

.home-hub-card--warning .home-hub-icon { background: rgba(255, 193, 7, 0.15); color: #b58100; }
.home-hub-card--info .home-hub-icon { background: rgba(13, 202, 240, 0.15); color: #0aa2c0; }
.home-hub-card--success .home-hub-icon { background: rgba(25, 135, 84, 0.12); color: #198754; }
.home-hub-card--primary .home-hub-icon { background: rgba(13, 110, 253, 0.12); color: #0d6efd; }
.home-hub-card--danger .home-hub-icon { background: rgba(220, 53, 69, 0.12); color: #dc3545; }
.home-hub-card--secondary .home-hub-icon { background: rgba(108, 117, 125, 0.12); color: #6c757d; }
.home-hub-card--dark .home-hub-icon { background: rgba(33, 37, 41, 0.1); color: #212529; }

.home-hub-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    color: var(--bs-body-color, #212529);
}

.home-hub-badge {
    position: absolute;
    top: 0.4rem;
    right: 0.45rem;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #dc3545;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.25rem;
    text-align: center;
}

[data-bs-theme="dark"] .home-hub-card,
.dark-mode .home-hub-card {
    background: #172033;
    border-color: rgba(148, 163, 184, 0.28);
    color: #f1f5f9;
}

[data-theme="dark"] .home-hub-card {
    background: #172033;
    border-color: rgba(148, 163, 184, 0.28);
    color: #f1f5f9;
}

[data-bs-theme="dark"] .home-hub-card:hover,
.dark-mode .home-hub-card:hover,
[data-theme="dark"] .home-hub-card:hover {
    border-color: rgba(13, 110, 253, 0.35);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

[data-bs-theme="dark"] .home-hub-label,
[data-theme="dark"] .home-hub-label,
.dark-mode .home-hub-label {
    color: #f1f5f9;
}

/* ==========================================================================
   Unified empty states
   ========================================================================== */
.module-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2.5rem 1.25rem;
    margin: 0.5rem 0 1rem;
    border-radius: 1rem;
    border: 1px dashed rgba(0, 0, 0, 0.12);
    background: rgba(0, 0, 0, 0.015);
}

.module-empty-state .empty-icon,
.module-empty-state .empty-state-icon,
.module-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    font-size: 1.75rem;
    color: #6c757d;
    background: rgba(108, 117, 125, 0.1);
    margin-bottom: 0.85rem;
}

.module-empty-state h3,
.module-empty-state h4,
.module-empty-state h5,
.module-empty-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.module-empty-state p,
.module-empty-text {
    max-width: 28rem;
    margin: 0 auto 1rem;
    color: var(--bs-secondary-color, #6c757d);
    font-size: 0.95rem;
}

.module-empty-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

/* Compat: ticket-empty-state now maps to unified look if still present */
.ticket-empty-state {
    padding: 2.5rem 1rem;
}

[data-bs-theme="dark"] .module-empty-state,
.dark-mode .module-empty-state {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.02);
}



/* Aliases matching app/Views/partials/empty_state.php */
.app-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2.5rem 1.25rem;
    margin: 0.5rem 0 1rem;
    border-radius: 1rem;
    border: 1px dashed rgba(0, 0, 0, 0.12);
    background: rgba(0, 0, 0, 0.015);
}

.app-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    font-size: 1.75rem;
    color: #6c757d;
    background: rgba(108, 117, 125, 0.1);
    margin-bottom: 0.85rem;
}

.app-empty-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.app-empty-text {
    max-width: 28rem;
    margin: 0 auto 1rem;
    font-size: 0.95rem;
}

[data-bs-theme="dark"] .app-empty-state,
.dark-mode .app-empty-state {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.02);
}
