/* ── ML CRM – Application Styles ──────────────────────────── */

:root {
    --sidebar-width: 240px;
    --body-bg: #f4f6f9;
    --card-radius: 0.75rem;
}

body {
    background-color: var(--body-bg);
    font-size: 0.9rem;
}

/* Navbar */
.navbar-brand {
    font-size: 1.1rem;
    letter-spacing: -0.3px;
}

/* Cards */
.card {
    border-radius: var(--card-radius) !important;
}

.card-header {
    border-radius: var(--card-radius) var(--card-radius) 0 0 !important;
    font-size: 0.875rem;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid rgba(0,0,0,0.07);
}

/* Stat icons */
.stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Activity feed */
.activity-feed .list-group-item {
    border-left: none;
    border-right: none;
}

.activity-feed .list-group-item:first-child {
    border-top: none;
}

/* Stage stat blocks on pipeline cards */
.stage-stat {
    transition: background 0.15s;
    min-width: 80px;
}

.stage-stat:hover {
    background: #f8f9fa;
}

.stage-stat:last-child {
    border-right: none !important;
}

/* Tables */
.table th {
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* Badges */
.badge.rounded-pill {
    font-weight: 500;
}

/* Forms */
.form-label {
    margin-bottom: 0.3rem;
}

/* Monospace fields (auth codes etc) */
.font-monospace {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.85rem;
}

/* Priority colours */
.priority-urgent { color: #dc3545; }
.priority-high   { color: #fd7e14; }
.priority-medium { color: #6c757d; }
.priority-low    { color: #adb5bd; }

/* Responsive table improvements */
@media (max-width: 768px) {
    .stat-icon {
        width: 40px;
        height: 40px;
    }
    .stage-stat {
        min-width: 60px;
    }
}

/* Alpine.js cloak */
[x-cloak] { display: none !important; }

/* Login page */
.min-vh-100 {
    min-height: 100vh;
}

/* Ensure modals sit above everything */
.modal-backdrop {
    z-index: 1040;
}
.modal {
    z-index: 1050;
}
