/* Ainvox Call Manager - custom styles on top of Bootstrap 5 */

body {
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* --- Tables --- */
.table thead th {
    white-space: nowrap;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.table td {
    vertical-align: middle;
}

/* --- Timeline (customer details) --- */
.timeline {
    position: relative;
    padding-left: 1.75rem;
    border-left: 2px solid #dee2e6;
    margin-left: .5rem;
}

.timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -1.79rem;
    top: .35rem;
    width: .8rem;
    height: .8rem;
    border-radius: 50%;
    background: #198754;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #198754;
}

.timeline-item:nth-child(even)::before {
    background: #6c757d;
    box-shadow: 0 0 0 2px #6c757d;
}

/* --- Dashboard stat cards --- */
.stat-card {
    transition: transform .15s ease, box-shadow .15s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .08) !important;
}

.stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.stat-value {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.1;
}

.stat-label {
    font-size: .78rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* --- Buttons --- */
.btn .spinner-border {
    vertical-align: -.125em;
}

/* --- Responsive tweaks --- */
@media (max-width: 575.98px) {
    .table-responsive {
        border: 0;
    }
}
