/* ============================================================
   App-Mockup Styles – Professionelle Desktop-App Darstellung
   ============================================================ */

.app-mockup-wrapper {
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.desktop-mockup {
    background: #0f172a;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 540px;
    overflow: hidden;
}

/* ── Title Bar ── */
.mockup-header {
    background: #1a1a2e;
    padding: 0.5rem 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    user-select: none;
}

.mockup-app-title {
    font-size: 0.7rem;
    color: #8892b0;
    display: flex;
    align-items: center;
    font-weight: 500;
    letter-spacing: 0.2px;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

.mockup-app-title img {
    width: 14px;
    height: 14px;
    object-fit: contain;
    margin-right: 6px;
    opacity: 0.7;
}

.mockup-win-controls {
    display: flex;
    align-items: center;
    gap: 2px;
}

.win-control {
    color: #4a5568;
    font-size: 0.6rem;
    width: 28px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.15s ease;
}

.win-control:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #8892b0;
}

.win-control.close-btn:hover {
    background: #e53e3e;
    color: white;
}

/* ── Body Layout ── */
.mockup-body {
    display: grid;
    grid-template-columns: 180px 1fr;
    height: 340px;
}

@media (max-width: 500px) {
    .mockup-body {
        grid-template-columns: 1fr;
        height: auto;
    }

    .mockup-sidebar {
        display: none;
    }
}

/* ── Sidebar ── */
.mockup-sidebar {
    background: #161b2d;
    border-right: 1px solid rgba(255, 255, 255, 0.03);
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mockup-sidebar-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    margin-bottom: 0.25rem;
}

.mockup-avatar {
    width: 26px;
    height: 26px;
    background: #3b82f6;
    color: white;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mockup-name {
    font-weight: 500;
    font-size: 0.7rem;
    color: #ccd6f6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

.mockup-status {
    font-size: 0.55rem;
    color: #64ffda;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mockup-menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mockup-menu-item {
    color: #4a5568;
    font-size: 0.7rem;
    padding: 0.4rem 0.5rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

.mockup-menu-item i {
    width: 14px;
    text-align: center;
    font-size: 0.65rem;
}

.mockup-menu-item:hover {
    color: #8892b0;
    background: rgba(255, 255, 255, 0.03);
}

.mockup-menu-item.active {
    background: rgba(59, 130, 246, 0.08);
    color: #60a5fa;
    font-weight: 500;
}

/* ── Content Area ── */
.mockup-content {
    padding: 1rem;
    background: #0f172a;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
}

.mockup-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mockup-title-bar h4 {
    margin: 0;
    font-size: 0.8rem;
    color: #ccd6f6;
    font-weight: 600;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

.mockup-badge {
    background: rgba(16, 185, 129, 0.08);
    color: #34d399;
    font-size: 0.55rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* ── Data Table ── */
.mockup-table {
    width: 100%;
    border-collapse: collapse;
}

.mockup-table th {
    text-align: left;
    font-size: 0.55rem;
    color: #4a5568;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.4rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

.mockup-table td {
    padding: 0.5rem;
    font-size: 0.65rem;
    color: #8892b0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

.mockup-table tr:last-child td {
    border-bottom: none;
}

.mockup-table .entry-name {
    color: #ccd6f6;
    font-weight: 500;
}

.mockup-table .entry-email {
    color: #4a5568;
    font-size: 0.6rem;
}

.mockup-table .entry-icon {
    color: #60a5fa;
    font-size: 0.7rem;
    width: 20px;
}

/* ── Mockup Views (interaktiv) ── */
.mockup-view {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.mockup-view.active {
    display: flex;
}

/* ── Empty State ── */
.mockup-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 0.5rem;
    color: #4a5568;
    min-height: 100px;
}

.mockup-empty i {
    font-size: 1.5rem;
    opacity: 0.3;
}

.mockup-empty span {
    font-size: 0.65rem;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

/* ============================================================
   Light Mode – data-theme="light"
   ============================================================ */
[data-theme="light"] .desktop-mockup {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .mockup-header {
    background: #f1f5f9;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .mockup-app-title {
    color: #475569;
}

[data-theme="light"] .mockup-app-title img {
    opacity: 0.5;
}

[data-theme="light"] .win-control {
    color: #94a3b8;
}

[data-theme="light"] .win-control:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #475569;
}

[data-theme="light"] .mockup-sidebar {
    background: #f8fafc;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .mockup-sidebar-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .mockup-name {
    color: #0f172a;
}

[data-theme="light"] .mockup-menu-item {
    color: #64748b;
}

[data-theme="light"] .mockup-menu-item:hover {
    color: #0f172a;
    background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .mockup-menu-item.active {
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
}

[data-theme="light"] .mockup-content {
    background: #ffffff;
}

[data-theme="light"] .mockup-title-bar h4 {
    color: #0f172a;
}

[data-theme="light"] .mockup-table th {
    color: #64748b;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .mockup-table td {
    color: #475569;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .mockup-table .entry-name {
    color: #0f172a;
}

[data-theme="light"] .mockup-table .entry-email {
    color: #64748b;
}

[data-theme="light"] .mockup-empty {
    color: #94a3b8;
}