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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: #0a0a1a;
    color: #e0e0e0;
    min-height: 100vh;
}

header {
    background: #111128;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #2a2a4a;
}

header h1 { font-size: 1.4rem; color: #7c8cff; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-actions span { font-size: 0.8rem; color: #888; }

button {
    background: #2a2a5a;
    color: #ccc;
    border: 1px solid #3a3a6a;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s;
}

button:hover { background: #3a3a7a; }

main { padding: 1.5rem 2rem; max-width: 1400px; margin: 0 auto; }

/* KPI Grid */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.kpi-card {
    background: #111128;
    border: 1px solid #2a2a4a;
    border-radius: 10px;
    padding: 1.2rem;
    text-align: center;
}

.kpi-label { display: block; font-size: 0.75rem; color: #888; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.5rem; }
.kpi-value { display: block; font-size: 1.8rem; font-weight: 700; color: #7c8cff; }

/* Panels */
.panel {
    background: #111128;
    border: 1px solid #2a2a4a;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.panel h2 { font-size: 1.1rem; margin-bottom: 1rem; color: #aab; }

/* Tables */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.7rem 1rem; text-align: left; border-bottom: 1px solid #1a1a3a; }
th { font-size: 0.75rem; text-transform: uppercase; color: #666; letter-spacing: 1px; }
td { font-size: 0.9rem; }

tr:hover { background: #1a1a3a; }

/* Funnel */
.funnel { display: flex; flex-direction: column; gap: 0.3rem; }

.funnel-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.funnel-bar .label { width: 120px; font-size: 0.8rem; text-align: right; color: #888; }
.funnel-bar .bar { height: 28px; background: #3a3a7a; border-radius: 4px; min-width: 4px; transition: width 0.5s; position: relative; }
.funnel-bar .bar span { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 0.75rem; color: #fff; }

/* Trigger buttons */
.trigger-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
#trigger-status { margin-top: 1rem; font-size: 0.85rem; color: #7c8cff; }

/* Content list */
.content-item {
    padding: 0.8rem 0;
    border-bottom: 1px solid #1a1a3a;
}

.content-item .type { font-size: 0.7rem; text-transform: uppercase; color: #7c8cff; letter-spacing: 1px; }
.content-item .title { font-size: 0.9rem; margin-top: 0.3rem; }
.content-item .meta { font-size: 0.75rem; color: #666; margin-top: 0.2rem; }

/* Status badges */
.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.badge-active { background: #1a3a1a; color: #4caf50; }
.badge-paused { background: #3a3a1a; color: #ff9800; }
.badge-draft { background: #1a1a3a; color: #888; }
.badge-completed { background: #1a2a3a; color: #2196f3; }
