/* =========================================
   HS GROUP - ADMIN TO SHEET GENERATOR
   DARK BLUE / ELECTRIC BLUE THEME
========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');


/* =========================================
   ROOT VARIABLES
========================================= */

:root {

    --bg: #030914;

    --sidebar-bg: #020a15;

    --panel: rgba(7, 23, 42, 0.88);

    --panel-dark: rgba(4, 16, 31, 0.92);

    --border: rgba(40, 139, 255, 0.34);

    --border-hover: #168eff;

    --blue: #087bff;

    --blue-light: #168eff;

    --cyan: #20c9ff;

    --text: #edf5ff;

    --muted: #91a7c1;

    --green: #20dfa0;

    --red: #ff5e73;

    --yellow: #ffd477;

}


/* =========================================
   GLOBAL RESET
========================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {

    margin: 0;

    min-height: 100vh;

    padding: 55px 25px 30px;

    background:
        radial-gradient(
            ellipse at 75% 8%,
            #062958 0,
            transparent 32%
        ),
        radial-gradient(
            ellipse at 4% 85%,
            #031c3a 0,
            transparent 34%
        ),
        var(--bg);

    color: var(--text);

    font-family: 'Inter', Arial, sans-serif;

    font-size: 13px;

}

button,
textarea,
input,
select {
    font-family: inherit;
}

button {
    cursor: pointer;
}

h1,
h2,
p {
    margin: 0;
}


/* =========================================
   APP SHELL
========================================= */

.app-shell {

    position: relative;

    z-index: 1;

    width: 100%;

    max-width: 1500px;

    margin: 0 auto;

}


/* =========================================
   ANIMATED BACKGROUND
========================================= */

#sky {

    position: fixed;

    inset: 0;

    width: 100%;

    height: 100%;

    z-index: 0;

    pointer-events: none;

}


/* =========================================
   TOPBAR
========================================= */

.topbar {

    position: relative;

    display: flex;

    align-items: center;

    gap: 15px;

    min-height: 86px;

    padding: 18px 22px;

    margin-bottom: 22px;

    background: linear-gradient(
        135deg,
        rgba(11, 34, 58, 0.94),
        rgba(4, 16, 31, 0.96)
    );

    border: 1px solid var(--border);

    border-radius: 15px;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.35),
        inset 0 1px rgba(255, 255, 255, 0.04);

    backdrop-filter: blur(12px);

    -webkit-backdrop-filter: blur(12px);

}


/* =========================================
   BRAND ICON
========================================= */

.brand-mark {

    width: 52px;

    height: 52px;

    flex: 0 0 52px;

    border-radius: 13px;

    background: linear-gradient(
        145deg,
        #0b8bff,
        #0345b8
    );

    display: grid;

    place-items: center;

    color: white;

    font-size: 19px;

    font-weight: 800;

    box-shadow: 0 0 22px rgba(0, 123, 255, 0.5);

}


/* =========================================
   BRAND INFORMATION
========================================= */

.brand-info {

    min-width: 0;

}

.brand-info h1 {

    color: #ffffff;

    font-size: 23px;

    font-weight: 800;

    letter-spacing: -0.5px;

    margin-bottom: 7px;

}

.brand-info p {

    color: var(--muted);

    font-size: 11px;

    line-height: 1.6;

}


/* =========================================
   TOPBAR ACTIONS
========================================= */

.topbar-actions {

    display: flex;

    align-items: center;

    gap: 12px;

    margin-left: auto;

    flex-shrink: 0;

}


/* =========================================
   TOOL BADGE
========================================= */

.local-badge {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 9px 13px;

    border-radius: 8px;

    background: rgba(8, 123, 255, 0.12);

    border: 1px solid rgba(32, 201, 255, 0.45);

    color: #58baff;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1px;

    white-space: nowrap;

}


/* =========================================
   COMET TOGGLE BUTTON
========================================= */

.comet-toggle {

    width: 45px;

    height: 45px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 7px;

    background: #092342;

    border: 1px solid #168eff;

    border-radius: 11px;

    color: white;

    transition: 0.25s ease;

}

.comet-toggle:hover {

    background: #0b3768;

    border-color: #20c9ff;

    box-shadow: 0 0 18px rgba(0, 123, 255, 0.45);

}

.comet-icon {

    display: block;

    width: 31px;

    height: 31px;

    object-fit: contain;

    transition: 0.25s ease;

}

.comet-toggle.off {

    background: #111e2c;

    border-color: #34455b;

}

.comet-toggle.off .comet-icon {

    opacity: 0.35;

    filter: grayscale(1);

}


/* =========================================
   BACK TO DASHBOARD
========================================= */

.back-dashboard {

    position: absolute;

    top: -43px;

    right: 0;

    z-index: 10;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    padding: 10px 18px;

    background: #092342;

    border: 1px solid #168eff;

    border-radius: 8px;

    color: #dff4ff;

    text-decoration: none;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 0.7px;

    transition: 0.25s ease;

}

.back-dashboard:hover {

    color: white;

    background: linear-gradient(
        90deg,
        #0757c9,
        #047cff
    );

    border-color: #24aaff;

    box-shadow: 0 0 18px rgba(0, 123, 255, 0.4);

}


/* =========================================
   WORKSPACE GRID
========================================= */

.workspace {

    display: grid;

    grid-template-columns:
        minmax(320px, 0.86fr)
        minmax(520px, 1.5fr);

    gap: 18px;

    align-items: stretch;

}


/* =========================================
   PANELS
========================================= */

.panel {

    position: relative;

    min-width: 0;

    padding: 23px;

    background: linear-gradient(
        135deg,
        rgba(11, 34, 58, 0.88),
        rgba(4, 16, 31, 0.92)
    );

    border: 1px solid var(--border);

    border-radius: 15px;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.35),
        inset 0 1px rgba(255, 255, 255, 0.04);

    backdrop-filter: blur(12px);

    -webkit-backdrop-filter: blur(12px);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;

}

.panel:hover {

    border-color: rgba(40, 139, 255, 0.55);

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.35),
        0 0 18px rgba(0, 123, 255, 0.10);

}


/* =========================================
   PANEL HEADING
========================================= */

.panel-heading {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    margin-bottom: 22px;

}

.eyebrow {

    display: block;

    color: #49b7ff;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.5px;

    margin-bottom: 7px;

}

.panel-heading h2 {

    color: #edf5ff;

    font-size: 18px;

    font-weight: 800;

}


/* =========================================
   FORM LABEL
========================================= */

label {

    display: block;

    color: #b9cde1;

    font-size: 11px;

    font-weight: 600;

    margin-bottom: 10px;

}


/* =========================================
   TEXTAREA INPUT
========================================= */

textarea {

    width: 100%;

    height: 300px;

    min-height: 220px;

    resize: vertical;

    padding: 15px;

    background: #081a2d;

    border: 1px solid #31516d;

    border-radius: 10px;

    color: #edf5ff;

    font-family: Consolas, monospace;

    font-size: 12px;

    line-height: 1.7;

    outline: none;

    transition:
        border-color 0.2s,
        box-shadow 0.2s;

}

textarea:focus {

    border-color: #0b9dff;

    box-shadow: 0 0 0 3px rgba(8, 139, 255, 0.15);

}

textarea::placeholder {

    color: #7088a3;

}


/* =========================================
   BUTTON GROUP
========================================= */

.input-actions,
.output-actions {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: 15px;

}


/* =========================================
   BASE BUTTON
========================================= */

.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    padding: 11px 16px;

    border: 1px solid transparent;

    border-radius: 8px;

    font-size: 12px;

    font-weight: 700;

    white-space: nowrap;

    transition: 0.2s ease;

}

.btn:hover:not(:disabled) {

    transform: translateY(-1px);

    filter: brightness(1.12);

}

.btn:disabled {

    opacity: 0.4;

    cursor: not-allowed;

    transform: none;

}


/* =========================================
   PRIMARY BUTTON
========================================= */

.btn-primary {

    background: linear-gradient(
        90deg,
        #0868ed,
        #008fff
    );

    border-color: #279eff;

    color: white;

    box-shadow: 0 5px 16px rgba(0, 109, 255, 0.3);

}

.btn-primary:hover:not(:disabled) {

    box-shadow: 0 0 20px rgba(0, 123, 255, 0.55);

}

.btn-primary span {

    font-size: 17px;

    margin-left: 5px;

}


/* =========================================
   SUCCESS BUTTON
========================================= */

.btn-success {

    background: linear-gradient(
        90deg,
        #087bff,
        #20a8ff
    );

    border-color: #279eff;

    color: #ffffff;

    box-shadow: 0 5px 16px rgba(0, 109, 255, 0.3);

}

.btn-success:hover:not(:disabled) {

    box-shadow: 0 0 20px rgba(0, 123, 255, 0.5);

}


/* =========================================
   GHOST BUTTON
========================================= */

.btn-ghost {

    background: #0a2038;

    border-color: #2873a9;

    color: #dcefff;

}

.btn-ghost:hover:not(:disabled) {

    border-color: #28a9ff;

    background: #0d3154;

}


/* =========================================
   INPUT HINT
========================================= */

.hint {

    display: flex;

    align-items: flex-start;

    gap: 10px;

    margin-top: 18px;

    padding: 13px;

    background: rgba(6, 24, 42, 0.8);

    border: 1px solid #1d4c64;

    border-radius: 9px;

    color: #91a7c1;

    font-size: 11px;

    line-height: 1.7;

}

.hint b {

    color: #edf5ff;

}

.hint-icon {

    width: 19px;

    height: 19px;

    flex: 0 0 19px;

    border-radius: 50%;

    display: grid;

    place-items: center;

    background: #07356a;

    color: #49b7ff;

    font-size: 11px;

    font-weight: 800;

}


/* =========================================
   ROW COUNT BADGE
========================================= */

.count-pill {

    display: inline-flex;

    align-items: center;

    gap: 4px;

    padding: 8px 13px;

    background: #092342;

    border: 1px solid #2873a9;

    border-radius: 30px;

    color: #a9bdd2;

    font-size: 11px;

    white-space: nowrap;

}

.count-pill b {

    color: #20c9ff;

    font-size: 14px;

}


/* =========================================
   TABLE WRAPPER
========================================= */

.table-wrap {

    width: 100%;

    min-height: 300px;

    overflow: auto;

    background: rgba(6, 18, 33, 0.82);

    border: 1px solid #163b5a;

    border-radius: 10px;

    backdrop-filter: blur(8px);

    -webkit-backdrop-filter: blur(8px);

}


/* =========================================
   TABLE
========================================= */

table {

    width: 100%;

    min-width: 610px;

    border-collapse: collapse;

    font-size: 11px;

    color: #edf5ff;

}


/* =========================================
   TABLE HEADER
========================================= */

thead th {

    position: sticky;

    top: 0;

    z-index: 2;

    background: #0b2036;

    color: #8faecc;

    padding: 14px 11px;

    text-align: left;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 0.5px;

    white-space: nowrap;

    border-bottom: 1px solid #1c486b;

}

thead th:nth-child(1) {

    color: #49b7ff;

    text-align: center;

}

thead th:nth-child(4) {

    color: #ffd477;

}

thead th:nth-child(5) {

    color: #20c9ff;

}

thead th:nth-child(6) {

    color: #20dfa0;

}


/* =========================================
   TABLE BODY
========================================= */

tbody td {

    padding: 13px 11px;

    border-bottom: 1px solid #122d47;

    color: #c8d8e8;

    vertical-align: middle;

}

tbody tr:last-child td {

    border-bottom: none;

}

tbody tr:hover {

    background: rgba(12, 43, 73, 0.7);

}

tbody td:first-child {

    width: 48px;

    color: #49b7ff;

    text-align: center;

    font-weight: 700;

}

tbody td:nth-child(2) {

    color: white;

    font-weight: 700;

}

tbody td:nth-child(4),
tbody td:nth-child(5),
tbody td:nth-child(6) {

    text-align: right;

    font-variant-numeric: tabular-nums;

}

tbody td:nth-child(6) {

    color: #20dfa0;

    font-weight: 700;

}


/* =========================================
   EMPTY TABLE
========================================= */

.empty-row td {

    height: 300px;

    text-align: center !important;

    color: #7893ad !important;

    font-weight: 400 !important;

}


/* =========================================
   OUTPUT ACTIONS
========================================= */

.output-actions {

    margin-top: 16px;

}


/* =========================================
   STATUS MESSAGE
========================================= */

.status {

    min-height: 18px;

    margin-top: 15px;

    color: #91a7c1;

    font-size: 11px;

    line-height: 1.6;

}


/* =========================================
   FOOTER
========================================= */

footer {

    margin-top: 25px;

    padding: 15px;

    text-align: center;

    color: #58718d;

    font-size: 11px;

    letter-spacing: 1px;

}


/* =========================================
   SCROLLBAR
========================================= */

::-webkit-scrollbar {

    width: 8px;

    height: 8px;

}

::-webkit-scrollbar-track {

    background: #061426;

}

::-webkit-scrollbar-thumb {

    background: #1c527b;

    border-radius: 10px;

}

::-webkit-scrollbar-thumb:hover {

    background: #168eff;

}


/* =========================================
   RESPONSIVE TABLET
========================================= */

@media (max-width: 1100px) {

    .workspace {

        grid-template-columns:
            minmax(280px, 1fr)
            minmax(0, 1.2fr);

    }

    .panel {

        padding: 18px;

    }

    .brand-info h1 {

        font-size: 20px;

    }

}


/* =========================================
   RESPONSIVE MOBILE
========================================= */

@media (max-width: 900px) {

    body {

        padding: 58px 13px 25px;

    }

    .workspace {

        grid-template-columns: 1fr;

    }

    .topbar {

        padding: 17px;

    }

    .panel {

        padding: 17px;

    }

    .table-wrap {

        min-height: 220px;

    }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 600px) {

    .topbar {

        flex-wrap: wrap;

        gap: 12px;

    }

    .brand-mark {

        width: 45px;

        height: 45px;

        flex-basis: 45px;

        font-size: 16px;

    }

    .brand-info h1 {

        font-size: 17px;

    }

    .brand-info p {

        font-size: 10px;

    }

    .topbar-actions {

        width: 100%;

        margin-left: 0;

        justify-content: flex-end;

    }

    .local-badge {

        margin-right: auto;

    }

    .panel-heading {

        align-items: flex-start;

    }

    .panel-heading h2 {

        font-size: 16px;

    }

    textarea {

        height: 230px;

    }

    .input-actions,
    .output-actions {

        gap: 8px;

    }

    .btn {

        padding: 10px 12px;

        font-size: 11px;

    }

    .back-dashboard {

        top: -44px;

        padding: 9px 13px;

        font-size: 10px;

    }

}


/* =========================================
   EXTRA SMALL MOBILE
========================================= */

@media (max-width: 420px) {

    .panel {

        padding: 14px;

    }

    .brand-info h1 {

        font-size: 15px;

    }

    .brand-info p {

        font-size: 9px;

    }

    .local-badge {

        font-size: 9px;

        padding: 8px;

    }

    .count-pill {

        font-size: 10px;

    }

    .panel-heading h2 {

        font-size: 15px;

    }

}