﻿:root {
    --bg: #0f172a;
    --card: #0b1225;
    --text: #e5e7eb;
    --muted: #9aa1b2;
    --brand: #7c3aed;
    --brand-600: #6d28d9;
    --brand-700: #5b21b6;
    --brand-glow: rgba(124,58,237,.35);
    --success: #10b981;
    --warn: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --ring: 0 0 0 3px rgba(124,58,237,.35);
    --shadow: 0 12px 40px rgba(2,6,23,.35);
    --radius: 16px;
    --border: 1px solid rgba(148,163,184,.15);
}

@media (prefers-color-scheme: light) {
    :root {
        --bg: #f6f7fb;
        --card: #ffffff;
        --text: #0f172a;
        --muted: #64748b;
        --shadow: 0 10px 25px rgba(15,23,42,.08);
    }
}

* {
    box-sizing: border-box
}

html, body {
    height: 100%
}

body {
    margin: 0;
    color: var(--text);
    font: 16px/1.45 system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;
    background: radial-gradient(1200px 600px at 20% -10%, rgba(124,58,237,.25), transparent 60%), radial-gradient(1000px 500px at 110% 10%, rgba(59,130,246,.20), transparent 60%), var(--bg);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(8px);
    /*background: rgba(11,18,37,.6);*/
    border-bottom: var(--border);
}

.head-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: black;
}

.logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg,var(--brand),#3b82f6);
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 6px 16px var(--brand-glow)
}

.title {
    font-weight: 800;
    letter-spacing: .2px;
    color: white;
}

main {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    padding: 18px 16px 96px;
}

/* Cards grid */
.grid {
    display: grid;
    gap: 14px
}

@media(min-width:520px) {
    .grid {
        grid-template-columns: 1fr 1fr
    }
}

@media(min-width:900px) {
    .grid {
        grid-template-columns: repeat(3,1fr)
    }
}

.card {
    background: var(--card);
    border-radius: var(--radius);
    border: var(--border);
    box-shadow: var(--shadow);
    padding: 16px
}

    .card h2 {
        margin: 0 0 10px;
        font-size: 1.05rem
    }

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: .8rem;
    border: 1px solid rgba(148,163,184,.18)
}

.muted {
    color: white;
}

.list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none
}

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: linear-gradient(135deg,#334155,#475569);
    display: grid;
    place-items: center;
    color: #e5e7eb;
    font-weight: 700
}

.btn-link {
    color: var(--brand);
    text-decoration: none
}

    .btn-link:hover {
        text-decoration: underline
    }

/* Call people chips */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    border: var(--border);
    background: rgba(255,255,255,.02);
    width: 100%;
}

    .chip .call {
        margin-left: auto;
        background: #4CAF50; /* green background */
        border: none;
        border-radius: 50%;
        width: 2.5rem;
        height: 2.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

/* FAB (floating action button) + speed dial menu */
.fab {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 20
}

.fab-main {
    width: 58px;
    height: 58px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg,var(--brand),var(--brand-700));
    box-shadow: 0 12px 30px var(--brand-glow)
}

    .fab-main:focus-visible {
        outline: none;
        box-shadow: var(--ring)
    }

.fab-menu {
    position: absolute;
    right: 0;
    bottom: 70px;
    display: grid;
    gap: 10px;
    transform-origin: 90% 100%;
}

    .fab-menu[hidden] {
        display: none
    }

.fab-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 31px;
    /* gap: 10px; */
    background: #5b21b6;
}

    .fab-item button {
        border: none;
        border-radius: 999px;
        padding: 10px;
        background: var(--card);
        color: var(--text);
        border: var(--border);
        box-shadow: var(--shadow);
        cursor: pointer
    }

    .fab-item span {
        background: var(--card);
        padding: 6px 10px;
        border-radius: 10px;
        font-size: .9rem;
        background: #5b21b6;
        color: white;
    }

    .fab-item button:focus-visible {
        outline: none;
        box-shadow: var(--ring)
    }

/* Utilities */
.kpi {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700
}

    .kpi .dot {
        width: 10px;
        height: 10px;
        border-radius: 999px
    }

.dot.warn {
    background: var(--warn)
}

.dot.danger {
    background: var(--danger)
}

.dot.ok {
    background: var(--success)
}

.dot.info {
    background: var(--info)
}

.empty {
    padding: 10px;
    border: 1px dashed rgba(148,163,184,.25);
    border-radius: 12px;
    color: var(--muted)
}













/* Backdrop */
.call-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(6px) saturate(1.2);
}

    .call-overlay[data-open="true"] {
        display: flex;
    }


/* Dialog */
.call-popup {
    width: min(92vw, 420px);
    border-radius: var(--radius-xl);
    background: white;
    box-shadow: var(--shadow-1);
    border: 1px solid rgba(255,255,255,.06);
    transform: translateY(12px) scale(.98);
    opacity: 0;
    transition: transform .3s cubic-bezier(.2,.7,.2,1), opacity .25s ease;
}

.call-overlay[data-open="true"] .call-popup {
    transform: translateY(0) scale(1);
    opacity: 1;
}


.call-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 18px 10px 18px;
}

.call-title {
    font-weight: 700;
    letter-spacing: .2px;
    font-size: 14px;
    color: var(--muted);
}

.call-spacer {
    flex: 1
}

.call-close {
    background: none;
    border: 0;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    color: var(--muted);
    cursor: pointer
}

    .call-close:focus {
        outline: 2px solid var(--primary);
        outline-offset: 2px
    }


.call-body {
    padding: 4px 18px 18px 18px;
    display: grid;
    gap: 16px;
}


.caller {
    display: grid;
    justify-items: center;
    gap: 14px;
    text-align: center;
}


.avatar2 {
    position: relative;
    width: 104px;
    height: 104px;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(0,0,0,.25);
}

    .avatar2 img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .avatar2::before { /* pulsing ring */
        content: "";
        position: absolute;
        inset: -8px;
        border-radius: inherit;
        border: 3px solid var(--ring);
        animation: ring 1.8s ease-out infinite;
    }

@keyframes ring {
    0% {
        transform: scale(.8);
        opacity: .9
    }

    70% {
        transform: scale(1.2);
        opacity: .2
    }

    100% {
        transform: scale(1.25);
        opacity: 0
    }
}


.name {
    font-size: 18px;
    font-weight: 750;
}

.meta {
    font-size: 13px;
    color: var(--muted)
}


.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    border: 1px dashed rgba(255,255,255,.15);
    font-size: 12px;
    color: var(--muted)
}


.actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .06s ease, box-shadow .2s ease;
    box-shadow: 0 6px 14px rgba(0,0,0,.12);
    white-space: nowrap
}

    .btn:active {
        transform: translateY(1px)
    }

    .btn:focus {
        outline: 2px solid var(--primary);
        outline-offset: 2px
    }

.btn-primary {
    background: rgb(47, 106, 233);
    color: white
}

    .btn-primary:hover {
        background: hsl(221 81% 52%);
    }

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary)
}

.btn-danger {
    background: var(--danger);
    color: white
}

.actions-2 {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.link-btn {
    background: none;
    border: 0;
    padding: 8px 6px;
    color: var(--muted);
    font-weight: 600;
    cursor: pointer
}

    .link-btn:hover {
        text-decoration: underline
    }


.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0
}


/* Small helper for icon sizing */
.icon {
    width: 18px;
    height: 18px;
    display: inline-block
}


/* Demo bar (remove for prod) */
.demo {
    position: fixed;
    inset: auto 12px 12px auto;
}

    .demo button {
        padding: 10px 14px;
        border-radius: 12px;
        border: 0;
        background: var(--primary);
        color: #fff;
        box-shadow: 0 8px 18px rgba(0,0,0,.15);
        cursor: pointer
    }


.brand-logo {
    width: 70px;
    height: 70px;
    background: black;
    /*border-radius: 10px;
            background: linear-gradient(135deg,var(--brand),#3b82f6);
            display: grid;
            place-items: center;
            color: white;
            font-weight: 700;
            box-shadow: 0 6px 16px rgba(124,58,237,.35);*/
}

.titleBtn{
    min-width:80px;
}