/* AgentX — Campaign Admin DEMO — shared "hacker terminal" styling
   Ported/rebranded from a real production ad-campaign admin panel.
   All data on these pages is fake demo data (see js/*.js). */

body {
    background-color: #000000;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

#matrixCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    opacity: 0.8;
    pointer-events: none;
}

.cyber-border {
    border: 1px solid rgba(0, 200, 83, 0.3);
    box-shadow: 0 0 10px rgba(0, 200, 83, 0.1), inset 0 0 10px rgba(0, 200, 83, 0.05);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.cyber-border-red {
    border: 1px solid rgba(255, 23, 68, 0.3);
    box-shadow: 0 0 10px rgba(255, 23, 68, 0.1), inset 0 0 10px rgba(255, 23, 68, 0.05);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.cyber-border:hover {
    border-color: rgba(0, 200, 83, 0.8);
    box-shadow: 0 0 20px rgba(0, 200, 83, 0.2), inset 0 0 15px rgba(0, 200, 83, 0.1);
}

.cyber-border-red:hover {
    border-color: rgba(255, 23, 68, 0.8);
    box-shadow: 0 0 20px rgba(255, 23, 68, 0.2), inset 0 0 15px rgba(255, 23, 68, 0.1);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #000000; border-left: 1px solid #003b18; }
::-webkit-scrollbar-thumb { background: #00C853; }
::selection { background: #00C853; color: #000; }

.hidden { display: none !important; }

.login-screen {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
}

/* ── Tables ── */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    font-family: 'Fira Code', monospace;
}

.admin-table th {
    padding: 0.6rem 0.75rem;
    text-align: left;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(0, 200, 83, 0.7);
    border-bottom: 1px solid rgba(0, 200, 83, 0.25);
    white-space: nowrap;
}

.admin-table td {
    padding: 0.75rem 0.75rem;
    border-bottom: 1px solid rgba(0, 200, 83, 0.08);
    color: #cbd5e1;
    vertical-align: middle;
}

.admin-table tbody tr:hover td {
    background: rgba(0, 200, 83, 0.04);
}

.admin-table code {
    background: rgba(0, 200, 83, 0.1);
    color: #00C853;
    padding: 0.15rem 0.5rem;
    border-radius: 0.3rem;
    font-size: 0.78rem;
}

.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.badge-draft { background: rgba(148, 163, 184, 0.15); color: #94a3b8; }
.badge-active { background: rgba(0, 200, 83, 0.15); color: #00C853; }
.badge-completed { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.badge-inactive { background: rgba(255, 23, 68, 0.15); color: #FF1744; }

.link-open {
    color: #00C853;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
}
.link-open:hover { text-decoration: underline; color: #fff; }

.empty-row td {
    text-align: center;
    color: #64748b;
    padding: 1.5rem;
    font-style: italic;
}

.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ── Partner assignment checkbox rows (schedule flow) ── */
.partner-row {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(0, 200, 83, 0.15);
    border-radius: 0.5rem;
    transition: border-color 0.2s, background 0.2s;
}
.partner-row:hover { border-color: rgba(0, 200, 83, 0.4); }
.partner-row.checked { border-color: rgba(0, 200, 83, 0.6); background: rgba(0, 200, 83, 0.05); }

/* ── Print (media-plan preview) ── */
@media print {
    #matrixCanvas, header, .no-print { display: none !important; }
    body { background: #fff !important; color: #000 !important; }
    .print-doc, .print-doc * { color: #000 !important; background: #fff !important; border-color: #333 !important; box-shadow: none !important; }
}
