:root {
    --bg: #050814;
    --bg-elevated: #0d1220;
    --accent: #48e0a4;
    --accent-soft: rgba(72, 224, 164, 0.18);
    --accent-strong: #3bc58f;
    --text-main: #f7fafc;
    --text-muted: #9ca9c9;
    --danger: #ff5c7a;
    --border-soft: rgba(156, 169, 201, 0.18);
    --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.4);
    --radius-lg: 18px;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #10172f 0%, #050814 55%, #020308 100%);
    color: var(--text-main);
    overflow-x: hidden;
}

body {
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 32px;
    box-sizing: border-box;
}

#parrot-warp {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

.parrot-page {
    display: flex;
    position: relative;
    z-index: 10;
    flex-direction: column;

    width: min(1400px, calc(100vw - 64px));
    min-height: calc(100vh - 64px);

    background: linear-gradient(145deg, rgba(17, 24, 39, 0.92), rgba(6, 12, 30, 0.98));
    border-radius: 24px;
    border: 1px solid rgba(72, 224, 164, 0.18);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.parrot-header {
    padding: 18px 28px 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.28);
    background: radial-gradient(circle at top left, rgba(72, 224, 164, 0.25), transparent 55%);
}

.parrot-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.parrot-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.parrot-header-avatar {
    height: 74px;
    width: auto;
    max-width: 74px;
    flex: 0 0 auto;
    object-fit: contain;
    border-radius: 16px;
    filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.45))
            drop-shadow(0 0 18px rgba(124, 92, 255, 0.30))
            drop-shadow(0 0 10px rgba(255, 36, 170, 0.22));
}

.parrot-header-text {
    min-width: 0;
}

.parrot-title {
    font-family: "Cinzel Decorative", "Times New Roman", serif;
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0;
    background: linear-gradient(120deg, #f9fafb, #bbf7d0, var(--accent), #e0f2fe);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 18px rgba(72, 224, 164, 0.35);
}

.parrot-tagline {
    margin-top: 6px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.parrot-tagline span {
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid var(--accent-soft);
    background: radial-gradient(circle at top, rgba(72, 224, 164, 0.12), transparent);
    color: var(--accent-strong);
}

.parrot-nav-button {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(72, 224, 164, 0.65);
    background: radial-gradient(circle at top, rgba(72, 224, 164, 0.25), transparent);
    color: var(--accent-strong);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.08em;
    margin-top: 4px;
}

.parrot-nav-button:hover {
    background: radial-gradient(circle at top, rgba(72, 224, 164, 0.35), transparent);
    box-shadow: 0 0 12px rgba(72, 224, 164, 0.45);
}

.parrot-refresh-bar {
    margin-top: 10px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(180deg, #020617, #020617);
    box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.9), 0 1px 0 rgba(148, 163, 184, 0.35);
    overflow: hidden;
}

.parrot-refresh-fill {
    height: 100%;
    width: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #38bdf8, #0ea5e9, #38bdf8);
    box-shadow: inset 0 1px 0 rgba(241, 245, 249, 0.5), 0 0 10px rgba(56, 189, 248, 0.8);
    transition: width 0.9s linear;
}

.parrot-main {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.parrot-map-section {
    flex: 0 0 550px;
    padding: 12px 20px 18px;
}

.parrot-map-card {
    height: 100%;
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.95));
    border: 1px solid var(--border-soft);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.parrot-map-header {
    padding: 8px 14px 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(148, 163, 184, 0.24);
    background: linear-gradient(90deg, rgba(72, 224, 164, 0.06), transparent);
}

.parrot-map-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 10px rgba(72, 224, 164, 0.9);
}

#parrot-map {
    flex: 1 1 auto;
    min-height: 0;
}

.parrot-map-reset {
    cursor: pointer;
    background: rgba(15, 23, 42, 0.85);
    color: #e5e7eb;
    padding: 6px 10px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    border-radius: 8px;
    font-size: 12px;
    user-select: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.parrot-map-reset:hover {
    background: rgba(30, 58, 138, 0.85);
}

.parrot-map-reset:active {
    transform: scale(0.96);
}

.parrot-devices-section {
    flex: 1 1 auto;
    min-height: 0;
    padding: 4px 20px 20px;
}

.parrot-devices-shell {
    height: 100%;
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at bottom, rgba(15, 23, 42, 0.9), rgba(6, 10, 25, 0.96));
    border: 1px solid var(--border-soft);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.parrot-devices-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px 8px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.24);
}

.parrot-devices-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.parrot-devices-subtitle {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.parrot-devices-showing {
    color: rgba(182, 195, 214, 0.72);
}

.parrot-devices-counter {
    font-size: 12px;
    color: var(--text-muted);
}

.parrot-devices-counter strong {
    color: var(--accent-strong);
}

.parrot-devices-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    justify-content: flex-end;
    min-width: 0;
}

.parrot-tool-btn {
    border-radius: 999px;
    border: 1px solid rgba(124, 92, 255, 0.28);
    background: rgba(6, 10, 16, 0.55);
    color: rgba(182, 195, 214, 0.85);
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.parrot-tool-btn.is-active {
    border-color: rgba(56, 189, 248, 0.55);
    color: rgba(230, 237, 243, 0.98);
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.18), 0 0 18px rgba(124, 92, 255, 0.12);
    background: rgba(56, 189, 248, 0.10);
}

.parrot-tool-input {
    width: min(260px, 38vw);
    border-radius: 999px;
    border: 1px solid rgba(0, 255, 209, 0.18);
    background: rgba(6, 10, 16, 0.55);
    color: rgba(230, 237, 243, 0.95);
    padding: 7px 12px;
    font-size: 12px;
    outline: none;
    min-width: 0;
}

.parrot-tool-input::placeholder {
    color: rgba(182, 195, 214, 0.55);
}

@media (max-width: 720px) {
    .parrot-devices-header {
        flex-wrap: wrap;
        gap: 8px;
    }
    .parrot-devices-tools {
        width: 100%;
        justify-content: space-between;
    }
    .parrot-tool-input {
        width: 100%;
        order: 2;
    }
}

.parrot-devices-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    max-height: 420px;
    overflow-y: auto;
    padding: 14px 16px 16px;
    padding-right: 20px;
}

.parrot-device-card {
    border-radius: 16px;
    padding: 12px 12px 10px;
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.95), #020617);
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
}

.parrot-device-card.empty {
    border-style: dashed;
    border-color: rgba(148, 163, 184, 0.5);
    background: radial-gradient(circle at bottom, rgba(15, 23, 42, 0.85), rgba(2, 6, 23, 0.95));
    opacity: 0.85;
}

.parrot-device-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.parrot-device-name {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.parrot-device-id {
    font-size: 11px;
    color: var(--text-muted);
}

.parrot-id-sep {
    margin: 0 8px;
    color: rgba(182, 195, 214, 0.55);
}

.parrot-radmon-led {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    margin-left: 8px;
    vertical-align: middle;
    box-shadow: 0 0 0 1px rgba(8, 12, 18, 0.85) inset;
}

.parrot-radmon-led.radmon-ok {
    background: rgba(0, 255, 209, 0.95);
    box-shadow: 0 0 10px rgba(0, 255, 209, 0.55), 0 0 0 1px rgba(0, 255, 209, 0.35);
}

.parrot-radmon-led.radmon-bad {
    background: rgba(255, 28, 28, 0.98);
    box-shadow:
        0 0 12px rgba(255, 28, 28, 0.85),
        0 0 22px rgba(255, 28, 28, 0.45),
        0 0 0 1px rgba(255, 28, 28, 0.55);
}

.parrot-radmon-led.radmon-unk {
    background: rgba(182, 195, 214, 0.65);
    box-shadow: 0 0 8px rgba(182, 195, 214, 0.18), 0 0 0 1px rgba(182, 195, 214, 0.22);
}

.parrot-status-pill {
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    border: 1px solid rgba(72, 224, 164, 0.5);
    background: radial-gradient(circle at top, rgba(72, 224, 164, 0.18), transparent);
    color: var(--accent-strong);
    white-space: nowrap;
}

.parrot-status-pill.offline {
    border-color: rgba(248, 113, 113, 0.7);
    background: radial-gradient(circle at top, rgba(248, 113, 113, 0.18), transparent);
    color: #fecaca;
}

.parrot-status-link {
    color: inherit;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    text-align: center;
}

.parrot-status-link:hover {
    text-decoration: underline;
}

.parrot-device-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 8px;
    font-size: 11px;
    color: var(--text-muted);
}

.parrot-device-metrics span strong {
    color: var(--text-main);
}

.parrot-device-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
}

.parrot-device-empty-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.parrot-device-empty-text span {
    color: var(--danger);
    font-weight: 800;
}

.parrot-device-card.haz-low {
    border-color: rgba(56, 189, 248, 0.7);
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.45);
}

.parrot-device-card.haz-norm {
    border-color: rgba(74, 222, 128, 0.8);
    box-shadow: 0 0 18px rgba(74, 222, 128, 0.45);
}

.parrot-device-card.haz-warn {
    border-color: rgba(250, 204, 21, 0.9);
    box-shadow: 0 0 20px rgba(250, 204, 21, 0.5);
}

.parrot-device-card.haz-danger {
    border-color: rgba(248, 113, 113, 1);
    box-shadow: 0 0 24px rgba(248, 113, 113, 0.75);
}

.parrot-status-pill.haz-low {
    border-color: rgba(56, 189, 248, 0.85);
    background: radial-gradient(circle at top, rgba(56, 189, 248, 0.2), transparent);
    color: #e0f2fe;
}

.parrot-status-pill.haz-norm {
    border-color: rgba(74, 222, 128, 0.9);
    background: radial-gradient(circle at top, rgba(74, 222, 128, 0.25), transparent);
    color: #dcfce7;
}

.parrot-status-pill.haz-warn {
    border-color: rgba(250, 204, 21, 1);
    background: radial-gradient(circle at top, rgba(250, 204, 21, 0.25), transparent);
    color: #fef9c3;
}

.parrot-status-pill.haz-danger {
    border-color: rgba(248, 113, 113, 1);
    background: radial-gradient(circle at top, rgba(248, 113, 113, 0.3), transparent);
    color: #fee2e2;
}

.parrot-sparkline {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 255, 209, 0.10);
    cursor: pointer;
    user-select: none;
}

.parrot-sparkline canvas {
    display: block;
    width: 100%;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 60%);
    box-shadow: inset 0 0 0 1px rgba(124, 92, 255, 0.12);
}

.parrot-device-card:hover .parrot-sparkline canvas {
    box-shadow: inset 0 0 0 1px rgba(0, 255, 209, 0.18), 0 0 18px rgba(0, 255, 209, 0.08);
}

.chartHud {
    position: absolute;
    pointer-events: none;
    background: rgba(12, 18, 28, 0.92);
    border: 1px solid rgba(0, 255, 209, 0.25);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55),
                0 0 0 1px rgba(124, 92, 255, 0.15) inset,
                0 0 22px rgba(0, 255, 209, 0.15);
    border-radius: 12px;
    padding: 10px 12px;
    min-width: 220px;
    backdrop-filter: blur(8px);
    display: none;
    transform: translateZ(0);
    will-change: transform, left, top;
    z-index: 5;
}

.chartHud .t {
    font-size: 12px;
    color: #b6c3d6;
    margin-bottom: 6px;
}

.chartHud .row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    line-height: 1.25;
    margin: 3px 0;
}

.chartHud .k {
    color: #97a6ba;
}

.chartHud .v {
    color: #e6edf3;
    font-weight: 650;
    letter-spacing: 0.2px;
}

.chartHud .pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #e6edf3;
}

.chartHud .pill.low {
    border-color: rgba(0, 255, 209, 0.35);
    background: rgba(0, 255, 209, 0.08);
}

.chartHud .pill.norm {
    border-color: rgba(124, 92, 255, 0.35);
    background: rgba(124, 92, 255, 0.08);
}

.chartHud .pill.warn {
    border-color: rgba(255, 196, 0, 0.45);
    background: rgba(255, 196, 0, 0.08);
}

.chartHud .pill.danger {
    border-color: rgba(255, 64, 64, 0.45);
    background: rgba(255, 64, 64, 0.08);
}

.err {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 64, 64, 0.25);
    background: rgba(26, 17, 17, 0.72);
    color: #ffd7d7;
    display: none;
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 6;
}

.parrot-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(6, 10, 16, 0.28);
    backdrop-filter: blur(2px);
    z-index: 600;
}

.parrot-drawer-backdrop[hidden] {
    display: none;
}

.parrot-drawer {
    position: fixed;
    left: 0;
    top: 92px;
    height: calc(100vh - 140px);
    width: 46vw;
    z-index: 700;
    transform: translateX(-104%);
    transition: transform 260ms cubic-bezier(.18, .9, .22, 1);
    pointer-events: none;
}

body.parrot-drawer-open .parrot-drawer {
    transform: translateX(0);
    pointer-events: auto;
}

.parrot-drawer-shell {
    height: 100%;
    border-radius: 0 18px 18px 0;
    background: rgba(9, 12, 18, 0.92);
    border: 1px solid rgba(0, 255, 209, 0.22);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.62),
                0 0 0 1px rgba(124, 92, 255, 0.18) inset,
                0 0 26px rgba(255, 36, 170, 0.10),
                0 0 34px rgba(0, 255, 209, 0.12);
    overflow: hidden;
    position: relative;
}

.parrot-drawer-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(1100px 520px at 15% 10%, rgba(0, 255, 209, 0.11), transparent 58%),
                radial-gradient(900px 460px at 85% 25%, rgba(124, 92, 255, 0.14), transparent 62%),
                radial-gradient(800px 360px at 65% 85%, rgba(255, 36, 170, 0.08), transparent 64%);
    opacity: 0.95;
    pointer-events: none;
    animation: parrotDrift 8.5s ease-in-out infinite;
}

.parrot-drawer-shell::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
                    to bottom,
                    rgba(255, 255, 255, 0.035),
                    rgba(255, 255, 255, 0.035) 1px,
                    rgba(0, 0, 0, 0) 3px,
                    rgba(0, 0, 0, 0) 6px
                );
    mix-blend-mode: overlay;
    opacity: 0.18;
    pointer-events: none;
    animation: parrotScan 2.4s linear infinite;
}

.parrot-drawer-metric {
    display: flex;
    gap: 6px;
    padding: 2px;
    border-radius: 12px;
    border: 1px solid rgba(124, 92, 255, 0.18);
    background: rgba(6, 10, 16, 0.55);
}

.parrot-drawer-metric-btn {
    border: 1px solid rgba(0, 255, 209, 0.12);
    background: rgba(8, 12, 18, 0.55);
    color: rgba(182, 195, 214, 0.85);
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    cursor: pointer;
    text-transform: uppercase;
}

.parrot-drawer-metric-btn.is-active {
    color: rgba(230, 237, 243, 0.98);
    border-color: rgba(0, 255, 209, 0.35);
    box-shadow: 0 0 14px rgba(124, 92, 255, 0.18), 0 0 18px rgba(0, 255, 209, 0.10);
    background: rgba(0, 255, 209, 0.08);
}

@keyframes parrotDrift {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
        filter: hue-rotate(0deg);
    }
    50% {
        transform: translate3d(-10px, 6px, 0) scale(1.01);
        filter: hue-rotate(8deg);
    }
    100% {
        transform: translate3d(0, 0, 0) scale(1);
        filter: hue-rotate(0deg);
    }
}

@keyframes parrotScan {
    0% {
        transform: translateY(-8px);
    }
    100% {
        transform: translateY(8px);
    }
}

.parrot-drawer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px 10px 16px;
    border-bottom: 1px solid rgba(124, 92, 255, 0.16);
    position: relative;
    z-index: 2;
}

.parrot-drawer-kicker {
    font-size: 11px;
    letter-spacing: 0.26em;
    color: rgba(182, 195, 214, 0.75);
}

.parrot-drawer-device {
    margin-top: 4px;
    font-size: 13px;
    color: rgba(230, 237, 243, 0.95);
}

.parrot-drawer-dot {
    margin: 0 8px;
    color: rgba(255, 36, 170, 0.85);
}

.parrot-drawer-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.parrot-drawer-select {
    background: rgba(6, 10, 16, 0.85);
    color: rgba(230, 237, 243, 0.95);
    border: 1px solid rgba(0, 255, 209, 0.22);
    border-radius: 12px;
    padding: 10px 12px;
}

.parrot-drawer-close {
    background: rgba(6, 10, 16, 0.85);
    color: rgba(255, 36, 170, 0.95);
    border: 1px solid rgba(255, 36, 170, 0.22);
    border-radius: 12px;
    padding: 10px 12px;
    cursor: pointer;
}

.parrot-drawer-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 12px 16px 10px 16px;
    position: relative;
    z-index: 2;
}

.parrot-drawer-kpi {
    background: rgba(10, 14, 22, 0.70);
    border: 1px solid rgba(0, 255, 209, 0.10);
    border-radius: 14px;
    padding: 10px 12px;
}

.parrot-drawer-kpi .v {
    font-size: 18px;
    font-weight: 750;
    letter-spacing: 0.2px;
    color: rgba(230, 237, 243, 0.95);
}

.parrot-drawer-kpi .l {
    margin-top: 4px;
    font-size: 11px;
    color: rgba(151, 166, 186, 0.85);
}

.parrot-drawer-panel {
    margin: 10px 16px 16px 16px;
    height: calc(100% - 152px);
    border-radius: 16px;
    border: 1px solid rgba(0, 255, 209, 0.14);
    background: rgba(8, 12, 18, 0.60);
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.parrot-drawer-panel canvas {
    width: 100%;
    height: 100%;
}

.parrot-map-card,
.parrot-map-section,
#parrot-map {
    position: relative;
    z-index: 1;
}

.parrot-admin-body {
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 16px;
    background: radial-gradient(circle at top, #10172f 0%, #050814 55%, #020308 100%);
}

.parrot-admin-page {
    max-width: 1200px;
    height: auto;
    min-height: 0;
}

.parrot-admin-header {
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.parrot-admin-main {
    padding: 12px 18px 18px;
}

.parrot-admin-messages {
    margin-bottom: 10px;
}

.parrot-alert {
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 6px;
}

.parrot-alert-success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.6);
    color: #bbf7d0;
}

.parrot-alert-error {
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.7);
    color: #fecaca;
}

.parrot-admin-table-section {
    margin-top: 4px;
}

.parrot-admin-table-shell {
    border-radius: 16px;
    background: radial-gradient(circle at bottom, rgba(15, 23, 42, 0.9), rgba(6, 10, 25, 0.96));
    border: 1px solid rgba(148, 163, 184, 0.35);
    overflow: hidden;
}

.parrot-admin-table-wrapper {
    max-height: 540px;
    overflow: auto;
}

.parrot-admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.parrot-admin-table thead {
    background: rgba(15, 23, 42, 0.95);
}

.parrot-admin-table th,
.parrot-admin-table td {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(30, 64, 175, 0.35);
    text-align: left;
}

.parrot-admin-table th {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 11px;
    color: #9ca3af;
}

.parrot-admin-table tr:nth-child(even) td {
    background: rgba(15, 23, 42, 0.85);
}

.parrot-admin-empty {
    text-align: center;
    padding: 18px 10px;
    color: #9ca3af;
}

.parrot-input {
    width: 100%;
    padding: 4px 6px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    font-size: 12px;
}

.parrot-input::placeholder {
    color: rgba(148, 163, 184, 0.7);
}

.parrot-input:focus {
    outline: none;
    border-color: rgba(72, 224, 164, 0.8);
    box-shadow: 0 0 0 1px rgba(72, 224, 164, 0.4);
}

.parrot-button {
    border-radius: 999px;
    border: 1px solid rgba(72, 224, 164, 0.7);
    background: radial-gradient(circle at top, rgba(72, 224, 164, 0.25), transparent);
    color: #e5f9f0;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: pointer;
}

.parrot-button-sm {
    padding: 4px 10px;
}

.parrot-button:hover {
    background: radial-gradient(circle at top, rgba(72, 224, 164, 0.35), transparent);
}

.parrot-admin-device-id {
    font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 11px;
    color: #9ca3af;
}

.parrot-admin-last-seen {
    font-size: 11px;
    color: #9ca3af;
    white-space: nowrap;
}

.parrot-admin-footer-links {
    margin-top: 10px;
    font-size: 13px;
}

.parrot-link {
    color: #a5b4fc;
    text-decoration: none;
}

.parrot-link:hover {
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .parrot-devices-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    body {
        padding: 8px;
    }

    .parrot-page {
        border-radius: 18px;
    }

    .parrot-devices-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .parrot-map-section {
        flex-basis: 220px;
    }

    .parrot-title {
        font-size: 32px;
    }
}

@media (max-width: 640px) {
    .parrot-drawer {
        top: 78px;
        height: calc(100vh - 110px);
        width: 94vw;
    }

    .parrot-drawer-kpis {
        grid-template-columns: repeat(2, 1fr);
    }
}
