/* ============================================================
   ABOTRIX V24.0.2B — LIVE OPERATIONS CENTER
   ============================================================ */

.abotrix-demo-topbar-actions {
    position: relative;
}

.abotrix-live-notification-button {
    position: relative;
}

.abotrix-live-notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 15px;
    height: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #fff;
    border-radius: 999px;
    color: #fff;
    background: #ef625f;
    font-size: 6px;
    font-weight: 850;
    line-height: 1;
}

.abotrix-live-notification-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 80;
    width: min(340px, calc(100vw - 30px));
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-7px) scale(0.985);
    border: 1px solid rgba(61, 126, 153, 0.18);
    border-radius: 14px;
    color: #294654;
    background: rgba(255, 255, 255, 0.985);
    box-shadow: 0 25px 70px rgba(12, 45, 61, 0.22);
    transition:
        opacity 160ms ease,
        visibility 160ms ease,
        transform 160ms ease;
}

.abotrix-live-notification-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.abotrix-live-notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 14px 15px;
    border-bottom: 1px solid #e5edf1;
}

.abotrix-live-notification-header strong {
    color: #18394b;
    font-size: 10px;
}

.abotrix-live-notification-header small {
    display: block;
    margin-top: 2px;
    color: #8ca0aa;
    font-size: 6px;
}

.abotrix-live-notification-header button {
    padding: 5px 7px;
    border: 1px solid #dbe7ec;
    border-radius: 7px;
    color: #557383;
    background: #f9fbfc;
    font: inherit;
    font-size: 6px;
    cursor: pointer;
}

.abotrix-live-notification-list {
    max-height: 330px;
    overflow-y: auto;
    padding: 6px;
}

.abotrix-live-notification-item {
    display: grid;
    grid-template-columns: 29px minmax(0, 1fr) auto;
    gap: 9px;
    align-items: start;
    padding: 10px;
    border-radius: 10px;
    transition:
        background-color 150ms ease,
        transform 150ms ease;
}

.abotrix-live-notification-item:hover {
    background: #f3f8fa;
    transform: translateX(2px);
}

.abotrix-live-notification-item.is-new {
    animation: abotrix-notification-enter 420ms ease;
    background: #f0fafc;
}

@keyframes abotrix-notification-enter {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.abotrix-live-notification-icon {
    width: 29px;
    height: 29px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: #1684a0;
    background: #e8f6f9;
    font-size: 9px;
}

.abotrix-live-notification-icon.warning {
    color: #a16829;
    background: #fff2df;
}

.abotrix-live-notification-icon.success {
    color: #258664;
    background: #e9f8f1;
}

.abotrix-live-notification-icon.critical {
    color: #ac514d;
    background: #fff0ef;
}

.abotrix-live-notification-copy {
    min-width: 0;
}

.abotrix-live-notification-copy strong,
.abotrix-live-notification-copy small {
    display: block;
}

.abotrix-live-notification-copy strong {
    overflow: hidden;
    color: #365362;
    font-size: 7px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.abotrix-live-notification-copy small {
    margin-top: 3px;
    color: #91a2ab;
    font-size: 6px;
    line-height: 1.45;
}

.abotrix-live-notification-time {
    color: #a0afb7;
    font-size: 6px;
    white-space: nowrap;
}

.abotrix-live-notification-footer {
    padding: 10px 14px;
    border-top: 1px solid #e6eef2;
    color: #6d8795;
    background: #f8fbfc;
    font-size: 6px;
    text-align: center;
}

/* LIVE ACTIVITY FEED */

.abotrix-demo-activity-card {
    position: relative;
    overflow: hidden;
}

.abotrix-demo-activity-list {
    max-height: 224px;
    overflow-y: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
}

.abotrix-demo-activity-item.is-live-entry {
    animation: abotrix-activity-enter 440ms ease;
}

@keyframes abotrix-activity-enter {
    from {
        opacity: 0;
        transform: translateY(-10px);
        background: #eaf8fb;
    }

    to {
        opacity: 1;
        transform: translateY(0);
        background: transparent;
    }
}

.abotrix-live-feed-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #328b6e;
    font-size: 6px;
    font-weight: 750;
}

.abotrix-live-feed-status i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #48d39d;
    animation: abotrix-feed-pulse 1.8s infinite;
}

@keyframes abotrix-feed-pulse {
    0%, 100% {
        opacity: 0.45;
    }

    50% {
        opacity: 1;
    }
}

/* TRANSACTIONS */

.abotrix-live-transactions-card {
    margin-top: 11px;
    padding: 16px;
    border: 1px solid #dce6eb;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 9px 25px rgba(33, 75, 95, 0.035);
}

.abotrix-live-transactions-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 13px;
}

.abotrix-live-transactions-header span {
    display: block;
    color: #1d96b2;
    font-size: 6px;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.abotrix-live-transactions-header h4 {
    margin: 2px 0 0;
    color: #1b384a;
    font-size: 10px;
}

.abotrix-live-transactions-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.abotrix-live-transactions-actions button {
    min-height: 28px;
    padding: 6px 9px;
    border: 1px solid #dbe6eb;
    border-radius: 7px;
    color: #617b89;
    background: #f9fbfc;
    font: inherit;
    font-size: 6px;
    cursor: pointer;
}

.abotrix-live-table-wrap {
    overflow-x: auto;
}

.abotrix-live-transactions-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
}

.abotrix-live-transactions-table th {
    padding: 8px 9px;
    border-bottom: 1px solid #dfe8ed;
    color: #8297a2;
    font-size: 6px;
    font-weight: 800;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.045em;
}

.abotrix-live-transactions-table td {
    padding: 9px;
    border-bottom: 1px solid #edf2f4;
    color: #536e7d;
    font-size: 7px;
    white-space: nowrap;
}

.abotrix-live-transactions-table tbody tr {
    transition:
        background-color 150ms ease,
        transform 150ms ease;
}

.abotrix-live-transactions-table tbody tr:hover {
    background: #f5fafc;
}

.abotrix-live-transactions-table tbody tr.is-new {
    animation: abotrix-table-row-enter 480ms ease;
}

@keyframes abotrix-table-row-enter {
    from {
        opacity: 0;
        transform: translateY(-7px);
        background: #eaf8fb;
    }

    to {
        opacity: 1;
        transform: translateY(0);
        background: transparent;
    }
}

.abotrix-live-reference {
    color: #1a7893;
    font-weight: 780;
}

.abotrix-live-amount {
    color: #294d5f;
    font-weight: 760;
}

.abotrix-live-status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 4px 7px;
    border-radius: 999px;
    font-size: 6px;
    font-weight: 780;
}

.abotrix-live-status-chip.success {
    color: #248360;
    background: #e9f8f1;
}

.abotrix-live-status-chip.pending {
    color: #9b682b;
    background: #fff3df;
}

.abotrix-live-status-chip.progress {
    color: #217995;
    background: #e7f5f9;
}

.abotrix-live-status-chip.cancelled {
    color: #a74f4d;
    background: #fff0ef;
}

/* OPERATIONAL STATISTICS */

.abotrix-live-operation-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
    margin-top: 11px;
}

.abotrix-live-operation-stat {
    padding: 12px;
    border: 1px solid #dce6eb;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.92);
}

.abotrix-live-operation-stat span,
.abotrix-live-operation-stat strong,
.abotrix-live-operation-stat small {
    display: block;
}

.abotrix-live-operation-stat span {
    color: #8297a2;
    font-size: 6px;
}

.abotrix-live-operation-stat strong {
    margin-top: 5px;
    color: #19384b;
    font-size: 15px;
    letter-spacing: -0.025em;
}

.abotrix-live-operation-stat small {
    margin-top: 4px;
    color: #96a6ae;
    font-size: 6px;
}

/* MOBILE */

@media (max-width: 840px) {
    .abotrix-live-operation-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .abotrix-live-notification-panel {
        position: fixed;
        top: 78px;
        right: 14px;
    }
}

@media (max-width: 500px) {
    .abotrix-live-operation-stats {
        grid-template-columns: 1fr;
    }

    .abotrix-live-transactions-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .abotrix-live-notification-panel {
        left: 12px;
        right: 12px;
        width: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .abotrix-live-notification-panel,
    .abotrix-live-notification-item,
    .abotrix-demo-activity-item,
    .abotrix-live-transactions-table tbody tr {
        transition: none !important;
        animation: none !important;
    }
}
