/**
 * CRM Topbar & Alerts — стили верхней панели и уведомлений
 * 
 * Кодировка: UTF-8
 * @version 1.0.0
 */

/* ═══════════════════════════════════════════════════════════════════════
   ALERTS
   ═══════════════════════════════════════════════════════════════════════ */
.crm-alert-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    border-radius: 6px;
    font-size: 13px;
}

.crm-alert-warn {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    border-radius: 6px;
    font-size: 13px;
}

/* ═══════════════════════════════════════════════════════════════════════
   TOP BAR — Связь и PRO
   ═══════════════════════════════════════════════════════════════════════ */
.crm-topbar {
    position: fixed;
    top: 0;
    left: 280px;
    right: 0;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.92) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 999;
}

.crm-topbar__left {
    display: flex;
    align-items: center;
}

.crm-topbar__welcome {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.crm-topbar__center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
}

.crm-topbar__clock {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.crm-topbar__clock-time {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.crm-topbar__clock-date {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.crm-topbar__right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.crm-topbar__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.crm-topbar__btn svg {
    width: 14px;
    height: 14px;
}

.crm-topbar__btn--request {
    background: rgba(99, 102, 241, 0.12);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.crm-topbar__btn--request:hover {
    background: rgba(99, 102, 241, 0.2);
    color: #c7d2fe;
    transform: translateY(-1px);
}

.crm-topbar__btn--pro {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.crm-topbar__btn--pro:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    color: #fff;
}

.crm-topbar__btn--settings {
    background: rgba(100, 116, 139, 0.15);
    color: #94a3b8;
    border: 1px solid rgba(100, 116, 139, 0.25);
}

.crm-topbar__btn--settings:hover {
    background: rgba(100, 116, 139, 0.25);
    color: #cbd5e1;
    transform: translateY(-1px);
}

.crm-topbar__btn--settings:hover svg {
    transform: rotate(45deg);
}

.crm-topbar__btn--settings svg {
    transition: transform 0.3s ease;
}

.crm-topbar__btn--support {
    background: rgba(16, 185, 129, 0.12);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.crm-topbar__btn--support:hover {
    background: rgba(16, 185, 129, 0.2);
    color: #a7f3d0;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .crm-topbar {
        left: 0;
        padding: 0 12px;
    }
    .crm-topbar__welcome {
        display: none;
    }
}
