/* Nexus 2026 — Custom Styles
   Companion to Tailwind (config generated from brand/brand-tokens.json).
   Patterns ported from nexus-dashboard so both projects share a house style.
*/

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #a9b4b9; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #717c82; }

/* Material Symbols config */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.material-symbols-outlined.filled {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Sidebar transitions */
.sidebar-link {
    transition: all 0.15s ease;
    position: relative;
}
.sidebar-link.active {
    color: #3755c3;
    font-weight: 600;
    background: rgba(55, 85, 195, 0.06);
    border-right: 2.5px solid #3755c3;
}
.sidebar-link:hover:not(.active) {
    background: rgba(55, 85, 195, 0.04);
    color: #2a3439;
}

/* Login background */
.login-bg {
    background: linear-gradient(135deg, #3755c3 0%, #2848b7 50%, #1a3399 100%);
}

/* Card hover */
.card-hover {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card-hover:hover {
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

/* Metric card icon containers */
.metric-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Status badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.badge-blue   { background: #dde1ff; color: #2747b6; }
.badge-grey   { background: #e8eff3; color: #566166; }
.badge-red    { background: #fee2e2; color: #9f403d; }
.badge-green  { background: #dcfce7; color: #166534; }
.badge-orange { background: #ffedd5; color: #9a3412; }
.badge-purple { background: #dfd5f7; color: #625b77; }
.badge-yellow { background: #fef3c7; color: #854d0e; }

/* Zone chips — driven by data/zones.json .color via inline style,
   but we expose a neutral base so they render consistently. Also doubles
   as a filter-chip button when used inside #filter-chips. */
.zone-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: #eef1f5;
    color: #566166;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
}
.zone-chip:hover {
    background: #e4e8ee;
    color: #2a3439;
}
.zone-chip.active {
    background: #3755c3;
    color: #ffffff;
    border-color: #2848b7;
}

/* Table styling */
.nx-table thead th {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #566166;
    padding: 12px 16px;
    border-bottom: 1px solid #e8eff3;
    text-align: left;
}
.nx-table tbody td {
    padding: 14px 16px;
    font-size: 14px;
    border-bottom: 1px solid #f0f4f7;
}
.nx-table tbody tr {
    transition: background 0.1s;
}
.nx-table tbody tr:hover {
    background: #f7f9fb;
}

/* Primary button */
.btn-primary {
    background: linear-gradient(135deg, #3755c3, #2848b7);
    color: #f8f7ff;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.15s;
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    box-shadow: 0 4px 16px rgba(55, 85, 195, 0.35);
    transform: translateY(-1px);
}
.btn-secondary {
    background: transparent;
    color: #526074;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 14px;
    border: 1px solid #a9b4b9;
    cursor: pointer;
    transition: all 0.15s;
}
.btn-secondary:hover {
    background: #f0f4f7;
    border-color: #717c82;
}
.btn-danger {
    background: #9f403d;
    color: #fff7f6;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
}
.btn-danger:hover { background: #752121; }

/* Drop zone */
.drop-zone {
    border: 2px dashed #a9b4b9;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
}
.drop-zone.dragover {
    border-color: #3755c3;
    background: rgba(221, 225, 255, 0.3);
}

/* Toast animation */
.toast-enter { animation: toastIn 0.3s ease forwards; }
.toast-exit  { animation: toastOut 0.3s ease forwards; }
@keyframes toastIn {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(40px); }
}

/* Status dot */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.status-dot.active   { background: #22c55e; }
.status-dot.pending  { background: #f59e0b; }
.status-dot.inactive { background: #a9b4b9; }

/* Loading spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2.5px solid #e8eff3;
    border-top-color: #3755c3;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Coming soon stub */
.coming-soon {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
    color: #717c82;
}
.coming-soon .material-symbols-outlined {
    font-size: 64px;
    opacity: 0.4;
}

/* Print styles — Phase 1.5 per-stand printable sheets */
@media print {
    #sidebar-container, #topbar-container, #toast-container, #modal-overlay { display: none !important; }
    main { margin-left: 0 !important; padding-top: 0 !important; }
    body { background: white; }
}
