/* ==========================================================================
   ВЫБОР КАТЕГОРИИ В ОКНЕ ЗВОНКА (Chips)
   ========================================================================== */
.category-selector {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.cat-chip {
    cursor: pointer;
}

.cat-chip input {
    display: none;
    /* Скрываем стандартный радиобаттон */
}

.cat-chip span {
    display: block;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 12px;
    color: #ccc;
    transition: all 0.3s ease;
    user-select: none;
}

/* Состояние при выборе категории */
.cat-chip input:checked+span {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    box-shadow: 0 0 15px rgba(225, 78, 202, 0.3);
}

.cat-chip:hover span {
    background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   ФИЛЬТРЫ В ЛЕНТЕ ИСТОРИИ (Sidebar)
   ========================================================================== */
.filter-row {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.btn-filter {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    border-radius: 8px;
    padding: 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.btn-filter:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-filter.active {
    background: var(--accent-alt);
    color: white;
    border-color: var(--accent-alt);
    box-shadow: 0 4px 10px rgba(29, 140, 248, 0.3);
}

/* ==========================================================================
   КАРТОЧКА ЗВОНКА В СПИСКЕ (History Items)
   ========================================================================== */
.history-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
    border-left: 4px solid #444;
    /* Дефолтный цвет границы */
    transition: transform 0.2s ease, background 0.2s ease;
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(3px);
}

/* Цветовая индикация по типам звонков */
.history-item.sale {
    border-left-color: var(--accent);
}

.history-item.corp {
    border-left-color: var(--accent-alt);
}

.history-item.consultation {
    border-left-color: var(--success);
}

.hist-phone {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 4px;
    display: block;
    color: #fff;
}

.hist-meta {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hist-comment {
    font-size: 11px;
    margin-top: 8px;
    color: #aaa;
    font-style: italic;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 5px;
}

/* Базовые цвета по направлению (статусу) */
.history-item.status-in {
    border-left-color: #00f2c3 !important;
    /* Зеленый */
}

.history-item.status-miss {
    border-left-color: #fd5d93 !important;
    /* Красный */
}

.history-item.status-out {
    border-left-color: #1d8cf8 !important;
    /* Синий */
}

/* Иконки */
.dir-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}