/* =========================================================
   CLOUDSAGE DESIGN SYSTEM
========================================================= */

:root {
    --body-text: #1e293b;
    --muted-text: #64748b;

    --panel-bg: rgba(255, 255, 255, 0.84);
    --panel-solid: #ffffff;

    --panel-border: rgba(255, 255, 255, 0.72);
    --soft-border: #e7eaf2;

    --title-gradient:
        linear-gradient(
            90deg,
            #7c3aed,
            #d946ef,
            #f97316
        );

    --purple: #8b5cf6;
    --violet: #7c3aed;
    --pink: #ec4899;
    --orange: #f97316;
    --amber: #f59e0b;
    --green: #10b981;
    --cyan: #06b6d4;
    --rose: #f43f5e;
    --indigo: #6366f1;

    --shadow:
        0 14px 38px
        rgba(56, 33, 110, 0.09);

    --shadow-hover:
        0 24px 55px
        rgba(56, 33, 110, 0.18);

    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
}


/* =========================================================
   DARK THEME
========================================================= */

body.dark-theme {
    --body-text: #f1f5f9;
    --muted-text: #aab4c5;

    --panel-bg:
        rgba(22, 27, 40, 0.83);

    --panel-solid:
        #181d2a;

    --panel-border:
        rgba(255, 255, 255, 0.07);

    --soft-border:
        rgba(255, 255, 255, 0.08);

    --shadow:
        0 16px 40px
        rgba(0, 0, 0, 0.30);

    --shadow-hover:
        0 28px 65px
        rgba(0, 0, 0, 0.52);
}


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;

    font-family:
        Inter,
        "Segoe UI",
        Arial,
        sans-serif;

    color:
        var(--body-text);

    background:
        #dfe9f6;

    transition:
        background 0.35s ease,
        color 0.35s ease;
}


/* =========================================================
   CLOUD BLUE ANIMATED BACKGROUND
========================================================= */

.background-scene {
    position: fixed;

    inset: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;

    z-index: -10;

    background:

        radial-gradient(
            circle at 15% 12%,
            rgba(255, 255, 255, 0.78),
            transparent 27%
        ),

        radial-gradient(
            circle at 85% 18%,
            rgba(186, 230, 253, 0.65),
            transparent 31%
        ),

        radial-gradient(
            circle at 56% 78%,
            rgba(147, 197, 253, 0.36),
            transparent 32%
        ),

        linear-gradient(
            135deg,
            #f0faff 0%,
            #dff4ff 14%,
            #c3eaff 32%,
            #9bd8fb 52%,
            #6fc1ef 72%,
            #459fe0 87%,
            #2f80cc 100%
        );
}


/* =========================================================
   DARK CLOUD SKY
========================================================= */

body.dark-theme .background-scene {
    background:

        radial-gradient(
            circle at 16% 10%,
            rgba(56, 189, 248, 0.17),
            transparent 30%
        ),

        radial-gradient(
            circle at 82% 25%,
            rgba(59, 130, 246, 0.17),
            transparent 33%
        ),

        radial-gradient(
            circle at 55% 80%,
            rgba(14, 165, 233, 0.10),
            transparent 32%
        ),

        linear-gradient(
            135deg,
            #020617 0%,
            #07162c 20%,
            #0d2748 42%,
            #123b66 63%,
            #105184 82%,
            #075985 100%
        );
}


/* =========================================================
   BACKGROUND GLOW
========================================================= */

.background-glow {
    position: absolute;

    border-radius: 50%;

    filter:
        blur(95px);

    opacity: 0.42;
}


.glow-one {
    width: 430px;
    height: 430px;

    top: -145px;
    left: -95px;

    background:
        rgba(186, 230, 253, 0.74);
}


.glow-two {
    width: 500px;
    height: 500px;

    top: 28%;
    right: -210px;

    background:
        rgba(96, 165, 250, 0.44);
}


.glow-three {
    width: 390px;
    height: 390px;

    bottom: -145px;
    left: 28%;

    background:
        rgba(14, 165, 233, 0.30);
}


/* =========================================================
   MOVING CLOUDS
========================================================= */

.cloud {
    position: absolute;

    width: 220px;
    height: 64px;

    border-radius:
        100px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.94),
            rgba(239, 249, 255, 0.90),
            rgba(207, 235, 252, 0.82),
            rgba(174, 221, 250, 0.74)
        );

    box-shadow:
        0 16px 40px
        rgba(56, 189, 248, 0.18);

    filter:
        blur(0.2px);

    opacity: 0.82;
}


.cloud::before,
.cloud::after,
.cloud span {
    content: "";

    position: absolute;

    border-radius:
        50%;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.97),
            rgba(239, 249, 255, 0.92),
            rgba(207, 235, 252, 0.82),
            rgba(174, 221, 250, 0.74)
        );
}


.cloud::before {
    width: 94px;
    height: 94px;

    left: 30px;
    top: -48px;
}


.cloud::after {
    width: 118px;
    height: 118px;

    right: 24px;
    top: -60px;
}


.cloud span:nth-child(1) {
    width: 76px;
    height: 76px;

    left: 90px;
    top: -39px;
}


.cloud span:nth-child(2) {
    width: 58px;
    height: 58px;

    right: -3px;
    top: 4px;
}


/* =========================================================
   DARK MODE CLOUDS
========================================================= */

body.dark-theme .cloud {
    background:
        linear-gradient(
            135deg,
            rgba(186, 230, 253, 0.16),
            rgba(125, 211, 252, 0.12),
            rgba(59, 130, 246, 0.09),
            rgba(30, 64, 175, 0.07)
        );

    box-shadow:
        0 14px 36px
        rgba(56, 189, 248, 0.08);

    opacity: 0.72;
}


body.dark-theme .cloud::before,
body.dark-theme .cloud::after,
body.dark-theme .cloud span {
    background:
        linear-gradient(
            135deg,
            rgba(186, 230, 253, 0.16),
            rgba(125, 211, 252, 0.12),
            rgba(59, 130, 246, 0.08)
        );
}


/* =========================================================
   CLOUD POSITIONS + SPEED
========================================================= */

.cloud-one {
    top: 10%;
    left: -300px;

    transform:
        scale(0.78);

    animation:
        cloudMove 65s
        linear infinite;
}


.cloud-two {
    top: 33%;
    left: -340px;

    transform:
        scale(1.16);

    animation:
        cloudMove 88s
        linear infinite;

    animation-delay:
        -28s;
}


.cloud-three {
    top: 61%;
    left: -300px;

    transform:
        scale(0.83);

    animation:
        cloudMove 74s
        linear infinite;

    animation-delay:
        -52s;
}


.cloud-four {
    top: 82%;
    left: -370px;

    transform:
        scale(1.03);

    animation:
        cloudMove 103s
        linear infinite;

    animation-delay:
        -72s;
}


@keyframes cloudMove {
    from {
        left: -400px;
    }

    to {
        left:
            calc(100% + 400px);
    }
}


/* =========================================================
   DASHBOARD WRAPPER
========================================================= */

.dashboard {
    width: 94%;

    max-width:
        1480px;

    margin:
        0 auto;

    padding:
        26px 0 46px;
}


/* =========================================================
   HOVER EFFECT
========================================================= */

.hover-lift {
    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        border-color 0.28s ease;
}


.hover-lift:hover {
    transform:
        translateY(-7px)
        scale(1.025);

    box-shadow:
        var(--shadow-hover);

    z-index: 5;
}


/* =========================================================
   GENERAL PANELS
========================================================= */

.panel {
    position: relative;

    overflow: hidden;

    background:
        var(--panel-bg);

    border:
        1px solid
        var(--panel-border);

    border-radius:
        var(--radius-xl);

    box-shadow:
        var(--shadow);

    backdrop-filter:
        blur(19px);

    -webkit-backdrop-filter:
        blur(19px);
}


/* =========================================================
   TOP HEADER
========================================================= */

.top-header {
    position: relative;

    z-index: 30;

    display: flex;

    align-items: center;

    justify-content:
        space-between;

    gap: 24px;

    margin-bottom:
        22px;
}


.brand-area {
    display: flex;

    align-items: center;

    gap: 15px;
}


.brand-logo {
    width: 56px;
    height: 56px;

    border-radius:
        18px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: white;

    font-size: 25px;

    font-weight: 900;

    background:
        linear-gradient(
            135deg,
            #7c3aed,
            #ec4899,
            #f97316
        );

    box-shadow:
        0 10px 28px
        rgba(139, 92, 246, 0.26);
}


.brand-title-row {
    display: flex;

    align-items: center;

    gap: 12px;
}


.brand-title-row h1 {
    font-size: 34px;

    font-weight: 900;

    letter-spacing:
        -1.4px;

    background:
        var(--title-gradient);

    -webkit-background-clip:
        text;

    background-clip:
        text;

    color: transparent;
}


.brand-badge {
    padding:
        5px 9px;

    border-radius:
        100px;

    font-size: 8px;

    font-weight: 800;

    letter-spacing:
        1px;

    background:
        rgba(139, 92, 246, 0.12);

    color:
        var(--purple);
}


.brand-area p {
    margin-top: 2px;

    font-size: 12px;

    color:
        var(--muted-text);
}


.header-actions {
    display: flex;

    align-items: center;

    gap: 12px;
}


/* =========================================================
   LIVE INDICATOR
========================================================= */

.live-indicator {
    display: flex;

    align-items: center;

    gap: 9px;

    padding:
        11px 15px;

    border-radius:
        100px;

    font-size: 11px;

    font-weight: 700;

    background:
        var(--panel-bg);

    border:
        1px solid
        var(--panel-border);

    backdrop-filter:
        blur(15px);

    box-shadow:
        var(--shadow);
}


.live-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background:
        #22c55e;

    box-shadow:
        0 0 0 5px
        rgba(34, 197, 94, 0.12);

    animation:
        livePulse 2s
        ease-in-out infinite;
}


@keyframes livePulse {
    0%,
    100% {
        transform:
            scale(1);
    }

    50% {
        transform:
            scale(1.35);
    }
}


/* =========================================================
   THEME TOGGLE
========================================================= */

.theme-toggle {
    border: none;

    outline: none;

    cursor: pointer;

    display: flex;

    align-items: center;

    gap: 8px;

    min-width: 94px;

    justify-content:
        center;

    padding:
        11px 16px;

    border-radius:
        100px;

    color:
        var(--body-text);

    background:
        var(--panel-bg);

    border:
        1px solid
        var(--panel-border);

    box-shadow:
        var(--shadow);

    backdrop-filter:
        blur(16px);

    font-size: 11px;

    font-weight: 700;

    transition:
        all 0.25s ease;
}


.theme-toggle:hover {
    transform:
        translateY(-2px);
}


#themeIcon {
    width: 21px;
    height: 21px;

    display: flex;

    align-items: center;

    justify-content:
        center;

    border-radius:
        50%;

    color: white;

    background:
        linear-gradient(
            135deg,
            #8b5cf6,
            #ec4899
        );
}


/* =========================================================
   HERO PANEL
========================================================= */

.hero-panel {
    position: relative;

    min-height:
        280px;

    display: grid;

    grid-template-columns:
        1.5fr 0.7fr;

    align-items:
        center;

    gap: 30px;

    overflow: hidden;

    padding:
        38px 45px;

    margin-bottom:
        22px;

    border-radius:
        30px;

    background:
        linear-gradient(
            120deg,
            rgba(255,255,255,0.89),
            rgba(245,250,255,0.84),
            rgba(240,248,255,0.80)
        );

    border:
        1px solid
        rgba(255,255,255,0.70);

    box-shadow:
        var(--shadow);

    backdrop-filter:
        blur(22px);
}


body.dark-theme .hero-panel {
    background:
        linear-gradient(
            120deg,
            rgba(15,23,42,0.88),
            rgba(20,31,52,0.88),
            rgba(18,42,68,0.84)
        );

    border:
        1px solid
        rgba(255,255,255,0.06);
}


.hero-panel::after {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    top: -210px;
    right: -100px;

    border-radius:
        50%;

    background:
        radial-gradient(
            circle,
            rgba(56,189,248,0.18),
            rgba(139,92,246,0.10),
            transparent 68%
        );
}


.eyebrow {
    color:
        var(--purple);

    font-size: 10px;

    font-weight: 900;

    letter-spacing:
        2px;

    margin-bottom:
        12px;
}


.hero-content h2 {
    max-width:
        720px;

    font-size:
        clamp(
            34px,
            4vw,
            58px
        );

    line-height: 1.04;

    letter-spacing:
        -2px;

    font-weight: 900;
}


.hero-content h2 span {
    background:
        linear-gradient(
            90deg,
            #06b6d4,
            #8b5cf6,
            #ec4899,
            #f97316
        );

    -webkit-background-clip:
        text;

    background-clip:
        text;

    color: transparent;
}


.hero-description {
    max-width:
        650px;

    margin-top:
        18px;

    color:
        var(--muted-text);

    line-height:
        1.7;

    font-size:
        13px;
}


.hero-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top:
        22px;
}


.hero-tags span {
    padding:
        7px 11px;

    border-radius:
        100px;

    font-size: 9px;

    font-weight: 700;

    color:
        var(--body-text);

    background:
        rgba(255,255,255,0.48);

    border:
        1px solid
        var(--soft-border);
}


body.dark-theme .hero-tags span {
    background:
        rgba(255,255,255,0.04);
}


/* =========================================================
   HERO VISUAL
========================================================= */

.hero-visual {
    position: relative;

    height: 210px;

    display: flex;

    align-items: center;

    justify-content: center;
}


.hero-cloud-icon {
    position: relative;

    z-index: 2;

    width: 104px;
    height: 104px;

    border-radius:
        32px;

    display: flex;

    align-items: center;

    justify-content:
        center;

    color: white;

    background:
        linear-gradient(
            135deg,
            #06b6d4,
            #6366f1,
            #8b5cf6,
            #ec4899
        );

    box-shadow:
        0 20px 55px
        rgba(79,70,229,0.28);

    animation:
        heroFloat 4s
        ease-in-out infinite;
}


.hero-c {
    font-size: 43px;

    font-weight: 900;
}


@keyframes heroFloat {
    0%,
    100% {
        transform:
            translateY(0);
    }

    50% {
        transform:
            translateY(-11px);
    }
}


.orbit {
    position: absolute;

    border-radius: 50%;

    border:
        1px dashed
        rgba(139,92,246,0.30);
}


.orbit-one {
    width: 180px;
    height: 180px;

    animation:
        rotateOrbit 15s
        linear infinite;
}


.orbit-two {
    width: 230px;
    height: 230px;

    border-color:
        rgba(6,182,212,0.24);

    animation:
        rotateOrbit 24s
        linear infinite reverse;
}


@keyframes rotateOrbit {
    to {
        transform:
            rotate(360deg);
    }
}


.floating-tag {
    position: absolute;

    z-index: 3;

    padding:
        7px 10px;

    border-radius:
        10px;

    font-size: 9px;

    font-weight: 900;

    color: white;

    box-shadow:
        0 7px 20px
        rgba(0,0,0,0.12);
}


.tag-one {
    top: 25px;
    left: 14px;

    background:
        #f97316;
}


.tag-two {
    bottom: 15px;
    right: 20px;

    background:
        #8b5cf6;
}


.tag-three {
    top: 30px;
    right: 4px;

    background:
        #10b981;
}


/* =========================================================
   COMMON SECTION HEADINGS
========================================================= */

.section-heading {
    display: flex;

    justify-content:
        space-between;

    align-items:
        flex-start;

    gap: 15px;

    margin-bottom:
        20px;
}


.section-heading h2,
.section-title-row h2 {
    margin-top: 4px;

    font-size: 20px;

    letter-spacing:
        -0.45px;
}


.section-label {
    font-size: 9px;

    letter-spacing:
        1.6px;

    font-weight: 900;

    color:
        var(--purple);
}


.section-title-row {
    display: flex;

    align-items: center;

    justify-content:
        space-between;

    margin-bottom:
        14px;
}


.refresh-note {
    font-size: 10px;

    color:
        var(--muted-text);
}


/* =========================================================
   TEAM + CLOUD GRID
========================================================= */

.top-grid {
    display: grid;

    grid-template-columns:
        320px 1fr;

    gap: 22px;

    margin-bottom:
        28px;
}


/* =========================================================
   TEAM CARD
========================================================= */

.team-card {
    padding:
        24px;
}


.team-symbol {
    width: 44px;
    height: 44px;

    border-radius:
        14px;

    display: flex;

    align-items: center;

    justify-content:
        center;

    color: white;

    font-size: 12px;

    font-weight: 900;

    background:
        linear-gradient(
            135deg,
            #ec4899,
            #f97316
        );

    box-shadow:
        0 9px 22px
        rgba(236,72,153,0.22);
}


.team-subtitle {
    margin-bottom:
        18px;

    color:
        var(--muted-text);

    font-size:
        11px;
}


.team-members {
    display: flex;

    flex-direction:
        column;

    gap: 11px;
}


.member {
    display: flex;

    align-items: center;

    gap: 12px;

    padding: 12px;

    border-radius:
        14px;

    background:
        rgba(255,255,255,0.42);

    border:
        1px solid
        var(--soft-border);

    transition:
        all 0.24s ease;
}


body.dark-theme .member {
    background:
        rgba(255,255,255,0.025);
}


.member:hover {
    transform:
        translateX(5px);

    background:
        rgba(139,92,246,0.07);
}


.member-avatar {
    width: 37px;
    height: 37px;

    flex-shrink: 0;

    border-radius:
        12px;

    display: flex;

    align-items: center;

    justify-content:
        center;

    color: white;

    font-size: 12px;

    font-weight: 900;
}


.avatar-one {
    background:
        linear-gradient(
            135deg,
            #f97316,
            #f59e0b
        );
}


.avatar-two {
    background:
        linear-gradient(
            135deg,
            #8b5cf6,
            #ec4899
        );
}


.avatar-three {
    background:
        linear-gradient(
            135deg,
            #06b6d4,
            #10b981
        );
}


.member-info {
    min-width: 0;
}


.member-info strong {
    display: block;

    font-size: 11px;
}


.member-info span {
    display: block;

    margin-top: 2px;

    font-size: 9px;

    color:
        var(--muted-text);
}


/* =========================================================
   CLOUD RESOURCE INFORMATION
========================================================= */

.cloud-panel {
    padding:
        25px;
}


.aws-badge {
    display: flex;

    align-items: center;

    gap: 7px;

    padding:
        8px 13px;

    border-radius:
        100px;

    color:
        var(--body-text);

    background:
        rgba(249,115,22,0.09);

    border:
        1px solid
        rgba(249,115,22,0.18);

    font-size: 9px;

    font-weight: 800;
}


.aws-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background:
        #f97316;
}


.cloud-info-grid {
    display: grid;

    grid-template-columns:
        repeat(4,1fr);

    gap: 12px;
}


.info-item {
    min-height:
        78px;

    padding:
        15px;

    border-radius:
        14px;

    background:
        rgba(255,255,255,0.40);

    border:
        1px solid
        var(--soft-border);

    transition:
        all 0.23s ease;
}


body.dark-theme .info-item {
    background:
        rgba(255,255,255,0.025);
}


.info-item:hover {
    transform:
        translateY(-4px);

    border-color:
        rgba(139,92,246,0.25);
}


.info-label {
    display: block;

    margin-bottom:
        7px;

    color:
        var(--muted-text);

    font-size:
        9px;
}


.info-item strong {
    display: block;

    overflow-wrap:
        anywhere;

    font-size:
        12px;
}


.suggested-info {
    background:
        linear-gradient(
            135deg,
            rgba(6,182,212,0.10),
            rgba(139,92,246,0.09)
        );

    border-color:
        rgba(99,102,241,0.24);
}


.suggested-info strong {
    color:
        var(--purple);
}


.active-text {
    color:
        #16a34a;
}


/* =========================================================
   METRICS
========================================================= */

.metric-section {
    margin-bottom:
        28px;
}


.metrics-grid {
    display: grid;

    grid-template-columns:
        repeat(5,1fr);

    gap: 14px;
}


.metric-card {
    position: relative;

    overflow: hidden;

    min-height:
        156px;

    padding:
        18px;

    border-radius:
        20px;

    background:
        var(--panel-bg);

    border:
        1px solid
        var(--panel-border);

    backdrop-filter:
        blur(17px);

    box-shadow:
        var(--shadow);
}


.metric-card::before {
    content: "";

    position: absolute;

    width: 95px;
    height: 95px;

    border-radius:
        50%;

    top: -42px;
    right: -30px;

    opacity: 0.22;
}


.cpu-card::before {
    background:
        #f97316;
}

.memory-card::before {
    background:
        #8b5cf6;
}

.disk-card::before {
    background:
        #10b981;
}

.upload-card::before {
    background:
        #ec4899;
}

.download-card::before {
    background:
        #06b6d4;
}


.metric-top {
    display: flex;

    align-items: center;

    justify-content:
        space-between;

    margin-bottom:
        20px;
}


.metric-icon {
    width: 43px;
    height: 43px;

    display: flex;

    align-items: center;

    justify-content:
        center;

    border-radius:
        14px;

    font-size: 9px;

    font-weight: 900;
}


.cpu-card .metric-icon {
    color:
        #ea580c;

    background:
        rgba(249,115,22,0.11);
}


.memory-card .metric-icon {
    color:
        #7c3aed;

    background:
        rgba(139,92,246,0.11);
}


.disk-card .metric-icon {
    color:
        #059669;

    background:
        rgba(16,185,129,0.11);
}


.upload-card .metric-icon {
    color:
        #db2777;

    background:
        rgba(236,72,153,0.11);
}


.download-card .metric-icon {
    color:
        #0891b2;

    background:
        rgba(6,182,212,0.11);
}


.network-icon {
    font-size:
        20px;
}


.metric-state {
    font-size: 8px;

    font-weight: 800;

    color:
        #16a34a;
}


.metric-name {
    font-size: 10px;

    color:
        var(--muted-text);
}


.metric-card h3 {
    margin-top: 6px;

    font-size: 25px;

    letter-spacing:
        -0.7px;
}


.metric-decoration {
    width: 35%;

    height: 3px;

    margin-top: 15px;

    border-radius:
        100px;
}


.cpu-card .metric-decoration {
    background:
        #f97316;
}

.memory-card .metric-decoration {
    background:
        #8b5cf6;
}

.disk-card .metric-decoration {
    background:
        #10b981;
}

.upload-card .metric-decoration {
    background:
        #ec4899;
}

.download-card .metric-decoration {
    background:
        #06b6d4;
}


/* =========================================================
   CHARTS
========================================================= */

.chart-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 22px;

    margin-bottom:
        28px;
}


.chart-panel {
    padding:
        23px;
}


.chart-container {
    height:
        300px;
}


.chart-badge {
    width: 43px;
    height: 43px;

    border-radius:
        13px;

    display: flex;

    align-items: center;

    justify-content:
        center;

    font-size: 9px;

    font-weight: 900;
}


.cpu-chart-badge {
    color:
        #ea580c;

    background:
        rgba(249,115,22,0.10);
}


.memory-chart-badge {
    color:
        #7c3aed;

    background:
        rgba(139,92,246,0.10);
}


/* =========================================================
   ANALYSIS
========================================================= */

.analysis-grid {
    display: grid;

    grid-template-columns:
        0.9fr 1.35fr 1fr;

    gap: 22px;

    margin-bottom:
        28px;
}


.analysis-card {
    position: relative;

    padding:
        25px;
}


.analysis-card h2 {
    margin:
        4px 0 18px;

    font-size:
        18px;
}


.analysis-icon {
    position: absolute;

    top: 22px;
    right: 22px;

    width: 35px;
    height: 35px;

    display: flex;

    align-items: center;

    justify-content:
        center;

    border-radius:
        11px;

    font-weight:
        900;
}


.status-analysis-icon {
    color:
        #16a34a;

    background:
        rgba(34,197,94,0.11);
}


.recommendation-icon {
    color:
        #7c3aed;

    background:
        rgba(139,92,246,0.11);
}


.cost-icon {
    color:
        #d97706;

    background:
        rgba(245,158,11,0.12);
}


/* =========================================================
   STATUS
========================================================= */

.status-display {
    min-height:
        80px;

    display: flex;

    align-items: center;

    justify-content:
        center;

    gap: 10px;

    border-radius:
        15px;

    margin-bottom:
        14px;

    background:
        rgba(255,255,255,0.35);

    border:
        1px solid
        var(--soft-border);
}


body.dark-theme .status-display {
    background:
        rgba(255,255,255,0.025);
}


.status-dot {
    width: 9px;
    height: 9px;

    border-radius:
        50%;

    background:
        currentColor;
}


#status {
    font-size:
        20px;

    font-weight:
        900;
}


.average-mini {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 9px;
}


.average-mini div {
    padding:
        11px;

    text-align:
        center;

    border-radius:
        12px;

    background:
        rgba(139,92,246,0.05);
}


.average-mini span {
    display: block;

    font-size: 8px;

    color:
        var(--muted-text);
}


.average-mini strong {
    display: block;

    margin-top:
        5px;

    font-size:
        13px;
}


/* =========================================================
   RECOMMENDATION
========================================================= */

.recommendation-card {
    background:
        linear-gradient(
            145deg,
            var(--panel-bg),
            rgba(139,92,246,0.06)
        );
}


.recommendation-message {
    position: relative;

    display: flex;

    overflow: hidden;

    border-radius:
        14px;

    background:
        rgba(255,255,255,0.38);

    border:
        1px solid
        var(--soft-border);
}


body.dark-theme .recommendation-message {
    background:
        rgba(255,255,255,0.025);
}


.recommendation-accent {
    width: 5px;

    flex-shrink: 0;

    background:
        linear-gradient(
            #06b6d4,
            #8b5cf6,
            #ec4899,
            #f97316
        );
}


.recommendation-text {
    padding:
        15px;

    line-height:
        1.65;

    font-size:
        12px;

    color:
        var(--muted-text);
}


.recommendation-footer {
    margin-top:
        12px;

    font-size:
        8px;

    color:
        var(--muted-text);
}


/* =========================================================
   COST
========================================================= */

.cost-note {
    margin-bottom:
        12px;

    color:
        var(--muted-text);

    font-size:
        8px;
}


.cost-list {
    display: flex;

    flex-direction:
        column;
}


.cost-list > div {
    display: flex;

    align-items: center;

    justify-content:
        space-between;

    gap: 15px;

    padding:
        9px 0;

    border-bottom:
        1px solid
        var(--soft-border);
}


.cost-list > div:last-child {
    border-bottom:
        none;
}


.cost-list span {
    font-size:
        10px;

    color:
        var(--muted-text);
}


.cost-list strong {
    font-size:
        11px;

    color:
        var(--body-text);
}


.saving-row strong {
    color:
        #16a34a;
}


.additional-row strong {
    color:
        #ef4444;
}


/* =========================================================
   AI PANEL
========================================================= */

.ai-panel {
    display: grid;

    grid-template-columns:
        330px 1fr;

    align-items:
        center;

    gap: 28px;

    padding:
        28px;

    margin-bottom:
        28px;

    background:
        linear-gradient(
            120deg,
            var(--panel-bg),
            rgba(6,182,212,0.06),
            rgba(139,92,246,0.07),
            rgba(236,72,153,0.05)
        );
}


.ai-left {
    display: flex;

    align-items: center;

    gap: 15px;
}


/* =========================================================
   AI BADGE
========================================================= */

.ai-logo-wrapper {
    width: 65px;
    height: 65px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content:
        center;

    border-radius:
        20px;

    background:
        linear-gradient(
            135deg,
            #06b6d4,
            #6366f1,
            #a855f7,
            #ec4899,
            #f97316
        );

    box-shadow:
        0 12px 30px
        rgba(99,102,241,0.28);

    position: relative;

    overflow: hidden;
}


.ai-logo-wrapper::before {
    content: "";

    position: absolute;

    width: 45px;
    height: 45px;

    border-radius:
        50%;

    background:
        rgba(255,255,255,0.16);

    top: -16px;
    right: -14px;
}


.ai-logo-text {
    position: relative;

    color: white;

    font-size:
        22px;

    font-weight:
        900;

    letter-spacing:
        1px;

    z-index: 1;
}


.ai-label {
    color:
        #8b5cf6;
}


.ai-left h2 {
    margin-top:
        4px;

    font-size:
        17px;
}


.ai-subtitle {
    max-width:
        230px;

    margin-top:
        5px;

    color:
        var(--muted-text);

    line-height:
        1.4;

    font-size:
        9px;
}


.ai-content {
    display: flex;

    align-items: center;

    gap: 18px;
}


.ai-response {
    flex: 1;

    min-height:
        86px;

    display: flex;

    align-items:
        center;

    padding:
        15px 17px;

    border-radius:
        15px;

    background:
        rgba(255,255,255,0.35);

    border:
        1px solid
        var(--soft-border);
}


body.dark-theme .ai-response {
    background:
        rgba(255,255,255,0.025);
}


.ai-response p {
    font-size:
        11px;

    line-height:
        1.6;

    color:
        var(--muted-text);
}


.ai-button {
    border: none;

    outline: none;

    white-space:
        nowrap;

    cursor:
        pointer;

    display: flex;

    align-items:
        center;

    gap: 7px;

    padding:
        12px 17px;

    border-radius:
        12px;

    color: white;

    font-size:
        10px;

    font-weight:
        800;

    background:
        linear-gradient(
            120deg,
            #06b6d4,
            #6366f1,
            #a855f7,
            #ec4899
        );

    box-shadow:
        0 9px 24px
        rgba(99,102,241,0.25);

    transition:
        all 0.25s ease;
}


.ai-button:hover {
    transform:
        translateY(-3px)
        scale(1.03);

    box-shadow:
        0 13px 30px
        rgba(99,102,241,0.33);
}


.button-sparkle {
    font-size:
        13px;
}


/* =========================================================
   HISTORY
========================================================= */

.history-panel {
    padding:
        26px;

    margin-bottom:
        22px;
}


.history-description {
    margin-top:
        4px;

    font-size:
        9px;

    color:
        var(--muted-text);
}


.history-badge {
    padding:
        7px 11px;

    border-radius:
        100px;

    font-size:
        8px;

    font-weight:
        800;

    color:
        var(--purple);

    background:
        rgba(139,92,246,0.08);

    border:
        1px solid
        rgba(139,92,246,0.13);
}


.table-wrapper {
    overflow-x:
        auto;

    border-radius:
        15px;

    border:
        1px solid
        var(--soft-border);
}


table {
    width: 100%;

    border-collapse:
        collapse;
}


thead {
    color: white;

    background:
        linear-gradient(
            90deg,
            #0891b2,
            #6366f1,
            #8b5cf6,
            #ec4899,
            #f97316
        );
}


th {
    padding:
        13px 11px;

    text-align:
        left;

    white-space:
        nowrap;

    font-size:
        9px;

    letter-spacing:
        0.4px;
}


td {
    padding:
        12px 11px;

    border-bottom:
        1px solid
        var(--soft-border);

    color:
        var(--muted-text);

    font-size:
        9px;
}


tbody tr {
    transition:
        background 0.20s ease;
}


tbody tr:hover {
    background:
        rgba(56,189,248,0.07);
}


tbody tr:last-child td {
    border-bottom:
        none;
}


.history-status {
    display:
        inline-block;

    padding:
        5px 8px;

    border-radius:
        100px;

    white-space:
        nowrap;

    font-size:
        7px;

    font-weight:
        900;
}


.history-optimal {
    color:
        #15803d;

    background:
        rgba(34,197,94,0.12);
}


.history-under {
    color:
        #b45309;

    background:
        rgba(245,158,11,0.13);
}


.history-over {
    color:
        #b91c1c;

    background:
        rgba(239,68,68,0.12);
}


.recommendation-cell {
    min-width:
        300px;

    line-height:
        1.5;
}


.saving-cell {
    color:
        #16a34a;

    font-weight:
        800;
}


/* =========================================================
   FOOTER
========================================================= */

footer {
    display: flex;

    align-items: center;

    justify-content:
        space-between;

    gap: 20px;

    padding:
        20px 4px;

    color:
        var(--muted-text);
}


.footer-brand {
    display: flex;

    align-items:
        center;

    gap: 10px;
}


.footer-logo {
    width: 34px;
    height: 34px;

    border-radius:
        11px;

    display: flex;

    align-items: center;

    justify-content:
        center;

    color: white;

    font-weight:
        900;

    background:
        linear-gradient(
            135deg,
            #06b6d4,
            #6366f1,
            #8b5cf6,
            #ec4899,
            #f97316
        );
}


.footer-brand strong {
    display: block;

    color:
        var(--body-text);

    font-size:
        11px;
}


.footer-brand span:not(.footer-logo) {
    display: block;

    margin-top:
        2px;

    font-size:
        8px;
}


footer > p {
    font-size:
        8px;
}


/* =========================================================
   RESPONSIVE - 1180px
========================================================= */

@media (max-width: 1180px) {

    .top-grid {
        grid-template-columns:
            1fr;
    }

    .cloud-info-grid {
        grid-template-columns:
            repeat(4,1fr);
    }

    .metrics-grid {
        grid-template-columns:
            repeat(3,1fr);
    }

    .analysis-grid {
        grid-template-columns:
            1fr 1fr;
    }

    .recommendation-card {
        grid-column:
            span 2;
    }

    .ai-panel {
        grid-template-columns:
            1fr;
    }
}


/* =========================================================
   RESPONSIVE - 900px
========================================================= */

@media (max-width: 900px) {

    .dashboard {
        width: 92%;
    }

    .top-header {
        align-items:
            flex-start;

        flex-direction:
            column;
    }

    .header-actions {
        width: 100%;

        justify-content:
            space-between;
    }

    .hero-panel {
        grid-template-columns:
            1fr;
    }

    .hero-visual {
        display:
            none;
    }

    .cloud-info-grid {
        grid-template-columns:
            repeat(2,1fr);
    }

    .chart-grid {
        grid-template-columns:
            1fr;
    }

    .analysis-grid {
        grid-template-columns:
            1fr;
    }

    .recommendation-card {
        grid-column:
            auto;
    }

    .ai-content {
        align-items:
            stretch;

        flex-direction:
            column;
    }

    .ai-button {
        justify-content:
            center;
    }
}


/* =========================================================
   RESPONSIVE - 650px
========================================================= */

@media (max-width: 650px) {

    .dashboard {
        padding-top:
            18px;
    }

    .brand-title-row {
        align-items:
            flex-start;

        flex-direction:
            column;

        gap:
            5px;
    }

    .brand-title-row h1 {
        font-size:
            28px;
    }

    .brand-badge {
        display:
            none;
    }

    .brand-area p {
        font-size:
            10px;
    }

    .live-indicator {
        font-size:
            9px;
    }

    .theme-toggle {
        font-size:
            9px;
    }

    .hero-panel {
        padding:
            28px 23px;
    }

    .hero-content h2 {
        font-size:
            37px;
    }

    .metrics-grid {
        grid-template-columns:
            1fr 1fr;
    }

    .cloud-info-grid {
        grid-template-columns:
            1fr;
    }

    .ai-left {
        align-items:
            flex-start;
    }

    .section-heading {
        flex-direction:
            column;
    }

    footer {
        align-items:
            flex-start;

        flex-direction:
            column;
    }
}


/* =========================================================
   RESPONSIVE - 430px
========================================================= */

@media (max-width: 430px) {

    .metrics-grid {
        grid-template-columns:
            1fr;
    }

    .average-mini {
        grid-template-columns:
            1fr;
    }

    .hero-content h2 {
        font-size:
            32px;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .cloud,
    .hero-cloud-icon,
    .orbit,
    .live-dot {
        animation:
            none !important;
    }

    .hover-lift,
    .member,
    .ai-button {
        transition:
            none !important;
    }
}
/* =========================================================
   USER PRIORITY MODE
========================================================= */

.priority-panel {
    position: relative;

    margin-top: 28px;

    padding: 28px;

    border-radius:
        var(--radius-xl);

    background:
        var(--panel-bg);

    border:
        1px solid
        var(--panel-border);

    box-shadow:
        var(--shadow);

    backdrop-filter:
        blur(18px);

    -webkit-backdrop-filter:
        blur(18px);

    overflow: hidden;
}


.priority-panel::before {
    content: "";

    position: absolute;

    width: 220px;
    height: 220px;

    top: -120px;
    right: -80px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(139, 92, 246, 0.18),
            transparent 70%
        );

    pointer-events: none;
}


.priority-layout {
    display: grid;

    grid-template-columns:
        minmax(260px, 0.9fr)
        minmax(320px, 1.7fr);

    gap: 22px;

    align-items: stretch;

    margin-top: 22px;
}


.priority-selector-box,
.priority-current-box {
    position: relative;

    padding: 20px;

    border-radius:
        var(--radius-lg);

    background:
        var(--panel-solid);

    border:
        1px solid
        var(--soft-border);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}


.priority-selector-box:hover,
.priority-current-box:hover {
    transform:
        translateY(-3px);

    box-shadow:
        var(--shadow);
}


.priority-label {
    display: block;

    margin-bottom: 10px;

    font-size: 14px;

    font-weight: 700;

    color:
        var(--body-text);
}


.priority-select-wrapper {
    position: relative;
}


.priority-select {
    width: 100%;

    appearance: none;

    -webkit-appearance: none;

    padding:
        15px 48px
        15px 16px;

    border-radius:
        14px;

    border:
        1px solid
        var(--soft-border);

    background:
        var(--panel-solid);

    color:
        var(--body-text);

    font-size:
        15px;

    font-weight:
        700;

    outline:
        none;

    cursor:
        pointer;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}


.priority-select:hover {
    border-color:
        var(--purple);
}


.priority-select:focus {
    border-color:
        var(--purple);

    box-shadow:
        0 0 0 4px
        rgba(139, 92, 246, 0.12);
}


.priority-select-wrapper::after {
    content: "▼";

    position: absolute;

    right: 17px;
    top: 50%;

    transform:
        translateY(-50%);

    font-size:
        11px;

    color:
        var(--purple);

    pointer-events:
        none;
}


.priority-mode-badge {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 10px;

    padding:
        6px 11px;

    border-radius:
        999px;

    background:
        rgba(139, 92, 246, 0.10);

    color:
        var(--purple);

    font-size:
        11px;

    font-weight:
        800;

    letter-spacing:
        0.08em;

    text-transform:
        uppercase;
}


.priority-mode-badge::before {
    content: "";

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background:
        var(--purple);

    box-shadow:
        0 0 10px
        rgba(139, 92, 246, 0.65);
}


.priority-current-title {
    margin-bottom: 7px;

    font-size:
        20px;

    font-weight:
        800;

    color:
        var(--body-text);
}


.priority-description {
    margin: 0;

    color:
        var(--muted-text);

    font-size:
        14px;

    line-height:
        1.7;
}


.priority-option-row {
    display: flex;

    gap: 10px;

    flex-wrap: wrap;

    margin-top: 14px;
}


.priority-mini-tag {
    display: inline-flex;

    align-items: center;

    padding:
        6px 10px;

    border-radius:
        999px;

    background:
        rgba(99, 102, 241, 0.08);

    border:
        1px solid
        rgba(99, 102, 241, 0.16);

    color:
        var(--muted-text);

    font-size:
        11px;

    font-weight:
        700;
}


/* =========================================================
   PRIORITY MODE - DARK THEME
========================================================= */

body.dark-theme
.priority-selector-box,

body.dark-theme
.priority-current-box {

    background:
        rgba(18, 24, 38, 0.82);

    border-color:
        rgba(255, 255, 255, 0.08);
}


body.dark-theme
.priority-select {

    background:
        #171d2b;

    border-color:
        rgba(255, 255, 255, 0.09);

    color:
        #f1f5f9;
}


body.dark-theme
.priority-select option {

    background:
        #171d2b;

    color:
        #f1f5f9;
}


body.dark-theme
.priority-mode-badge {

    background:
        rgba(167, 139, 250, 0.12);

    color:
        #c4b5fd;
}


body.dark-theme
.priority-description {

    color:
        #aab4c5;
}


/* =========================================================
   RESPONSIVE PRIORITY MODE
========================================================= */

@media (
    max-width: 850px
) {

    .priority-layout {

        grid-template-columns:
            1fr;

    }

}


@media (
    max-width: 520px
) {

    .priority-panel {

        padding:
            20px;

    }


    .priority-selector-box,
    .priority-current-box {

        padding:
            16px;

    }


    .priority-current-title {

        font-size:
            18px;

    }

}
/* =========================================================
   CUSTOM PRIORITY DROPDOWN
========================================================= */

.custom-priority-dropdown {
    position: relative;
    width: 100%;
    margin-top: 8px;
}


.custom-priority-button {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 14px;

    padding: 15px 18px;

    border-radius: 16px;

    border:
        1px solid
        rgba(139, 92, 246, 0.28);

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.92),
            rgba(248, 250, 255, 0.88)
        );

    color:
        var(--body-text);

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 8px 22px
        rgba(76, 29, 149, 0.08);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.custom-priority-button:hover {
    transform:
        translateY(-2px);

    border-color:
        rgba(139, 92, 246, 0.60);

    box-shadow:
        0 12px 28px
        rgba(76, 29, 149, 0.13);
}


.priority-button-left {
    display: flex;
    align-items: center;
    gap: 12px;
}


.priority-button-icon {
    width: 34px;
    height: 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            rgba(124, 58, 237, 0.14),
            rgba(236, 72, 153, 0.12)
        );

    color:
        var(--purple);

    font-size: 17px;
    font-weight: 800;

    flex-shrink: 0;
}


.priority-arrow {
    font-size: 11px;

    color:
        var(--purple);

    transition:
        transform 0.25s ease;
}


.priority-arrow-open {
    transform:
        rotate(180deg);
}


/* =========================================================
   DROPDOWN MENU
========================================================= */

.priority-dropdown-menu {
    position: absolute;

    top: calc(100% + 10px);
    left: 0;
    right: 0;

    z-index: 1000;

    padding: 8px;

    border-radius: 16px;

    border:
        1px solid
        rgba(139, 92, 246, 0.20);

    background:
        rgba(255, 255, 255, 0.97);

    box-shadow:
        0 24px 60px
        rgba(30, 41, 59, 0.20);

    backdrop-filter:
        blur(16px);

    -webkit-backdrop-filter:
        blur(16px);

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(-8px)
        scale(0.98);

    transform-origin:
        top;

    transition:
        opacity 0.18s ease,
        visibility 0.18s ease,
        transform 0.18s ease;
}


.priority-menu-open {
    opacity: 1;

    visibility: visible;

    transform:
        translateY(0)
        scale(1);
}


/* =========================================================
   DROPDOWN OPTIONS
========================================================= */

.priority-dropdown-option {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 12px;

    padding: 13px 14px;

    border: none;

    border-radius: 12px;

    background:
        transparent;

    color:
        var(--body-text);

    text-align: left;

    cursor: pointer;

    transition:
        background 0.18s ease,
        transform 0.18s ease;
}


.priority-dropdown-option:hover {
    background:
        rgba(124, 58, 237, 0.08);

    transform:
        translateX(3px);
}


.priority-option-icon {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            rgba(139, 92, 246, 0.12),
            rgba(236, 72, 153, 0.10)
        );

    color:
        var(--purple);

    font-size: 16px;
    font-weight: 800;
}


.priority-dropdown-option div {
    display: flex;
    flex-direction: column;

    gap: 3px;
}


.priority-dropdown-option strong {
    font-size: 14px;

    color:
        var(--body-text);
}


.priority-dropdown-option small {
    font-size: 11px;

    color:
        var(--muted-text);
}


/* ACTIVE OPTION */

.priority-option-active {
    background:
        linear-gradient(
            135deg,
            rgba(124, 58, 237, 0.12),
            rgba(236, 72, 153, 0.08)
        );
}


.priority-option-active strong {
    color:
        var(--purple);
}


.priority-option-active .priority-option-icon {
    background:
        linear-gradient(
            135deg,
            #7c3aed,
            #ec4899
        );

    color:
        white;

    box-shadow:
        0 8px 18px
        rgba(124, 58, 237, 0.24);
}


/* =========================================================
   DARK THEME
========================================================= */

body.dark-theme
.custom-priority-button {

    background:
        linear-gradient(
            135deg,
            rgba(19, 27, 46, 0.96),
            rgba(14, 21, 38, 0.96)
        );

    border-color:
        rgba(167, 139, 250, 0.22);

    color:
        #f8fafc;

    box-shadow:
        0 10px 28px
        rgba(0, 0, 0, 0.25);
}


body.dark-theme
.custom-priority-button:hover {

    border-color:
        rgba(167, 139, 250, 0.58);

    box-shadow:
        0 14px 34px
        rgba(0, 0, 0, 0.35);
}


body.dark-theme
.priority-dropdown-menu {

    background:
        rgba(15, 23, 42, 0.98);

    border-color:
        rgba(167, 139, 250, 0.18);

    box-shadow:
        0 28px 70px
        rgba(0, 0, 0, 0.48);
}


body.dark-theme
.priority-dropdown-option {

    color:
        #f8fafc;
}


body.dark-theme
.priority-dropdown-option strong {

    color:
        #f8fafc;
}


body.dark-theme
.priority-dropdown-option small {

    color:
        #94a3b8;
}


body.dark-theme
.priority-dropdown-option:hover {

    background:
        rgba(139, 92, 246, 0.14);
}


body.dark-theme
.priority-option-active {

    background:
        linear-gradient(
            135deg,
            rgba(124, 58, 237, 0.22),
            rgba(236, 72, 153, 0.12)
        );
}


body.dark-theme
.priority-option-active strong {

    color:
        #c4b5fd;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 600px) {

    .custom-priority-button {

        padding:
            13px 14px;

    }


    .priority-dropdown-option {

        padding:
            11px 12px;

    }


    .priority-button-icon,
    .priority-option-icon {

        width:
            32px;

        height:
            32px;

    }

}
/* =========================================================
   FIX PRIORITY DROPDOWN CLIPPING
========================================================= */

.priority-panel,
.priority-layout,
.priority-selector-box,
.custom-priority-dropdown {
    overflow: visible !important;
}

.priority-dropdown-menu {
    z-index: 99999 !important;
}
/* =========================================================
   ACTIVE MODE RESULT
========================================================= */

.active-mode-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-top: 10px;
    margin-bottom: 14px;

    padding: 7px 12px;

    border-radius: 999px;

    background:
        rgba(139, 92, 246, 0.10);

    border:
        1px solid
        rgba(139, 92, 246, 0.18);

    font-size: 12px;

    color:
        var(--muted-text);
}


.active-mode-line strong {
    color:
        var(--purple);

    font-weight: 800;
}
/* =========================================================
   HISTORY PRIORITY MODE BADGES
========================================================= */

.history-priority {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 6px 10px;

    border-radius: 999px;

    font-size: 11px;
    font-weight: 800;

    white-space: nowrap;

    border: 1px solid transparent;

    letter-spacing: 0.02em;
}


/* BALANCED */

.priority-history-balanced {
    color: #7c3aed;

    background:
        rgba(124, 58, 237, 0.10);

    border-color:
        rgba(124, 58, 237, 0.20);
}


/* MAXIMUM SAVINGS */

.priority-history-savings {
    color: #10b981;

    background:
        rgba(16, 185, 129, 0.10);

    border-color:
        rgba(16, 185, 129, 0.20);
}


/* MAXIMUM PERFORMANCE */

.priority-history-performance {
    color: #f97316;

    background:
        rgba(249, 115, 22, 0.10);

    border-color:
        rgba(249, 115, 22, 0.20);
}


/* ENERGY EFFICIENT */

.priority-history-energy {
    color: #06b6d4;

    background:
        rgba(6, 182, 212, 0.10);

    border-color:
        rgba(6, 182, 212, 0.20);
}


/* =========================================================
   DARK THEME
========================================================= */

body.dark-theme
.priority-history-balanced {

    color: #c4b5fd;

    background:
        rgba(124, 58, 237, 0.16);

    border-color:
        rgba(167, 139, 250, 0.20);
}


body.dark-theme
.priority-history-savings {

    color: #6ee7b7;

    background:
        rgba(16, 185, 129, 0.14);

    border-color:
        rgba(110, 231, 183, 0.18);
}


body.dark-theme
.priority-history-performance {

    color: #fdba74;

    background:
        rgba(249, 115, 22, 0.14);

    border-color:
        rgba(253, 186, 116, 0.18);
}


body.dark-theme
.priority-history-energy {

    color: #67e8f9;

    background:
        rgba(6, 182, 212, 0.14);

    border-color:
        rgba(103, 232, 249, 0.18);
}
/* =========================================================
   AUTOMATIC OPTIMIZATION REPORT
========================================================= */

.report-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: 28px;
    padding: 28px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.report-panel::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    right: -90px;
    top: -90px;
    background: rgba(124, 58, 237, 0.08);
    pointer-events: none;
}

.report-left {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    flex: 1;
    position: relative;
    z-index: 2;
}

.report-icon {
    width: 58px;
    height: 58px;
    min-width: 58px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.06em;
    background: linear-gradient(
        135deg,
        rgba(124, 58, 237, 0.15),
        rgba(59, 130, 246, 0.12)
    );
    border: 1px solid rgba(124, 58, 237, 0.18);
    color: #7c3aed;
    box-shadow:
        0 12px 30px rgba(124, 58, 237, 0.12);
}

.report-left h2 {
    margin-top: 4px;
    margin-bottom: 8px;
}

.report-description {
    margin: 0;
    max-width: 650px;
    line-height: 1.7;
    font-size: 14px;
    color: var(--muted-text);
}

.report-actions {
    min-width: 330px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    position: relative;
    z-index: 2;
}

.report-info {
    width: 100%;
    text-align: right;
}

.report-info > span {
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted-text);
}

.report-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.report-tags span {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.14);
    color: #7c3aed;
}

.report-download-button {
    border: none;
    outline: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 270px;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 800;
    background: linear-gradient(
        135deg,
        #7c3aed,
        #4f46e5
    );
    color: #ffffff;
    box-shadow:
        0 14px 30px rgba(79, 70, 229, 0.22);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

.report-download-button:hover {
    transform: translateY(-2px);
    box-shadow:
        0 18px 38px rgba(79, 70, 229, 0.30);
    filter: brightness(1.04);
}

.report-download-button:active {
    transform: translateY(0);
}

.report-download-icon {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    font-size: 14px;
    font-weight: 900;
}


/* =========================================================
   REPORT - DARK THEME
========================================================= */

.dark-theme .report-panel {
    background:
        linear-gradient(
            135deg,
            rgba(15, 23, 42, 0.92),
            rgba(30, 41, 59, 0.88)
        );
}

.dark-theme .report-panel::before {
    background: rgba(167, 139, 250, 0.07);
}

.dark-theme .report-icon {
    color: #c4b5fd;
    background:
        linear-gradient(
            135deg,
            rgba(167, 139, 250, 0.14),
            rgba(96, 165, 250, 0.10)
        );
    border-color: rgba(167, 139, 250, 0.18);
}

.dark-theme .report-tags span {
    color: #c4b5fd;
    background: rgba(167, 139, 250, 0.10);
    border-color: rgba(167, 139, 250, 0.18);
}


/* =========================================================
   REPORT - RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .report-panel {
        flex-direction: column;
        align-items: stretch;
    }

    .report-actions {
        min-width: 0;
        width: 100%;
        align-items: stretch;
    }

    .report-info {
        text-align: left;
    }

    .report-tags {
        justify-content: flex-start;
    }

    .report-download-button {
        width: 100%;
        min-width: 0;
    }

}


@media (max-width: 600px) {

    .report-panel {
        padding: 22px;
    }

    .report-left {
        flex-direction: column;
    }

    .report-icon {
        width: 52px;
        height: 52px;
        min-width: 52px;
    }

}
