/* ============================================================================
   GEODOMAS – globalūs layout + body.geodomas-dashboard
   Vieningas stilius: app, finance, marketing, gamyba, projektai.
   Top meniu iš _menu.py – stiliai čia, vienas šaltinis.
   ============================================================================ */

:root {
    --geodomas-primary: #6366f1;
    --geodomas-primary-dark: #4f46e5;
    --geodomas-top-bg: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    --geodomas-top-border: 1px solid rgba(255,255,255,0.08);
    --geodomas-sidebar-bg: linear-gradient(180deg, #4f46e5 0%, #4338ca 100%);
    --geodomas-content-bg: #f1f5f9;
    --geodomas-text: #334155;
    --geodomas-text-muted: #64748b;
    --geodomas-nav-link: #94a3b8;
    --geodomas-nav-hover: #e2e8f0;
    --geodomas-active-bg: rgba(99, 102, 241, 0.35);
    --geodomas-active-color: #c7d2fe;
    --geodomas-card-border: #e2e8f0;
    --geodomas-radius: 12px;
    --geodomas-radius-sm: 6px;
}

/* --- Top bar (.geodomas-top-bar) – vienodas visur (_menu.py) --- */
body.geodomas-dashboard .geodomas-top-bar,
.geodomas-top-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    padding: 0.75rem 1.25rem;
    background: var(--geodomas-top-bg);
    border-bottom: var(--geodomas-top-border);
    font-family: system-ui, -apple-system, sans-serif;
    flex-shrink: 0;
}
body.geodomas-dashboard .geodomas-top-bar .g-brand,
.geodomas-top-bar .g-brand {
    font-weight: 800;
    font-size: 1rem;
    color: #f8fafc;
    letter-spacing: 0.02em;
    margin-right: 0.5rem;
}
body.geodomas-dashboard .geodomas-top-bar .g-nav,
.geodomas-top-bar .g-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}
body.geodomas-dashboard .geodomas-top-bar .g-nav a,
body.geodomas-dashboard .geodomas-top-bar .g-nav span,
.geodomas-top-bar .g-nav a,
.geodomas-top-bar .g-nav span {
    padding: 0.4rem 0.75rem;
    border-radius: var(--geodomas-radius-sm);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
body.geodomas-dashboard .geodomas-top-bar .g-nav a,
.geodomas-top-bar .g-nav a { color: var(--geodomas-nav-link); }
body.geodomas-dashboard .geodomas-top-bar .g-nav a:hover,
.geodomas-top-bar .g-nav a:hover {
    background: rgba(255,255,255,0.08);
    color: var(--geodomas-nav-hover);
}
body.geodomas-dashboard .geodomas-top-bar .g-nav .g-active,
.geodomas-top-bar .g-nav .g-active {
    background: var(--geodomas-active-bg);
    color: var(--geodomas-active-color);
}
body.geodomas-dashboard .geodomas-top-bar .g-user,
.geodomas-top-bar .g-user {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.geodomas-top-bar { justify-content: flex-start; }
body.geodomas-dashboard .geodomas-top-bar .g-brand,
.geodomas-top-bar .g-brand { flex: 0 0 auto; white-space: nowrap; }
body.geodomas-dashboard .geodomas-top-bar .g-nav,
.geodomas-top-bar .g-nav { flex: 1 1 auto; min-width: 0; }
body.geodomas-dashboard .geodomas-top-bar .g-user,
.geodomas-top-bar .g-user { flex: 0 0 auto; }
body.geodomas-dashboard .geodomas-top-bar .g-online,
.geodomas-top-bar .g-online {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #22c55e;
}
body.geodomas-dashboard .geodomas-top-bar .g-online-dot,
.geodomas-top-bar .g-online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
    animation: g-pulse 2s ease-in-out infinite;
}
@keyframes g-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
body.geodomas-dashboard .geodomas-top-bar .g-logout,
.geodomas-top-bar .g-logout {
    padding: 0.35rem 0.6rem;
    font-size: 0.75rem;
    color: var(--geodomas-nav-link);
    text-decoration: none;
    border-radius: var(--geodomas-radius-sm);
    transition: background 0.15s, color 0.15s;
}
body.geodomas-dashboard .geodomas-top-bar .g-logout:hover,
.geodomas-top-bar .g-logout:hover {
    background: rgba(248,113,113,0.2);
    color: #f87171;
}
body.geodomas-dashboard .geodomas-top-bar .g-username,
.geodomas-top-bar .g-username {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--geodomas-nav-link);
}

/* --- GLOBALUS FALLBACK: container + sidebar + content (be body klasės) --- */
.container:has(> .sidebar),
.container.has-sidebar {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch;
    min-height: calc(100vh - 52px);
    width: 100%;
}
.container:has(> .sidebar) > .sidebar,
.container.has-sidebar > .sidebar {
    flex-shrink: 0;
    width: 280px;
    min-width: 220px;
    max-height: calc(100vh - 52px);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background: linear-gradient(180deg, #4f46e5 0%, #4338ca 100%);
    border-right: 1px solid rgba(0,0,0,0.15);
    padding: 24px 0;
    color: #e2e8f0;
}
.container:has(> .sidebar) > .sidebar::-webkit-scrollbar,
.container.has-sidebar > .sidebar::-webkit-scrollbar {
    display: none;
}
.container:has(> .sidebar) > .content,
.container.has-sidebar > .content,
.container:has(> .sidebar) > div:not(.sidebar),
.container.has-sidebar > div:not(.sidebar) {
    flex: 1;
    min-width: 0;
    min-height: 400px;
    overflow: auto;
    background: #f1f5f9;
    padding: 24px;
    color: #334155;
}
/* Sidebar meniu – globaliai */
.sidebar .menu,
.sidebar ul.menu {
    list-style: none;
    margin: 0;
    padding: 0 12px;
}
.sidebar .menu-item {
    margin: 6px 0;
}
.sidebar .menu-link,
.sidebar .menu-item a {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}
.sidebar .menu-link:hover,
.sidebar .menu-item a:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}
.sidebar .menu-link.active,
.sidebar .menu-item a.active {
    background: rgba(255,255,255,0.25);
    color: #fff;
    font-weight: 600;
}
.sidebar .menu-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    font-size: 12px;
    font-weight: 700;
    margin-right: 12px;
    flex-shrink: 0;
}
.sidebar-header {
    padding: 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 16px;
}
.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
}
.sidebar-subtitle {
    font-size: 11px;
    color: rgba(255,255,255,0.75);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* --- body.geodomas-dashboard (pilnas kontrolė) --- */
body.geodomas-dashboard {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #f1f5f9;
    color: #334155;
}

body.geodomas-dashboard .geodomas-layout-row,
body.geodomas-dashboard .container.geodomas-with-sidebar,
body.geodomas-dashboard .dashboard-layout,
body.geodomas-dashboard .geodomas-page-row,
body.geodomas-dashboard .container {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

body.geodomas-dashboard .container:has(> .sidebar),
body.geodomas-dashboard .container:has(> .left-menu),
body.geodomas-dashboard .container:has(> aside),
body.geodomas-dashboard .container.has-sidebar {
    flex-direction: row;
    align-items: stretch;
    min-height: calc(100vh - 52px);
}

body.geodomas-dashboard .geodomas-sidebar,
body.geodomas-dashboard .sidebar,
body.geodomas-dashboard .left-menu,
body.geodomas-dashboard .container.has-sidebar > .sidebar {
    flex-shrink: 0;
    width: 280px;
    min-width: 220px;
    min-height: calc(100vh - 52px);
    max-height: none;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background: linear-gradient(180deg, #3730a3 0%, #312e81 50%, #1e1b4b 100%);
    border-right: 1px solid rgba(0,0,0,0.2);
    padding: 24px 0;
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
}
body.geodomas-dashboard .sidebar::-webkit-scrollbar { display: none; }

/* Sidebar: menu užima viršų, išplečiamas blokas ir Top 10 – apačioje */
body.geodomas-dashboard .sidebar .menu,
body.geodomas-dashboard .sidebar ul.menu {
    flex-shrink: 0;
}
body.geodomas-dashboard .sidebar-leadership-astro,
body.geodomas-dashboard .sidebar-top-tasks {
    flex-shrink: 0;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.15);
}
body.geodomas-dashboard .sidebar-leadership-astro details,
body.geodomas-dashboard .sidebar-top-tasks details {
    margin: 0 12px;
}
body.geodomas-dashboard .sidebar-leadership-astro summary,
body.geodomas-dashboard .sidebar-top-tasks summary {
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255,255,255,0.95);
    padding: 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
body.geodomas-dashboard .sidebar-leadership-astro .sidebar-widget,
body.geodomas-dashboard .sidebar-top-tasks .sidebar-widget {
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 12px;
    margin-top: 8px;
    font-size: 0.8rem;
    line-height: 1.4;
}
body.geodomas-dashboard .sidebar-top-tasks .task-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
body.geodomas-dashboard .sidebar-top-tasks .task-list li {
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.9);
}
body.geodomas-dashboard .sidebar-top-tasks .task-list li:last-child {
    border-bottom: none;
}

body.geodomas-dashboard .sidebar-header { padding: 20px 16px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 16px; }
body.geodomas-dashboard .sidebar-title { font-weight: 700; font-size: 1rem; color: #f8fafc; }
body.geodomas-dashboard .sidebar-subtitle { font-size: 0.75rem; color: #94a3b8; margin-top: 4px; }
body.geodomas-dashboard .sidebar .menu,
body.geodomas-dashboard .sidebar ul.menu { list-style: none; margin: 0; padding: 0 12px; }
body.geodomas-dashboard .sidebar .menu-link,
body.geodomas-dashboard .sidebar .menu-item a { display: flex; align-items: center; padding: 12px 14px; color: rgba(255,255,255,0.9); text-decoration: none; border-radius: 10px; font-size: 14px; transition: background 0.2s, color 0.2s; }
body.geodomas-dashboard .sidebar .menu-link:hover,
body.geodomas-dashboard .sidebar .menu-item a:hover { background: rgba(255,255,255,0.15); color: #fff; }
body.geodomas-dashboard .sidebar .menu-link.active,
body.geodomas-dashboard .sidebar .menu-item a.active { background: rgba(255,255,255,0.25); color: #fff; font-weight: 600; }
body.geodomas-dashboard .sidebar .menu-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    font-size: 12px;
    font-weight: 700;
    margin-right: 12px;
    flex-shrink: 0;
}

body.geodomas-dashboard .container > .main-content,
body.geodomas-dashboard .container > .content-area,
body.geodomas-dashboard .container > main,
body.geodomas-dashboard .container.has-sidebar > .content,
body.geodomas-dashboard .container.has-sidebar > div:not(.sidebar) {
    flex: 1;
    min-width: 0;
    min-height: 400px;
    overflow: auto;
    background: #f1f5f9;
    padding: 20px;
    color: #334155;
}

body.geodomas-dashboard .card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    color: #334155;
}
body.geodomas-dashboard .top-menu { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 12px 0; margin-bottom: 16px; border-bottom: 1px solid #e2e8f0; }
body.geodomas-dashboard .top-menu a { color: #64748b; text-decoration: none; font-size: 0.9rem; }
body.geodomas-dashboard .top-menu a:hover { color: #475569; }
body.geodomas-dashboard .top-menu .active { color: #1e40af; font-weight: 600; }
body.geodomas-dashboard .top-menu .menu-title { font-weight: 700; color: #1e293b; margin-right: 8px; }
body.geodomas-dashboard h1 { font-size: 1.5rem; margin-bottom: 8px; color: #1e293b; }
body.geodomas-dashboard .sub { font-size: 0.85rem; color: #64748b; margin-bottom: 16px; }
body.geodomas-dashboard .gradient-text { background: linear-gradient(90deg, #2563eb, #7c3aed); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Stat cards / data section – globaliai, kad Finance kortelės atrodytų tvarkingai */
.data-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.stat-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 12px;
    border-left: 4px solid #6366f1;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.stat-label { font-size: 12px; color: #64748b; text-transform: uppercase; margin-bottom: 6px; font-weight: 600; }
.stat-value { font-size: 22px; font-weight: 700; color: #1e293b; }

/* Puslapių perjungimas (Finance, Marketing ir kt.) – .page slėpti, .page.active rodyti */
.page {
    display: none;
}
.page.active {
    display: block;
}

/* ============================================================================
   DASHBOARD HEALTH + bendri komponentai (vienas CSS visiems: /, Finance, Marketing…)
   ============================================================================ */

/* Single-column container (Dashboard Health be sidebar) – centruotas, max-width */
body.geodomas-dashboard .container:not(:has(> .sidebar)) {
    max-width: 920px;
    margin: 0 auto;
    padding: 24px;
    width: 100%;
}

/* Index puslapio premium išvaizda – atvira dalis, „ant milijono“ */
body.geodomas-dashboard-index {
    background: #0a0e17;
    background-image: radial-gradient(ellipse 120% 80% at 50% -20%, rgba(99, 102, 241, 0.15), transparent 50%),
                     radial-gradient(ellipse 80% 50% at 80% 50%, rgba(52, 211, 153, 0.06), transparent 45%);
    min-height: 100vh;
}
body.geodomas-dashboard-index .container {
    max-width: 960px;
}
body.geodomas-dashboard-index .card {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    color: #e2e8f0;
}
body.geodomas-dashboard-index .card h2 {
    color: #f8fafc;
}
body.geodomas-dashboard-index .agent-metrics-row {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}
body.geodomas-dashboard-index .agent-metric .val {
    color: #e2e8f0;
}
body.geodomas-dashboard-index .agent-metric .label {
    color: #64748b;
}
body.geodomas-dashboard-index .agent-summary-block {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.06);
}
body.geodomas-dashboard-index .agent-summary-title {
    color: #94a3b8;
}
body.geodomas-dashboard-index .agent-summary-values {
    color: #e2e8f0;
}
body.geodomas-dashboard-index .dashboard-footer {
    text-align: center;
    padding: 24px 16px;
    color: #64748b;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 8px;
}
.dashboard-hero {
    text-align: center;
    padding: 32px 24px 40px;
    margin-bottom: 24px;
}
.dashboard-hero-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.dashboard-hero-brand {
    background: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 50%, #c7d2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(99, 102, 241, 0.3);
}
.dashboard-hero-word {
    color: #60a5fa;
    display: block;
    font-size: 0.85em;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 4px;
}
.dashboard-hero-tagline {
    margin: 0;
    font-size: 1rem;
    color: #64748b;
    font-weight: 500;
    letter-spacing: 0.04em;
}
@media (min-width: 640px) {
    .dashboard-hero-word { display: inline; margin-top: 0; margin-left: 0.35em; font-size: 1em; }
}

/* Top menu bar – kai naudojamas kaip viršutinė juosta (Dashboard Health, moduliai) */
body.geodomas-dashboard .top-menu {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 14px 18px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.1);
    color: #e2e8f0;
}
body.geodomas-dashboard-index .top-menu {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
body.geodomas-dashboard .top-menu a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}
body.geodomas-dashboard .top-menu a:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}
body.geodomas-dashboard .top-menu .active {
    color: #60a5fa;
    font-weight: 600;
}
body.geodomas-dashboard .top-menu .menu-title {
    font-weight: 700;
    color: #f8fafc;
    margin-right: 12px;
}

/* Dashboard Health – Status kortelė, agent metrics, links */
body.geodomas-dashboard .agent-metrics-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}
body.geodomas-dashboard .agent-metric {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
body.geodomas-dashboard .agent-metric .val {
    font-size: 1.1rem;
    font-weight: 700;
    color: #334155;
}
body.geodomas-dashboard .agent-metric .label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
body.geodomas-dashboard .agent-summary-block {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 12px;
}
body.geodomas-dashboard .agent-summary-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px 16px;
    margin-bottom: 8px;
    font-size: 0.9rem;
}
body.geodomas-dashboard .agent-summary-row:last-child {
    margin-bottom: 0;
}
body.geodomas-dashboard .agent-summary-title {
    font-weight: 700;
    color: #475569;
    min-width: 90px;
}
body.geodomas-dashboard .agent-summary-values {
    color: #334155;
}
body.geodomas-dashboard .links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}
body.geodomas-dashboard .links a {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
}
body.geodomas-dashboard .links a:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

/* Modulių kortelės (Dashboard Health grid) */
body.geodomas-dashboard .health-modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}
body.geodomas-dashboard .health-module-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    border-radius: 14px;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
body.geodomas-dashboard .health-module-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
body.geodomas-dashboard-index .health-module-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
body.geodomas-dashboard-index .health-module-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.12);
}
body.geodomas-dashboard .health-module-icon {
    font-size: 1.5rem;
    margin-bottom: 10px;
    opacity: 0.95;
}
body.geodomas-dashboard .health-module-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 4px;
}
body.geodomas-dashboard .health-module-desc {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Išplėstinė informacija (details), Endpointai */
body.geodomas-dashboard .details-advanced {
    border-radius: 12px;
    overflow: hidden;
}
body.geodomas-dashboard .details-advanced[open] .details-chevron {
    transform: rotate(90deg);
}
body.geodomas-dashboard .details-advanced .details-chevron {
    display: inline-block;
    transition: transform 0.2s;
    margin-right: 8px;
}
body.geodomas-dashboard .endpoints-ping-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 12px;
}
body.geodomas-dashboard .endpoint-ping-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
body.geodomas-dashboard .endpoint-ping-card:hover {
    border-color: #6366f1;
    box-shadow: 0 2px 8px rgba(99,102,241,0.1);
}
body.geodomas-dashboard .endpoint-ping-card h4 {
    margin: 0 0 8px 0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #334155;
}
body.geodomas-dashboard .endpoint-ping-card .path {
    font-size: 0.8rem;
    color: #64748b;
    word-break: break-all;
    margin-bottom: 6px;
}
body.geodomas-dashboard .endpoint-ping-card .ping {
    font-size: 1.1rem;
    font-weight: 700;
}
body.geodomas-dashboard .endpoint-ping-card .ping.ok { color: #059669; }
body.geodomas-dashboard .endpoint-ping-card .ping.auth { color: #d97706; }
body.geodomas-dashboard .endpoint-ping-card .ping.fail { color: #dc2626; }
body.geodomas-dashboard .endpoint-ping-card .ping.pending { color: #64748b; }

body.geodomas-dashboard .endpoints-full-list {
    margin-top: 12px;
    font-size: 0.85rem;
}
body.geodomas-dashboard .endpoints-full-list .cat {
    margin-bottom: 20px;
}
body.geodomas-dashboard .endpoints-full-list .cat-title {
    font-weight: 700;
    color: #6366f1;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
body.geodomas-dashboard .endpoints-full-list table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 8px;
    font-size: 0.85rem;
}
body.geodomas-dashboard .endpoints-full-list th,
body.geodomas-dashboard .endpoints-full-list td {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid #e2e8f0;
}
body.geodomas-dashboard .endpoints-full-list th {
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
}
body.geodomas-dashboard .endpoints-full-list td a {
    color: #6366f1;
    text-decoration: none;
}
body.geodomas-dashboard .endpoints-full-list td a:hover {
    text-decoration: underline;
}


/* Footer (Dashboard Health, bendrai) */
body.geodomas-dashboard .footer {
    margin-top: 32px;
    padding: 20px 24px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

/* Badge (Status, Ping mygtukai) */
body.geodomas-dashboard .badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ========== LEFT SIDEBAR – MOBILE SLIDE (atidaromas/uždaromas) ========== */
.g-sidebar-toggle,
.geodomas-top-bar .g-mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
}
.g-sidebar-toggle {
    display: none;
    margin-right: 0.5rem;
    padding: 0.5rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: #e2e8f0;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.g-sidebar-toggle:hover {
    background: rgba(255,255,255,0.15);
}
.g-sidebar-toggle svg {
    width: 22px;
    height: 22px;
}
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9996;
    background: rgba(15,23,42,0.5);
    backdrop-filter: blur(2px);
}
body.geodomas-dashboard.sidebar-open .sidebar-overlay {
    display: block;
}
.sidebar-close-btn {
    display: none;
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 0.4rem;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 8px;
    color: #e2e8f0;
    cursor: pointer;
}
.sidebar-close-btn:hover {
    background: rgba(255,255,255,0.25);
}
.sidebar-close-btn svg {
    width: 20px;
    height: 20px;
}
@media (max-width: 900px) {
    .g-sidebar-toggle {
        display: flex;
    }
    /* Mobiliajame: slėpti pilną top meniu (viena meniu – slide), kompiuteryje matosi */
    .geodomas-top-bar > .g-nav,
    .geodomas-top-bar > .g-user {
        display: none !important;
    }
    .geodomas-top-bar .g-mobile-toggle {
        display: flex;
    }
    body.geodomas-dashboard .container.has-sidebar > .sidebar,
    .container.has-sidebar > .sidebar {
        position: fixed;
        left: 0;
        top: 52px;
        bottom: 0;
        width: min(280px, 85vw);
        max-width: 280px;
        z-index: 9997;
        transform: translateX(-100%);
        transition: transform 0.25s ease-out;
        box-shadow: 4px 0 20px rgba(0,0,0,0.2);
    }
    body.geodomas-dashboard.sidebar-open .container.has-sidebar > .sidebar,
    body.sidebar-open .container.has-sidebar > .sidebar {
        transform: translateX(0);
    }
    .sidebar-close-btn {
        display: block;
    }
}
