@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&display=swap");

:root {
    --bg-primary: #0b1220;
    --bg-surface: #121c2e;
    --bg-surface-soft: #17243a;
    --text-primary: #e8edf3;
    --text-muted: #a4b0c4;
    --accent: #1f9d8b;
    --accent-hover: #27b9a3;
    --danger: #ff6d6d;
    --border: rgba(255, 255, 255, 0.1);
}

html,
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
}

a {
    color: #65c5ff;
}

a:hover,
a:focus {
    color: #8bd3ff;
}

main > .container {
    padding: 84px 20px 24px;
}

@media (max-width: 767px) {
    main > .container {
        padding-bottom: 140px;
    }
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 1020;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 16px 24px;
    background: rgba(11, 18, 32, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.app-header__brand {
    font-weight: 600;
    letter-spacing: 0.04em;
    font-size: 1.05rem;
}

.app-header__nav {
    display: flex;
    gap: 18px;
}

.app-header__link {
    color: #c6d3e6;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.app-header__link i {
    margin-right: 6px;
}
.app-header__link:hover,
.app-header__link:focus {
    color: #ffffff;
}

.app-header__auth {
    margin-left: auto;
}

.app-header__logout {
    border: none;
    background: transparent;
    color: #c6d3e6;
    padding: 0;
}

.app-header__logout:hover,
.app-header__logout:focus {
    color: #ffffff;
}

.app-header__toggle {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px;
}

.app-header__toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #c6d3e6;
    border-radius: 999px;
}

.app-header__collapse {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: #c6d3e6;
    align-items: center;
    justify-content: center;
}

.app-header__collapse:hover,
.app-header__collapse:focus {
    color: #ffffff;
}

.app-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: calc(100vh - 64px);
}

.app-shell.app-shell--collapsed {
    grid-template-columns: 72px 1fr;
}

.app-sidebar {
    background: #0e1829;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 20px;
}

.app-shell.app-shell--collapsed .app-sidebar {
    width: 72px;
    padding: 20px 10px;
}

.app-shell.app-shell--collapsed .app-sidebar__title,
.app-shell.app-shell--collapsed .app-sidebar__section form,
.app-shell.app-shell--collapsed .app-sidebar__item span {
    display: none;
}

.app-shell.app-shell--collapsed .app-sidebar__item {
    justify-content: center;
    padding: 10px 8px;
}

.app-shell.app-shell--collapsed .app-sidebar__item {
    position: relative;
}

.app-shell.app-shell--collapsed .app-sidebar__item::after {
    content: attr(data-label);
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 24, 40, 0.96);
    color: #e8edf3;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
    transition: opacity 0.15s ease;
    z-index: 1200;
}

.app-shell.app-shell--collapsed .app-sidebar__item:hover::after,
.app-shell.app-shell--collapsed .app-sidebar__item:focus::after {
    opacity: 1;
}

.app-sidebar {
    transition: width 0.2s ease, padding 0.2s ease;
}

.app-overlay {
    display: none;
}

.app-sidebar__item--button {
    width: 100%;
    border: none;
    text-align: left;
}

.app-sidebar__section {
    margin-bottom: 28px;
}

.app-sidebar__title {
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    color: #7f90ab;
    margin-bottom: 12px;
}

.app-sidebar__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 8px;
    border-radius: 10px;
    color: #d5deec;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.02);
}

.app-sidebar__item i {
    margin-right: 8px;
}
.app-sidebar__item:hover,
.app-sidebar__item:focus {
    background: rgba(31, 157, 139, 0.2);
    color: #ffffff;
}

.app-content {
    padding-top: 8px;
}

/* Keep normal container sizing on desktop */

@media (max-width: 767px) {
    .app-content {
        padding-bottom: 120px;
    }
}

@media (max-width: 992px) {
    .app-header {
        gap: 12px;
        padding: 12px 16px;
        flex-wrap: wrap;
    }

    .app-header__toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .app-header__nav,
    .app-header__auth {
        display: none;
    }

    .app-shell {
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        position: fixed;
        top: 64px;
        left: 0;
        bottom: 0;
        width: 84%;
        max-width: 320px;
        display: block;
        transform: translateX(-105%);
        transition: transform 0.2s ease;
        z-index: 1100;
        box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
    }

    .app-sidebar--open {
        transform: translateX(0);
    }

    .app-overlay {
        display: block;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(6, 10, 18, 0.6);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
        z-index: 1050;
    }

    .app-overlay--open {
        opacity: 1;
        pointer-events: auto;
    }
}
@media (min-width: 993px) {
    .app-header__toggle {
        display: none !important;
    }

    .app-header__collapse {
        display: inline-flex;
        margin-left: 12px;
    }
}

.navbar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer {
    background-color: #0f1728;
    font-size: 0.9em;
    min-height: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: var(--danger);
    font-style: italic;
}

a.asc:after,
a.desc:after {
    content: "";
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #9bb4d6;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #9bb4d6;
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: var(--text-muted);
}

.text-muted {
    color: #9fb0c8 !important;
}

.error-summary {
    color: #ffc7c7;
    background: #3f1e2a;
    border-left: 3px solid #ff6d6d;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

.nav li > form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 767px) {
    .nav li > form > button.logout {
        display: block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.form-group {
    margin-bottom: 1rem;
}

.site-error {
    padding: 24px 0;
}

.error-shell {
    max-width: 860px;
    padding: 24px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(145deg, rgba(17, 28, 46, 0.92), rgba(10, 18, 32, 0.92));
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.32);
}

.error-shell__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #d8e4f5;
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.error-shell__title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 10px;
}

.error-shell__message {
    color: #ffb6b6;
    font-size: 1.05rem;
    margin-bottom: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 120, 120, 0.28);
    background: rgba(90, 24, 34, 0.28);
}

.error-shell__meta {
    color: #b5c6df;
    margin-bottom: 18px;
}

.error-shell__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.error-shell__debug {
    margin-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 12px;
}

.error-shell__debug summary {
    cursor: pointer;
    color: #9fb0c8;
}

.error-shell__debug pre {
    margin-top: 10px;
    padding: 12px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #d9e4f5;
    max-height: 260px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.form-control,
.form-select {
    background-color: #0e1829;
    border-color: var(--border);
    color: var(--text-primary);
}

.form-control::placeholder {
    color: rgba(200, 210, 225, 0.7);
}

.form-label {
    color: #d6deea;
}

.form-control:focus,
.form-select:focus {
    background-color: #0e1829;
    color: var(--text-primary);
    border-color: #3d7cc2;
    box-shadow: 0 0 0 0.2rem rgba(61, 124, 194, 0.2);
}

.form-check-input {
    background-color: #0d1626;
    border-color: #4e5f79;
}

.form-check-input:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}

.btn-primary {
    background-color: var(--accent);
    border-color: var(--accent);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
}

.auth-page {
    min-height: 100vh;
}

.auth-main {
    min-height: 100vh;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    background: radial-gradient(circle at 20% 20%, #1b2f4f 0, var(--bg-primary) 60%);
}

.login-visual {
    position: relative;
    padding: 3rem;
    display: flex;
    align-items: flex-end;
    background-image:
        linear-gradient(130deg, rgba(8, 14, 24, 0.78), rgba(8, 14, 24, 0.92)),
        url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1500&q=80");
    background-size: cover;
    background-position: center;
}

.login-visual-content {
    max-width: 560px;
}

.login-eyebrow {
    display: inline-block;
    font-weight: 600;
    letter-spacing: 0.16em;
    font-size: 0.76rem;
    color: #88d9ff;
    margin-bottom: 1rem;
}

.login-visual h1 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.15;
    margin-bottom: 1rem;
}

.login-visual p {
    font-size: 1.05rem;
    color: #c7d4e6;
    margin-bottom: 0;
}

.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(145deg, #0f1829 0%, #0d1523 100%);
}

.login-card {
    width: 100%;
    max-width: 440px;
    padding: 2rem;
    background-color: rgba(18, 28, 46, 0.92);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.38);
}

.login-card h2 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.login-subtitle {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.login-form .form-label {
    color: #c3cfe2;
    font-weight: 500;
}

.login-form .invalid-feedback {
    display: block;
}

.btn-login {
    font-weight: 600;
    padding: 0.7rem 1rem;
}

.login-hint {
    margin-top: 1.2rem;
    color: #95a3bb;
    font-size: 0.92rem;
}

.hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
    padding: 48px 0 24px;
}

.hero__content h1 {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 1.1;
    margin-bottom: 16px;
}

.hero__content p {
    color: #c3cfe2;
    font-size: 1.05rem;
    max-width: 640px;
}

.hero__eyebrow {
    display: inline-block;
    font-weight: 600;
    letter-spacing: 0.2em;
    font-size: 0.72rem;
    color: #88d9ff;
    margin-bottom: 14px;
}

.hero__actions {
    display: flex;
    gap: 14px;
    margin-top: 22px;
    flex-wrap: wrap;
}

.hero__panel {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__card {
    width: 100%;
    max-width: 360px;
    padding: 20px;
    background: rgba(18, 28, 46, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero__stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.92rem;
}

.hero__stat:last-child {
    border-bottom: none;
}

.hero__stat span {
    color: #9fb0c8;
}

.hero__stat strong {
    color: #e8edf3;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.78rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.feature-grid--tight {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reports-list-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin: 18px 0 12px;
}

.reports-list-search {
    flex: 1;
    min-width: 240px;
}

.reports-list-meta {
    white-space: nowrap;
}

.reports-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.feature-card--horizontal {
    min-height: 0;
    padding: 16px 18px;
    gap: 14px;
}

.report-card__body {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.report-card__content {
    flex: 1;
    min-width: 0;
}

.report-card__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-left: auto;
}

.report-card__actions form {
    margin: 0;
}

@media (max-width: 900px) {
    .reports-list-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .report-card__body {
        flex-direction: column;
    }

    .report-card__actions {
        margin-left: 0;
    }
}

.feature-card {
    background: rgba(18, 28, 46, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 18px;
    min-height: 170px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover,
.feature-card:focus {
    transform: translateY(-4px);
    border-color: rgba(31, 157, 139, 0.5);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
}

.feature-card__icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(31, 157, 139, 0.18);
    color: #9fe4d8;
}

.feature-card h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.feature-card p {
    color: #b5c1d6;
    font-size: 0.95rem;
    margin: 0;
    white-space: normal;
    overflow-wrap: anywhere;
}

.feature-card__cta {
    margin-top: auto;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #9fd0ff;
}

.reports-catalog {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.reports-catalog__sidebar {
    background: rgba(18, 28, 46, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px;
}

.reports-catalog__sidebar-title {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.74rem;
    color: #91a5c2;
    margin-bottom: 12px;
}

.reports-catalog__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: calc(100vh - 260px);
    overflow-y: auto;
    padding-right: 4px;
}

.reports-catalog__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: #d9e4f5;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
}

.reports-catalog__item:hover,
.reports-catalog__item:focus {
    color: #ffffff;
    border-color: rgba(31, 157, 139, 0.4);
    background: rgba(31, 157, 139, 0.16);
}

.reports-catalog__item.is-active {
    color: #ffffff;
    border-color: rgba(31, 157, 139, 0.7);
    background: rgba(31, 157, 139, 0.24);
}

.reports-catalog__item-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
}

.reports-catalog__item-icon .report-source-logo__svg {
    width: 18px;
    height: 18px;
}

.reports-catalog__item-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.reports-catalog__item-text strong {
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reports-catalog__item-text small {
    font-size: 0.78rem;
    color: #9fb0c8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reports-catalog__detail-card {
    min-height: 360px;
}

.reports-catalog__detail-card p {
    color: #cfe0f7;
}

.reports-catalog__detail-card .text-muted,
.reports-catalog .text-muted {
    color: #b9cbe3 !important;
}

.reports-access {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.reports-access__sidebar {
    background: rgba(18, 28, 46, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px;
}

.reports-access__title {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.74rem;
    color: #91a5c2;
    margin-bottom: 10px;
}

.reports-access__search {
    margin-bottom: 10px;
}

.reports-access__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: calc(100vh - 320px);
    overflow-y: auto;
    padding-right: 4px;
}

.reports-access__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: #d9e4f5;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
}

.reports-access__item:hover,
.reports-access__item:focus {
    color: #ffffff;
    border-color: rgba(31, 157, 139, 0.4);
    background: rgba(31, 157, 139, 0.16);
}

.reports-access__item.is-active {
    color: #ffffff;
    border-color: rgba(31, 157, 139, 0.7);
    background: rgba(31, 157, 139, 0.24);
}

.reports-access__item-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
}

.reports-access__item-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.reports-access__item-text strong {
    font-size: 0.93rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reports-access__item-text small {
    color: #9fb0c8;
    font-size: 0.76rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reports-access__card .text-muted {
    color: #b9cbe3 !important;
}

.secrets-layout {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.secrets-sidebar {
    background: rgba(18, 28, 46, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px;
}

.secrets-sidebar__title {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.74rem;
    color: #91a5c2;
    margin-bottom: 10px;
}

.secrets-sidebar__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: calc(100vh - 320px);
    overflow-y: auto;
    padding-right: 4px;
}

.secrets-sidebar__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: #d9e4f5;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
}

.secrets-sidebar__item:hover,
.secrets-sidebar__item:focus {
    color: #ffffff;
    border-color: rgba(31, 157, 139, 0.4);
    background: rgba(31, 157, 139, 0.16);
}

.secrets-sidebar__item.is-active {
    color: #ffffff;
    border-color: rgba(31, 157, 139, 0.72);
    background: rgba(31, 157, 139, 0.24);
}

.secrets-sidebar__icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
}

.secrets-sidebar__text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.secrets-sidebar__text strong {
    font-size: 0.93rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.secrets-sidebar__text small {
    font-size: 0.76rem;
    color: #9fb0c8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.secrets-main .feature-card .text-muted {
    color: #b9cbe3 !important;
}

.secrets-reveal-value {
    font-family: "IBM Plex Mono", "Consolas", monospace;
    letter-spacing: 0.02em;
    background: rgba(7, 16, 34, 0.9);
    border-color: rgba(255, 255, 255, 0.18);
    min-height: 44px;
    display: flex;
    align-items: center;
}

.secrets-readonly-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 12px;
    min-height: 72px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.secrets-readonly-label {
    color: #9fb0c8;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.secrets-readonly-value {
    color: #eaf2ff;
    font-size: 0.96rem;
    line-height: 1.2;
    word-break: break-word;
}

.monitor-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

.monitor-grid + .monitor-grid {
    margin-top: 14px;
}

.monitor-kpi {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.02em;
}

.monitor-card-button {
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
    width: 100%;
    min-height: 210px;
}

.monitor-panel {
    background: rgba(18, 28, 46, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
}

.monitor-panel__header {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 600;
}

.monitor-panel__body {
    padding: 12px;
}

.report-source-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.report-source-card {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 16px;
    border-radius: 16px;
    background: rgba(18, 28, 46, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.report-source-card:hover {
    transform: translateY(-3px);
    border-color: rgba(31, 157, 139, 0.4);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.3);
}

.report-source-card h4 {
    margin: 0 0 4px;
    font-size: 1.05rem;
}

.report-source-card p {
    margin: 0;
    color: #b5c1d6;
}

.report-source-logo {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0b0f1a;
}

.report-source-logo--powerbi {
    background: rgba(11, 18, 32, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.report-source-logo--streamlit {
    background: rgba(11, 18, 32, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #0b0f1a;
}

.report-source-logo__svg {
    width: 28px;
    height: 28px;
    display: block;
}

.streamlit-shell {
    position: relative;
    height: 76vh;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(180deg, #0a1731 0%, #081227 100%);
}

.streamlit-iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.report-streamlit-code {
    font-family: "IBM Plex Mono", "Consolas", monospace;
    font-size: 0.9rem;
}

.report-streamlit-preview .streamlit-shell {
    height: 48vh;
}

.roadmap-legend {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.roadmap-timeline {
    display: grid;
    gap: 18px;
    position: relative;
}

.roadmap-node {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.roadmap-node__marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.roadmap-node__dot {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(31, 157, 139, 0.18);
    color: #9fe4d8;
    font-size: 1.1rem;
    box-shadow: 0 0 0 6px rgba(10, 20, 36, 0.6), 0 0 18px rgba(122, 227, 213, 0.2);
    border: 1px solid rgba(122, 227, 213, 0.4);
}

.roadmap-node__line {
    width: 3px;
    flex: 1;
    margin-top: 8px;
    min-height: 40px;
    background: linear-gradient(180deg, rgba(122, 227, 213, 0.7), rgba(122, 227, 213, 0.05));
    border-radius: 999px;
}

.roadmap-node__card {
    background: rgba(10, 20, 36, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 16px 18px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
}

.roadmap-node__card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    width: 4px;
    height: calc(100% - 28px);
    border-radius: 999px;
    background: rgba(122, 227, 213, 0.35);
}

.roadmap-node__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.roadmap-node__step {
    font-weight: 700;
    color: #7ae3d5;
    letter-spacing: 0.06em;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.roadmap-node__status {
    font-weight: 600;
}

.roadmap-node__body {
    margin-top: 12px;
}

.roadmap-node__content h4 {
    margin: 0 0 4px;
    font-size: 1.05rem;
}

.roadmap-node__content p {
    margin: 0;
}

.roadmap-node__deps {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.85rem;
    color: #9fb3c8;
}

.roadmap-node__deps span:first-child {
    margin-right: 6px;
}

.roadmap-tag {
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(122, 227, 213, 0.12);
    color: #a8f0e6;
    border: 1px solid rgba(122, 227, 213, 0.25);
    font-size: 0.8rem;
}

.roadmap-status-error .roadmap-node__dot {
    background: rgba(231, 76, 60, 0.2);
    color: #ffb4a8;
    border-color: rgba(231, 76, 60, 0.6);
    box-shadow: 0 0 0 6px rgba(20, 8, 8, 0.5), 0 0 18px rgba(231, 76, 60, 0.35);
}

.roadmap-status-error .roadmap-node__card::before {
    background: rgba(231, 76, 60, 0.6);
}

.roadmap-status-blocked .roadmap-node__dot {
    background: rgba(241, 196, 15, 0.25);
    color: #f8e4a4;
    border-color: rgba(241, 196, 15, 0.6);
}

.roadmap-status-blocked .roadmap-node__card::before {
    background: rgba(241, 196, 15, 0.7);
}

.roadmap-status-inactive {
    opacity: 0.7;
}

.roadmap-status-inactive .roadmap-node__dot {
    filter: grayscale(0.3);
}

.roadmap-status-pending .roadmap-node__dot {
    background: rgba(74, 144, 226, 0.2);
    color: #9fc3ff;
    border-color: rgba(74, 144, 226, 0.6);
}

.roadmap-status-pending .roadmap-node__card::before {
    background: rgba(74, 144, 226, 0.7);
}

.roadmap-status-ok .roadmap-node__card::before {
    background: rgba(46, 204, 113, 0.6);
}


.monitor-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.monitor-list li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.dataset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
    padding: 10px;
    background: rgba(15, 24, 40, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.dataset-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    font-size: 0.9rem;
}

.hr-chat {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 420px;
}

.hr-chat__log {
    background: rgba(9, 12, 20, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px;
    height: 360px;
    overflow-y: auto;
}

.hr-chat__message {
    padding: 10px 12px;
    border-radius: 12px;
    margin-bottom: 8px;
    max-width: 70%;
    font-size: 0.95rem;
}

.hr-chat__message--bot {
    background: rgba(255, 255, 255, 0.06);
    color: #d8e2f1;
    align-self: flex-start;
}

.hr-chat__message--user {
    background: rgba(46, 196, 182, 0.2);
    color: #e6fffb;
    align-self: flex-end;
}

.hr-chat__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gmovil-page {
    min-height: 100vh;
    background: radial-gradient(1200px 700px at 0% 0%, #0b3b36 0%, #0b1220 45%, #0a0f1a 100%);
    color: #e8edf3;
    padding: 30px 40px 70px;
    position: relative;
    overflow: hidden;
}

.gmovil-shell {
    background: #0b1220;
}

.app-shell--public .app-content {
    margin-left: 0;
}

.app-shell--public .container {
    max-width: none;
    padding: 0;
}

.app-shell--public main > .container {
    padding: 0;
}

.gmovil-page::after {
    content: "";
    position: absolute;
    right: -120px;
    top: 40px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(31,157,139,0.35) 0%, rgba(31,157,139,0) 70%);
    pointer-events: none;
}

.gmovil-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    position: relative;
}

.gmovil-hero__brand {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #b8fff2;
}

.gmovil-hero__tag {
    font-size: 0.9rem;
    color: #9fb0c8;
}

.gmovil-hero__glow {
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 180px;
    height: 4px;
    background: linear-gradient(90deg, #1f9d8b, transparent);
    border-radius: 999px;
}

.gmovil-intro {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    margin-bottom: 24px;
}

.gmovil-intro h1 {
    font-size: 2.4rem;
    margin-bottom: 10px;
}

.gmovil-intro p {
    color: #b9cbe3;
    font-size: 1rem;
}

.gmovil-intro__meta {
    display: flex;
    gap: 16px;
    margin-top: 18px;
}

.gmovil-intro__meta div {
    background: rgba(31, 157, 139, 0.15);
    border: 1px solid rgba(31, 157, 139, 0.25);
    border-radius: 12px;
    padding: 10px 14px;
    min-width: 120px;
}

.gmovil-intro__meta strong {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94b6ad;
}

.gmovil-intro__meta span {
    font-size: 1rem;
}

.gmovil-cta-card {
    background: rgba(18, 28, 46, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 18px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.gmovil-cta-card__icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(31, 157, 139, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #b8fff2;
}

.gmovil-chat {
    background: rgba(12, 20, 34, 0.72);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 18px;
}

.gmovil-chat__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

@media (max-width: 992px) {
    .gmovil-page {
        padding: 20px 18px 60px;
    }
    .gmovil-intro {
        grid-template-columns: 1fr;
    }
    .gmovil-intro__meta {
        flex-wrap: wrap;
    }
}

.ide {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 16px;
    min-height: 70vh;
    min-width: 0;
}

.ide__sidebar {
    background: rgba(12, 20, 34, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px;
}

.ide__sidebar-header {
    margin-bottom: 12px;
}

.ide__catalog {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 6px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ide__catalog-item {
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ide__catalog-action {
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: #dbe7f6;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    font-size: 0.85rem;
}

.ide__catalog-action:hover {
    background: rgba(31, 157, 139, 0.4);
}

.ide__catalog-tables {
    padding: 8px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ide__table-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 0.85rem;
}

.ide__table-item span {
    margin-right: auto;
}

.ide__table-action {
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: #dbe7f6;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    font-size: 0.8rem;
}

.ide__table-action:hover {
    background: rgba(31, 157, 139, 0.4);
}

.ide__table-action--columns {
    margin-left: 6px;
}

.ide__table-columns {
    margin: 6px 0 10px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    display: grid;
    gap: 6px;
}

.ide__column-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: #dbe7f6;
}

.ide__column-item span:first-child {
    color: #f1f5ff;
}

.ide__column-item .text-muted {
    color: #9fb0c8 !important;
}

.ide__main {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.ide__toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ide__toolbar-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #c6d3e6;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
}

.ide__toolbar-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
}

.ide__toolbar-select {
    background-color: #0e1829;
    border-color: rgba(255, 255, 255, 0.12);
    color: #e8edf3;
    padding: 2px 8px;
    min-width: 72px;
}

.ide__status {
    position: relative;
    cursor: default;
    color: #ef4444 !important;
}

.ide__status--error::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    min-width: 220px;
    max-width: 420px;
    background: rgba(15, 24, 40, 0.98);
    color: #f8e1b0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 0.78rem;
    line-height: 1.3;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 20;
}

.ide__status--error:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.ide__editor {
    height: 320px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ide__results {
    background: rgba(18, 28, 46, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    min-width: 0;
}

.ide__saved {
    background: rgba(18, 28, 46, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ide__saved-header {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 600;
}

.ide__saved-body {
    padding: 12px 14px;
}

.ide__saved-form {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.ide__saved-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ide__saved-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}

.ide__saved-title {
    font-size: 0.9rem;
    color: #f1f5ff;
}

.ide__saved-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-content {
    background: #0f1829;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    color: #e8edf3;
}

.modal-header,
.modal-footer {
    border-color: rgba(255, 255, 255, 0.08);
}

.modal-title,
.modal-body,
.modal-header {
    color: #e8edf3;
}

.modal .text-muted {
    color: #9fb0c8 !important;
}

.ide__results-header {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ide__results-pager {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    color: #9fb0c8;
    font-size: 0.78rem;
}

.ide__results-pager button {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #dbe7f6;
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 0.78rem;
}

.ide__results-pager button:disabled {
    opacity: 0.4;
}

.ide__results-body {
    padding: 12px 14px;
    max-height: 320px !important;
    overflow-y: auto !important;
    overflow-x: auto !important;
}

.ide__results-body table {
    width: max-content;
    min-width: 100%;
}

.ide__results-table {
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.86rem;
}

.ide__results-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(14, 22, 36, 0.98);
    color: #e8edf3;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    text-transform: none;
    font-weight: 600;
    white-space: nowrap;
}

.ide__results-table thead tr:nth-child(2) th {
    top: 34px;
    background: rgba(14, 22, 36, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ide__results-filter {
    width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(8, 14, 24, 0.9);
    color: #e8edf3;
    padding: 6px 8px;
    font-size: 0.78rem;
}

.ide__results-filter::placeholder {
    color: rgba(200, 210, 225, 0.6);
}

.ide__results-table tbody td {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    white-space: nowrap;
}

@media (max-width: 992px) {
    .ide {
        grid-template-columns: 1fr;
        gap: 12px;
        width: 100%;
    }

    .ide__sidebar,
    .ide__main,
    .ide__results {
        width: 100%;
    }

    .ide__toolbar {
        flex-wrap: wrap;
    }

    .ide__editor {
        height: 34vh;
        min-height: 220px;
        width: 100%;
    }

    .ide__results-body {
        max-height: 42vh !important;
    }

    .ide__results-body table {
        min-width: 100%;
    }
}

@media (max-width: 1200px) {
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .feature-grid--tight {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .reports-catalog {
        grid-template-columns: 1fr;
    }

    .reports-catalog__list {
        max-height: 280px;
    }

    .reports-access {
        grid-template-columns: 1fr;
    }

    .reports-access__list {
        max-height: 280px;
    }

    .secrets-layout {
        grid-template-columns: 1fr;
    }

    .secrets-sidebar__list {
        max-height: 280px;
    }

    .monitor-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .monitor-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

.mobile-nav {
    display: none;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    height: 64px;
    border-radius: 18px;
    background: rgba(15, 24, 40, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
    padding: 0 10px;
    z-index: 1050;
    backdrop-filter: blur(12px);
}

.mobile-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #c6d3e6;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    gap: 6px;
}

.mobile-nav__item:hover,
.mobile-nav__item:focus {
    color: #ffffff;
}

.mobile-nav__icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    color: #e8edf3;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.mobile-nav__icon i {
    margin-bottom: 0;
}

.mobile-nav__label {
    font-size: 0.62rem;
    letter-spacing: 0.14em;
}

@media (max-width: 767px) {
    .mobile-nav {
        display: flex;
        gap: 6px;
    }

    #footer {
        padding-bottom: 84px;
    }
}

@media (max-width: 992px) {
    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-visual {
        min-height: 280px;
        align-items: flex-start;
    }

    .login-panel {
        padding: 1.25rem;
    }

    .login-card {
        max-width: 640px;
    }
}
