/* User Dashboard – helles Theme */
:root {
    --bg-page: #e4e4e4;
    --bg-card: #ffffff;
    --bg-muted: #f3f3f3;
    --text-primary: #1a1a1a;
    --text-secondary: #6b7280;
    --accent: #22c55e;
    --accent-hover: #16a34a;
    --radius-lg: 1.25rem;
    --radius-xl: 1.75rem;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

body.ts-ki-app {
    background: var(--bg-page);
    color: var(--text-primary);
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.ts-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.ts-card-sm {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.ts-pill {
    border-radius: 9999px;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.15s;
}

.ts-pill-active {
    background: #fff;
    color: var(--text-primary);
    box-shadow: var(--shadow);
}

.ts-pill-inactive {
    color: var(--text-secondary);
}

.ts-pill-inactive:hover {
    color: var(--text-primary);
}

.ts-nav-bg {
    background: var(--bg-muted);
}

.ts-icon-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background: var(--bg-card);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.15s;
}

.ts-icon-btn:hover,
.ts-icon-btn.active {
    color: var(--accent);
    background: #fff;
}

.ts-btn-green {
    background: var(--accent);
    color: #fff;
    border-radius: 9999px;
    padding: 0.625rem 1.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: background 0.15s;
}

.ts-btn-green:hover {
    background: var(--accent-hover);
}

.ts-status-dot {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    border: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.ts-status-dot.online {
    border-color: var(--accent);
    color: var(--accent);
    background: #ecfdf5;
}

.ai-tile {
    background: var(--bg-muted);
    border-radius: 1rem;
    padding: 0.875rem;
    text-align: left;
    transition: background 0.15s;
}

.ai-tile:hover {
    background: #ebebeb;
}

.widget-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 1rem 1.25rem;
}

.ts-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.ts-input {
    width: 100%;
    padding: 0.625rem 1rem;
    border-radius: 0.75rem;
    background: var(--bg-muted);
    border: 0;
    font-size: 0.875rem;
    outline: none;
    color: var(--text-primary);
}

.ts-input:focus {
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.3);
}

.ts-stat {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 1rem;
}

.ts-table-wrap {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.ts-table-wrap table {
    width: 100%;
    font-size: 0.875rem;
}

.ts-table-wrap thead {
    color: var(--text-secondary);
    border-bottom: 1px solid #f3f4f6;
}

.ts-table-wrap th,
.ts-table-wrap td {
    padding: 1rem;
    text-align: left;
}

.ts-table-wrap tbody tr {
    border-bottom: 1px solid #f9fafb;
}

.ts-btn-secondary {
    border-radius: 9999px;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    background: #f3f4f6;
    color: #374151;
    transition: background 0.15s;
}

.ts-btn-secondary:hover {
    background: #e5e7eb;
}

.ts-avatar-btn {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background: var(--bg-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: background 0.15s;
}

.ts-avatar-btn:hover {
    background: #e5e7eb;
}
