/* ============================================================
   Talent5 — Haupt-CSS
   ============================================================ */

:root {
    --t5-purple:       #7C3AED;
    --t5-purple-dark:  #5B21B6;
    --t5-purple-light: #EDE9FE;
    --t5-pink:         #EC4899;
    --t5-dark:         #0F0A1E;
    --t5-dark2:        #160E2B;
    --t5-card:         rgba(255,255,255,0.06);
    --t5-border:       rgba(255,255,255,0.11);
    --t5-text:         #F8F7FF;
    --t5-muted:        rgba(255,255,255,0.50);
    --t5-radius:       10px;
    --t5-radius-lg:    16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: var(--t5-dark);
    color: var(--t5-text);
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ---- TOPBAR ------------------------------------------------- */
.topbar {
    background: rgba(15,10,30,0.96);
    border-bottom: 1px solid var(--t5-border);
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 200;
    backdrop-filter: blur(8px);
}
.logo { font-size: 19px; font-weight: 500; letter-spacing: -0.4px; cursor: pointer; }
.logo span { color: var(--t5-purple); }
.topnav { display: flex; gap: 6px; align-items: center; }

/* ---- BUTTONS ----------------------------------------------- */
.btn {
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all .18s ease;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    letter-spacing: .01em;
}

/* Primary — lila, leuchtend */
.btn-primary {
    background: var(--t5-purple);
    color: #fff;
    border-color: var(--t5-purple);
    box-shadow: 0 2px 12px rgba(124,58,237,.35);
}
.btn-primary:hover {
    background: #6D28D9;
    border-color: #6D28D9;
    box-shadow: 0 4px 20px rgba(124,58,237,.5);
    transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); box-shadow: none; }

/* Outline — Rand sichtbar */
.btn-outline {
    background: transparent;
    color: var(--t5-text);
    border: 1px solid rgba(255,255,255,.2);
}
.btn-outline:hover {
    border-color: var(--t5-purple);
    color: #C4B5FD;
    background: rgba(124,58,237,.08);
}

/* Ghost — flach, für Nav-Links */
.btn-ghost {
    background: transparent;
    color: var(--t5-muted);
    border-color: transparent;
    font-weight: 500;
}
.btn-ghost:hover {
    background: rgba(255,255,255,.06);
    color: var(--t5-text);
}

/* Größen */
.btn-sm  { padding: 7px 14px; font-size: 13px; border-radius: 8px; font-weight: 500; }
.btn-xs  { padding: 4px 10px; font-size: 11px; border-radius: 6px; font-weight: 500; }

/* Danger */
.btn-danger { background: rgba(239,68,68,.12); color: #FCA5A5; border: 1px solid rgba(239,68,68,.25); }
.btn-danger:hover { background: rgba(239,68,68,.22); border-color: rgba(239,68,68,.4); }

/* ---- AUTH -------------------------------------------------- */
.auth-bg { min-height: 100vh; background: radial-gradient(ellipse at 30% 20%, rgba(124,58,237,0.12), transparent 60%); }
.auth-wrap {
    min-height: calc(100vh - 56px);
    display: flex; align-items: center; justify-content: center;
    padding: 32px 16px;
}
.auth-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--t5-border);
    border-radius: 20px;
    padding: 36px 32px;
    width: 100%; max-width: 420px;
}
.auth-logo { font-size: 20px; font-weight: 500; display: block; margin-bottom: 20px; }
.auth-logo span { color: var(--t5-purple); }
.auth-card h1 { font-size: 22px; font-weight: 500; margin-bottom: 6px; }
.auth-sub { font-size: 13px; color: var(--t5-muted); margin-bottom: 24px; }
.auth-link { font-size: 12px; color: var(--t5-muted); text-align: center; margin-top: 14px; }
.auth-link a { color: var(--t5-purple); }
.auth-link a:hover { text-decoration: underline; }

/* ---- FORMS ------------------------------------------------- */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 12px; color: var(--t5-muted); margin-bottom: 5px; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: rgba(255,255,255,0.07);
    border: 1px solid var(--t5-border);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--t5-text);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color .15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--t5-purple); }
.form-group select option { background: #1a1230; }
.input-pw { position: relative; }
.input-pw input { padding-right: 44px; }
.pw-toggle {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--t5-muted); cursor: pointer; font-size: 16px; padding: 4px;
}
.role-tabs { display: flex; gap: 5px; background: rgba(255,255,255,0.05); border-radius: 10px; padding: 4px; margin-bottom: 20px; }
.role-tab {
    flex: 1; padding: 8px 6px; border-radius: 7px; text-align: center;
    font-size: 12px; cursor: pointer; color: var(--t5-muted);
    border: none; background: transparent; font-family: inherit; transition: .15s;
    display: flex; align-items: center; justify-content: center; gap: 5px;
}
.role-tab.active { background: var(--t5-purple); color: #fff; }

/* ---- FLASH ------------------------------------------------- */
.flash { padding: 12px 16px; border-radius: 8px; font-size: 13px; margin-bottom: 16px; }
.flash-success { background: rgba(52,211,153,0.1); border: 1px solid rgba(52,211,153,0.25); color: #6EE7B7; }
.flash-error   { background: rgba(239,68,68,0.1);  border: 1px solid rgba(239,68,68,0.25);  color: #FCA5A5; }
.flash-warning { background: rgba(234,179,8,0.1);  border: 1px solid rgba(234,179,8,0.25);  color: #FDE68A; }
.flash-info    { background: rgba(124,58,237,0.1); border: 1px solid rgba(124,58,237,0.25); color: #C4B5FD; }

/* ---- DASHBOARD LAYOUT -------------------------------------- */
.dash-layout { display: flex; min-height: calc(100vh - 56px); }
.sidebar {
    width: 218px; flex-shrink: 0;
    background: rgba(255,255,255,0.025);
    border-right: 1px solid var(--t5-border);
    padding: 16px 10px;
    position: sticky; top: 56px; height: calc(100vh - 56px);
    overflow-y: auto;
}
.sidebar-logo { font-size: 16px; font-weight: 500; padding: 6px 12px; margin-bottom: 16px; }
.sidebar-logo span { color: var(--t5-purple); }
.nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; border-radius: 8px; cursor: pointer;
    font-size: 13px; color: var(--t5-muted); transition: .15s;
    margin-bottom: 1px; border: none; background: transparent;
    width: 100%; font-family: inherit; text-align: left; text-decoration: none;
}
.nav-item:hover { background: var(--t5-card); color: var(--t5-text); }
.nav-item.active { background: rgba(124,58,237,0.18); color: #C4B5FD; }
.nav-section { font-size: 10px; color: rgba(255,255,255,0.22); text-transform: uppercase; letter-spacing: 1.2px; padding: 10px 12px 3px; margin-top: 6px; }
.nav-cat-header { padding: 10px 12px 4px; font-size: 10px; color: rgba(255,255,255,0.22); text-transform: uppercase; letter-spacing: 1.2px; margin-top: 6px; transition: color .15s; border-radius: 6px; }
.nav-cat-header:hover { color: rgba(255,255,255,.4) !important; background: rgba(255,255,255,.03); }
.nav-cat-active { color: rgba(196,181,253,.55) !important; }
.nav-cat-items { overflow: hidden; }
.nav-cat-item { padding-left: 30px !important; font-size: 13px !important; }

.dash-main { flex: 1; padding: 28px 32px; overflow-x: hidden; max-width: 960px; }
.dash-header { margin-bottom: 24px; }
.dash-header h2 { font-size: 21px; font-weight: 500; letter-spacing: -0.3px; }
.dash-header p { font-size: 13px; color: var(--t5-muted); margin-top: 3px; }
.section-eyebrow { font-size: 11px; color: var(--t5-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }

/* ---- METRICS ---------------------------------------------- */
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 20px; }
.metric { background: var(--t5-card); border: 1px solid var(--t5-border); border-radius: 12px; padding: 16px; }
.metric .val { font-size: 24px; font-weight: 500; }
.metric .lbl { font-size: 11px; color: var(--t5-muted); margin-top: 3px; }
.metric .change { font-size: 11px; color: #34D399; margin-top: 2px; }

/* ---- DEALS ------------------------------------------------ */
.deal-card { background: var(--t5-card); border: 1px solid var(--t5-border); border-radius: 14px; padding: 16px; margin-bottom: 12px; }
.deal-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.deal-brand { font-size: 14px; font-weight: 500; }
.deal-status { padding: 4px 12px; border-radius: 100px; font-size: 11px; white-space: nowrap; }
.st-open    { background: rgba(52,211,153,0.1);  color: #34D399;  border: 1px solid rgba(52,211,153,0.25); }
.st-pending { background: rgba(234,179,8,0.1);   color: #FDE68A;  border: 1px solid rgba(234,179,8,0.25); }
.st-done    { background: rgba(124,58,237,0.1);  color: #C4B5FD;  border: 1px solid rgba(124,58,237,0.25); }
.st-red     { background: rgba(239,68,68,0.1);   color: #FCA5A5;  border: 1px solid rgba(239,68,68,0.25); }
.deal-info { display: flex; gap: 14px; font-size: 12px; color: var(--t5-muted); flex-wrap: wrap; }
.deal-budget { font-size: 18px; font-weight: 500; margin-top: 8px; }

/* ---- BOARD / PINNWAND ------------------------------------- */
.board-wrap { background: rgba(255,255,255,0.03); border: 1px solid var(--t5-border); border-radius: 16px; padding: 20px; margin-bottom: 16px; }
.post-input-row { display: flex; gap: 12px; align-items: flex-start; }
.post-input { flex: 1; background: rgba(255,255,255,0.06); border: 1px solid var(--t5-border); border-radius: 10px; padding: 10px 14px; color: var(--t5-text); font-size: 13px; font-family: inherit; resize: vertical; outline: none; transition: border-color .15s; }
.post-input:focus { border-color: var(--t5-purple); }
.post { background: rgba(255,255,255,0.04); border: 1px solid var(--t5-border); border-radius: 14px; padding: 16px; margin-bottom: 12px; }
.post-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.post-name { font-size: 13px; font-weight: 500; }
.post-meta { font-size: 11px; color: var(--t5-muted); margin-left: auto; }
.post-body { font-size: 13px; color: rgba(255,255,255,0.78); line-height: 1.65; margin-bottom: 10px; }
.post-tag { display: inline-block; padding: 3px 10px; border-radius: 100px; font-size: 11px; margin-right: 5px; margin-bottom: 6px; }
.post-footer { display: flex; gap: 12px; padding-top: 10px; border-top: 1px solid var(--t5-border); }
.post-action-btn { background: transparent; border: none; color: var(--t5-muted); font-size: 12px; cursor: pointer; font-family: inherit; display: flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 6px; transition: .15s; }
.post-action-btn:hover { background: var(--t5-card); color: var(--t5-text); }

/* ---- AVATAR ----------------------------------------------- */
.avatar { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 500; flex-shrink: 0; }

/* ---- NOTIFICATIONS ---------------------------------------- */
.notif { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.notif:last-child { border-bottom: none; }
.notif-unread .notif-text { color: var(--t5-text); }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--t5-purple); flex-shrink: 0; margin-top: 5px; }
.notif-text { font-size: 13px; color: rgba(255,255,255,0.8); }
.notif-body { font-size: 12px; color: var(--t5-muted); margin-top: 2px; }
.notif-time { font-size: 11px; color: var(--t5-muted); margin-top: 3px; }
.notif-badge { background: var(--t5-purple); color: #fff; border-radius: 100px; font-size: 11px; padding: 2px 8px; font-weight: 500; margin-right: 4px; }

/* ---- TABLE ------------------------------------------------ */
.table-wrap { background: var(--t5-card); border: 1px solid var(--t5-border); border-radius: 14px; overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
th { background: rgba(255,255,255,0.04); padding: 10px 16px; text-align: left; font-size: 11px; color: var(--t5-muted); font-weight: 500; border-bottom: 1px solid var(--t5-border); white-space: nowrap; }
td { padding: 12px 16px; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,0.045); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(255,255,255,0.02); }
.pill { padding: 3px 10px; border-radius: 100px; font-size: 11px; white-space: nowrap; }
.pill-green  { background: rgba(52,211,153,0.1);  color: #34D399; }
.pill-yellow { background: rgba(234,179,8,0.1);   color: #FDE68A; }
.pill-purple { background: rgba(124,58,237,0.1);  color: #C4B5FD; }
.pill-red    { background: rgba(239,68,68,0.1);   color: #FCA5A5; }

/* ---- FILTER BAR ------------------------------------------- */
.filter-bar { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-btn { padding: 6px 14px; border-radius: 100px; font-size: 12px; color: var(--t5-muted); border: 1px solid var(--t5-border); cursor: pointer; transition: .15s; text-decoration: none; }
.filter-btn:hover { color: var(--t5-text); border-color: rgba(255,255,255,0.3); }
.filter-btn.active { background: rgba(124,58,237,0.2); color: #C4B5FD; border-color: rgba(124,58,237,0.4); }

/* ---- MOBILE ----------------------------------------------- */
@media (max-width: 768px) {
    .sidebar { display: none; }
    .dash-main { padding: 20px 16px; max-width: 100%; }
    .metrics { grid-template-columns: 1fr 1fr; }
    .auth-card { padding: 24px 20px; }
    td, th { padding: 10px 12px; }
}
@media (max-width: 480px) {
    .metrics { grid-template-columns: 1fr; }
    .topnav .btn-ghost { display: none; }
}
