/*
 * app.css — Nous Agent custom styles
 * Applied on top of Bootstrap 5 CDN.
 */

/* ── Sidebar ─────────────────────────────────────────────────────────────── */

.sidebar {
    min-height: 100vh;
    position: sticky;
    top: 0;
    overflow-y: auto;
    flex-shrink: 0;
}

.sidebar .nav-link {
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.9rem;
    transition: background-color 0.15s ease;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff !important;
}

.sidebar-brand {
    letter-spacing: -0.02em;
}

/* ── Cards ───────────────────────────────────────────────────────────────── */

.card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
}

/* ── Toast ───────────────────────────────────────────────────────────────── */

#toastContainer .toast {
    min-width: 260px;
}

/* ── Forms ───────────────────────────────────────────────────────────────── */

.form-control:focus,
.form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* ── Business Data table editor — mobile stacked view ────────────────────── */

@media (max-width: 575px) {
    .bd-table-responsive thead {
        display: none;
    }

    .bd-table-responsive tbody tr.data-row {
        display: block;
        margin-bottom: 0.75rem;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        padding: 0.5rem;
    }

    .bd-table-responsive tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border: none;
        padding: 0.2rem 0.4rem;
        font-size: 0.875rem;
    }

    .bd-table-responsive tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #6c757d;
        margin-right: 0.5rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .bd-table-responsive .drag-handle {
        display: none;
    }
}

/* ── Utilities ───────────────────────────────────────────────────────────── */

.min-vh-100 {
    min-height: 100vh;
}
