/* =============================================================================
 * AI Chatbot SaaS — App Stylesheet
 * Custom layer on top of Bootstrap.
 * =========================================================================== */

:root {
    --app-sidebar-width: 240px;
    --app-header-height: 56px;
    --app-bg: #f5f7fb;
    --app-border: #e6e9ef;
}

body {
    background-color: var(--app-bg);
}

/* ---------- Layout ---------- */
.app-layout {
    display: flex;
    min-height: 100vh;
}
.app-sidebar {
    width: var(--app-sidebar-width);
    background: #ffffff;
    border-right: 1px solid var(--app-border);
    flex-shrink: 0;
}
.app-sidebar .nav-link {
    color: #495057;
    border-radius: .375rem;
    padding: .5rem .75rem;
}
.app-sidebar .nav-link.active,
.app-sidebar .nav-link:hover {
    background: #eef2ff;
    color: #0d6efd;
}
.app-content {
    flex-grow: 1;
    min-width: 0;
}
.app-topbar {
    height: var(--app-header-height);
    background: #ffffff;
    border-bottom: 1px solid var(--app-border);
}

/* ---------- Cards ---------- */
.app-stat-card {
    border: 1px solid var(--app-border);
    border-radius: .5rem;
    background: #fff;
}
.app-stat-card .stat-label {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6c757d;
}
.app-stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 600;
}

/* ---------- Tables ---------- */
.table-app {
    background: #fff;
}
.table-app thead th {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6c757d;
}

/* ---------- Status badges ---------- */
.badge-status-new          { background:#0d6efd; color:#fff; }
.badge-status-open         { background:#0dcaf0; color:#000; }
.badge-status-in_progress  { background:#ffc107; color:#000; }
.badge-status-closed       { background:#6c757d; color:#fff; }
.badge-status-converted    { background:#198754; color:#fff; }
.badge-status-spam         { background:#dc3545; color:#fff; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .app-sidebar {
        position: fixed;
        z-index: 1040;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform .2s ease;
    }
    .app-sidebar.show {
        transform: translateX(0);
    }
}
