:root {
    --crm-primary: #007bff;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* User image initials */
.user-image {
    width: 30px;
    height: 30px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 50%;
}

/* Login page */
.login-page {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
    min-height: 100vh;
}
.login-logo {
    font-size: 2.1rem;
}
.login-card .card {
    border-radius: 0.6rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
}
.login-card .btn-primary {
    background: #1e3c72;
    border-color: #1e3c72;
}

/* Content header breadcrumbs */
.content-header .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    justify-content: flex-end;
}

/* Cards */
.card-header .card-tools {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Tables */
.table-actions .btn {
    padding: 0.15rem 0.4rem;
    font-size: 0.75rem;
}
.table td {
    vertical-align: middle;
}

/* Pipeline board */
.pipeline-board {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    align-items: flex-start;
}
.pipeline-column {
    flex: 0 0 280px;
    max-width: 280px;
    background: #f4f6f9;
    border-radius: 0.5rem;
    padding: 0.75rem;
    min-height: 300px;
}
.pipeline-column .column-header {
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    margin-bottom: 0.75rem;
    border-radius: 0.35rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.pipeline-card {
    background: #fff;
    border-radius: 0.35rem;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    cursor: grab;
}
.pipeline-card:active {
    cursor: grabbing;
}
.pipeline-card.dragging {
    opacity: 0.5;
}

/* Timeline */
.timeline {
    position: relative;
    margin: 0 0 1.5rem 0;
    padding: 0;
    list-style: none;
}

/* Notification dropdown */
.notification-menu {
    min-width: 340px;
    max-height: 380px;
    overflow-y: auto;
}

/* Chat bubbles (AI) */
.chat-box {
    height: 420px;
    overflow-y: auto;
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1rem;
}
.chat-msg {
    max-width: 80%;
    margin-bottom: 0.75rem;
    padding: 0.6rem 0.9rem;
    border-radius: 0.75rem;
    clear: both;
}
.chat-msg.user {
    background: #007bff;
    color: #fff;
    float: right;
}
.chat-msg.assistant {
    background: #e9ecef;
    color: #212529;
    float: left;
}
.chat-msg .meta {
    font-size: 0.7rem;
    opacity: 0.8;
    margin-bottom: 0.2rem;
}

/* Badge cursor */
[data-click-call] {
    cursor: pointer;
}

/* Reports */
.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

/* Filter panel */
.filter-panel {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

/* Settings tabs */
.nav-pills .nav-link.active {
    background: #007bff;
}
