/* Nexus Dashboard - Custom Styles */

/* 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; }

/* 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;
}
.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 gradient */
.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); }
}

/* Pulse dot for status */
.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; }

/* Pagination */
.page-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    border: 1px solid transparent;
}
.page-btn:hover { background: #e8eff3; }
.page-btn.active {
    background: #3755c3;
    color: white;
}

/* Settings nav */
.settings-nav-item {
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 14px;
    color: #566166;
}
.settings-nav-item:hover { background: #f0f4f7; }
.settings-nav-item.active {
    background: #dde1ff;
    color: #2747b6;
    font-weight: 600;
}

/* Split view for factures */
.split-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    height: calc(100vh - 200px);
}
.split-view > div {
    overflow-y: auto;
}

/* Match suggestion highlight */
.match-highlight {
    animation: matchPulse 2s ease infinite;
}
@keyframes matchPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(55, 85, 195, 0.2); }
    50% { box-shadow: 0 0 0 4px rgba(55, 85, 195, 0.1); }
}

/* 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); } }

/* Reconciliation summary bar */
.summary-bar {
    background: linear-gradient(135deg, #1e293b, #334155);
    color: white;
    border-radius: 16px;
    padding: 20px 28px;
}
