* {
    box-sizing: border-box;
}

:root {
    --bg: #f4f7fb;
    --surface: rgba(255, 255, 255, 0.78);
    --surface-strong: #ffffff;
    --surface-dark: #0f172a;
    --line: rgba(148, 163, 184, 0.18);
    --line-strong: rgba(148, 163, 184, 0.3);
    --text: #0f172a;
    --muted: #64748b;
    --primary: #0f62fe;
    --primary-dark: #0b4fd1;
    --primary-soft: rgba(15, 98, 254, 0.12);
    --success-soft: rgba(16, 185, 129, 0.14);
    --danger-soft: rgba(239, 68, 68, 0.14);
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.14);
    --shadow-md: 0 14px 34px rgba(15, 23, 42, 0.08);
    --sidebar-width: 292px;
    /* --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 16px;
    --radius-sm: 12px; */
     --radius-xl: 0px;
    --radius-lg: 0px;
    --radius-md: 0px;
    --radius-sm: 0px;
    --font-display: 'Space Grotesk', 'Instrument Sans', sans-serif;
    --font-body: 'Instrument Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body.app-body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-body);
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.16), transparent 30%),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.14), transparent 24%),
        linear-gradient(180deg, #f8fbff 0%, #eef3f9 100%);
}

button,
a,
input,
select,
textarea {
    font: inherit;
}

a {
    color: inherit;
}

.auth-shell {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.auth-background {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(14, 165, 233, 0.16), transparent 26%),
        radial-gradient(circle at 80% 25%, rgba(15, 98, 254, 0.15), transparent 22%),
        radial-gradient(circle at 50% 100%, rgba(34, 197, 94, 0.1), transparent 25%);
}

.auth-main {
    position: relative;
    width: min(100%, 1120px);
    z-index: 1;
}

.dashboard-shell {
    min-height: 100vh;
    display: flex;
    position: relative;
}

.dashboard-sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.94));
    color: #e2e8f0;
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    box-shadow: 18px 0 50px rgba(15, 23, 42, 0.22);
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 50;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    width: 52px;
    height: 52px;

    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #22c55e, #0f62fe);
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 16px 30px rgba(15, 98, 254, 0.28);
}

.brand-eyebrow,
.sidebar-section-title,
.topbar-kicker,
.page-hero-kicker,
.hero-meta-label {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.68rem;
    font-weight: 700;
}

.brand-eyebrow,
.sidebar-section-title {
    color: #94a3b8;
    margin: 0 0 6px;
}

.sidebar-brand h1,
.topbar-title,
.page-hero-title {
    margin: 0;
    font-family: var(--font-display);
}

.sidebar-brand h1 {
    font-size: 1.16rem;
    color: #f8fafc;
}

.sidebar-section {
    display: grid;
    gap: 12px;
}

.sidebar-nav {
    display: grid;
    gap: 8px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
   
    text-decoration: none;
    color: #cbd5e1;
    border: 1px solid transparent;
    transition: 0.22s ease;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(148, 163, 184, 0.18);
    transform: translateX(2px);
}

.sidebar-highlight {
    background: linear-gradient(180deg, rgba(15, 98, 254, 0.18), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(148, 163, 184, 0.18);
 
    padding: 18px;
}

.sidebar-highlight h2,
.sidebar-highlight p,
.sidebar-footer p,
.sidebar-footer span,
.page-hero-description,
.topbar-user-name,
.topbar-user-role {
    margin: 0;
}

.sidebar-highlight h2 {
    color: #f8fafc;
    font-size: 1rem;
    margin-bottom: 8px;
}

.sidebar-highlight p,
.sidebar-footer,
.topbar-user-role,
.page-hero-description {
    color: #94a3b8;
}

.sidebar-badge {
    display: inline-flex;
    padding: 6px 10px;
   
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.12);
    color: #e0f2fe;
    font-size: 0.72rem;
    font-weight: 700;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 22px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    font-size: 0.88rem;
    display: grid;
    gap: 4px;
}

.dashboard-main {
    flex: 1;
    min-width: 0;
    margin-left: var(--sidebar-width);
    padding: 24px;
}

.dashboard-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.topbar-left,
.topbar-right,
.topbar-user {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar-kicker {
    color: var(--primary);
    margin: 0 0 4px;
}

.topbar-title {
    font-size: 1.45rem;
    line-height: 1.05;
}

.topbar-user {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    padding: 10px 14px;
  
    backdrop-filter: blur(18px);
}

.topbar-user-avatar,
.sidebar-toggle {
    width: 42px;
    height: 42px;
  
    display: grid;
    place-items: center;
}

.topbar-user-avatar {
    background: linear-gradient(135deg, #0f62fe, #22c55e);
    color: #fff;
    font-weight: 700;
}

.topbar-user-name {
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--text);
}

.topbar-user-role {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.topbar-logout,
.sidebar-toggle {
    border: 0;
    cursor: pointer;
    transition: 0.2s ease;
}

.topbar-logout {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
   
    color: white;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 12px 28px rgba(239, 68, 68, 0.24);
}

.topbar-logout:hover,
.sidebar-toggle:hover {
    transform: translateY(-1px);
}

.sidebar-toggle {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--line);
    color: var(--text);
    display: none;
}

.dashboard-content {
    display: grid;
    gap: 22px;
}

.page-hero {
    display: flex;
    justify-content: space-between;
    gap: 22px;
    padding: 28px;
    border-radius: var(--radius-xl);
    background:
        linear-gradient(135deg, rgba(15, 98, 254, 0.98), rgba(14, 165, 233, 0.88)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
    color: white;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    right: -90px;
    top: -120px;
  
    background: rgba(255, 255, 255, 0.12);
}

.page-hero-kicker,
.hero-meta-label {
    color: rgba(255, 255, 255, 0.74);
    margin: 0 0 8px;
}

.page-hero-title {
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1;
    margin-bottom: 10px;
}

.page-hero-description {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1rem;
}

.page-hero-meta {
    display: grid;
    gap: 12px;
    min-width: min(100%, 260px);
    position: relative;
    z-index: 1;
}

.hero-meta-card,
.app-card,
.panel-card,
.info-chip {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
}

.hero-meta-card {
  
    padding: 16px 18px;
}

.hero-meta-card strong {
    display: block;
    font-size: 0.96rem;
}

.app-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
   
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-md);
}

.app-alert-success {
    color: #047857;
    background: rgba(236, 253, 245, 0.92);
}

.app-alert-error {
    color: #b91c1c;
    background: rgba(254, 242, 242, 0.94);
}

.app-card,
.panel-card {
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(16px);
}

.app-card {
    padding: 22px;
}

.app-card-title,
.panel-card-title {
    margin: 0;
    font-size: 1.06rem;
    font-weight: 700;
    color: var(--text);
}

.app-card-subtitle {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
}

.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    inset: auto -30px -40px auto;
    width: 120px;
    height: 120px;

    background: rgba(15, 98, 254, 0.08);
}

.stat-card-header,
.quick-link,
.metric-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.stat-icon {
    width: 54px;
    height: 54px;
   
    display: grid;
    place-items: center;
    font-size: 1.15rem;
}

.stat-icon-blue { background: rgba(59, 130, 246, 0.14); color: #2563eb; }
.stat-icon-green { background: rgba(34, 197, 94, 0.14); color: #16a34a; }
.stat-icon-purple { background: rgba(168, 85, 247, 0.14); color: #9333ea; }
.stat-icon-amber { background: rgba(245, 158, 11, 0.16); color: #d97706; }
.stat-icon-rose { background: rgba(244, 63, 94, 0.14); color: #e11d48; }

.stat-value {
    margin: 14px 0 4px;
    font-size: 2rem;
    line-height: 1;
    font-family: var(--font-display);
}

.stat-label,
.metric-label,
.info-chip span,
.empty-state {
    color: var(--muted);
}

.stat-trend {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
  
    background: rgba(15, 98, 254, 0.08);
    color: var(--primary-dark);
    font-size: 0.84rem;
    font-weight: 600;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.95fr);
    gap: 18px;
}

.map-panel,
.list-panel,
.side-stack {
    display: grid;
    gap: 18px;
}

.panel-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 20px 22px 0;
}

.panel-card-body {
    padding: 18px 22px 22px;
}

.metric-inline {
    padding: 14px 16px;
    border: 1px solid var(--line);
  
    background: rgba(248, 250, 252, 0.8);
}

.metric-value {
    font-weight: 700;
    color: var(--text);
}

.quick-actions {
    display: grid;
    gap: 12px;
}

.quick-link {
    padding: 15px 16px;
   
    text-decoration: none;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.88);
    transition: 0.2s ease;
}

.quick-link:hover {
    transform: translateY(-1px);
    border-color: var(--line-strong);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.quick-link-primary {
    color: white;
    background: linear-gradient(135deg, #0f62fe, #14b8a6);
    border-color: transparent;
}

.quick-link-title {
    display: block;
    font-weight: 700;
}

.quick-link-subtitle {
    display: block;
    font-size: 0.86rem;
    opacity: 0.82;
}

.icon-tone {
    font-size: 1rem;
}

.icon-tone-blue { color: #2563eb; }
.icon-tone-emerald { color: #059669; }
.icon-tone-sky { color: #0284c7; }
.icon-tone-violet { color: #7c3aed; }
.icon-tone-rose { color: #e11d48; }
.icon-tone-amber { color: #d97706; }
.icon-tone-slate { color: #334155; }

.activity-list,
.simple-list {
    display: grid;
    gap: 14px;
}

.activity-item,
.simple-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.activity-icon,
.simple-icon {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;
    background: var(--primary-soft);
    color: var(--primary);
    flex-shrink: 0;
}

.activity-item p,
.simple-item p,
.simple-item strong {
    margin: 0;
}

.activity-meta,
.simple-meta,
.panel-link {
    color: var(--muted);
    font-size: 0.86rem;
}

.panel-link {
    text-decoration: none;
    font-weight: 600;
}

.panel-link:hover {
    color: var(--primary);
}

.app-table-wrap {
    overflow-x: auto;
}

.app-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.app-table th {
    text-align: left;
    color: var(--muted);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0 14px 8px;
}

.app-table td {
    background: rgba(248, 250, 252, 0.92);
    padding: 16px 14px;
    vertical-align: middle;
}

.app-table tbody tr td:first-child {

}

.app-table tbody tr td:last-child {

}

.badge-soft,
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;

    font-size: 0.74rem;
    font-weight: 700;
}

.badge-soft {
    background: rgba(15, 98, 254, 0.1);
    color: var(--primary-dark);
}

.badge-status {
    background: rgba(15, 23, 42, 0.08);
    color: #334155;
}

.badge-status.success { background: rgba(16, 185, 129, 0.14); color: #047857; }
.badge-status.warning { background: rgba(245, 158, 11, 0.16); color: #b45309; }
.badge-status.info { background: rgba(59, 130, 246, 0.14); color: #1d4ed8; }

.table-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.table-user-dot {
    width: 12px;
    height: 12px;

    flex-shrink: 0;
}

.map-frame {
   
    overflow: hidden;
    border: 1px solid var(--line);
    background: #dbeafe;
}

.dashboard-metric-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 16px;
}

.dashboard-map-canvas {
    min-height: 320px;
}

#map,
#map-create {
    min-height: 320px;
}

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

.workspace-sidebar,
.workspace-map {
    display: grid;
    gap: 18px;
}

.workspace-sidebar .panel-card,
.workspace-map .panel-card {
    overflow: hidden;
}

.form-section-title {
    margin: 0 0 10px;
    color: var(--text);
    font-size: 0.96rem;
    font-weight: 700;
}

.info-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
  
    color: var(--text);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--line);
}

.auth-shell .min-h-screen {
    min-height: auto;
}

.auth-shell .max-w-md {
    max-width: 520px;
}

.auth-shell .space-y-8 {
    border: 1px solid rgba(255, 255, 255, 0.34);
   
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-lg);
    padding: 32px;
}

.auth-shell input,
.auth-shell select,
.auth-shell textarea {
    
    border-color: rgba(148, 163, 184, 0.26) !important;
    padding-top: 0.9rem !important;
    padding-bottom: 0.9rem !important;
}

.auth-shell button[type='submit'] {
    min-height: 52px;
   
}

.auth-page-grid {
    display: grid;
    gap: 24px;
    align-items: center;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
}

.auth-showcase {
    display: block;
}

.auth-showcase-chip {
    margin-bottom: 24px;
}

.auth-showcase-title {
    margin: 0;
    color: #0f172a;
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 4vw, 4rem);
    line-height: 1.02;
}

.auth-showcase-text {
    margin: 24px 0 0;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #475569;
}

.auth-showcase-metrics {
    margin-top: 32px;
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-panel-wrap {
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(148, 163, 184, 0.18);
    background:
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.12), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.78));
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px);
}

.auth-panel {
    width: min(100%, 520px);
    display: grid;
    gap: 28px;
    padding: 12px 6px;
}

.auth-brand-wrap {
    display: flex;
    justify-content: center;
}

.auth-brand-mark {
    width: 64px;
    height: 64px;

}

.auth-brand-icon {
    font-size: 1.6rem;
}

.auth-panel-title {
    margin: 24px 0 0;
    text-align: center;
    font-size: 2rem;
    color: #0f172a;
    font-family: var(--font-display);
}

.auth-panel-subtitle {
    margin: 8px 0 0;
    text-align: center;
    font-size: 0.95rem;
    color: #64748b;
}

.auth-form {
    margin-top: 8px;
    display: grid;
    gap: 24px;
}

.auth-form-fields {
    display: grid;
    gap: 16px;
}

.workspace-field {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.workspace-label {
    display: block;
    margin: 0;
    color: #334155;
    font-size: 0.92rem;
    font-weight: 600;
}

.workspace-input {
    width: 100%;
}

.workspace-button {
    width: 100%;
    min-height: 52px;
    padding: 0.9rem 1rem;
    border: 0;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, opacity 0.18s ease;
    text-decoration: none;
}

.workspace-button:hover {
    transform: translateY(-1px);
}

.workspace-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.workspace-button-primary {
    background: linear-gradient(135deg, #0f62fe, #2563eb);
    color: #fff;
    box-shadow: 0 14px 26px rgba(37, 99, 235, 0.22);
}

.workspace-button-primary:hover {
    background: linear-gradient(135deg, #0b57e3, #1d4ed8);
}

.workspace-button-secondary {
    background: #eef2f7;
    color: #1e293b;
    border: 1px solid rgba(203, 213, 225, 0.8);
}

.auth-form-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 0.9rem;
}

.auth-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #334155;
}

.auth-checkbox-input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

.auth-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-submit {
    min-height: 52px;
}

.auth-demo {
    margin-top: 4px;
    padding-top: 4px;
}

.auth-divider {
    position: relative;
}

.auth-divider-line {
    position: absolute;
    inset: 50% 0 auto;
}

.auth-divider-stroke {
    height: 1px;
    background: rgba(148, 163, 184, 0.28);
}

.auth-divider-label {
    position: relative;
    display: flex;
    justify-content: center;
}

.auth-divider-label span {
    padding: 0 12px;
  
    background: rgba(255, 255, 255, 0.96);
    color: #64748b;
    font-size: 0.86rem;
}

.auth-demo-list {
    margin-top: 24px;
    display: grid;
    gap: 12px;
}

.auth-demo-card {
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.auth-demo-card h4,
.auth-demo-card p {
    margin: 0;
}

.auth-demo-card h4 {
    margin-bottom: 8px;
    color: #0f172a;
    font-size: 0.95rem;
}

.auth-demo-card p {
    color: #64748b;
    font-size: 0.8rem;
}

.auth-demo-card p + p {
    margin-top: 4px;
}

.auth-error-list {
    margin: 6px 0 0;
    padding-left: 18px;
    display: grid;
    gap: 4px;
    font-size: 0.86rem;
}

.admin-command-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.flash-message {
    animation: slideIn 0.28s ease-out;
}

.public-shell {
    width: min(100%, 1280px);
    margin: 0 auto;
    padding: 32px;
    display: grid;
    gap: 24px;
}

.public-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 28px;
    background: linear-gradient(135deg, rgba(15, 98, 254, 0.92), rgba(8, 145, 178, 0.86));
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-lg);
}

.public-hero-copy {
    display: grid;
    gap: 16px;
    max-width: 760px;
}

.public-hero-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.02;
}

.public-hero-text {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1rem;
}

.public-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.9fr);
    gap: 18px;
    align-items: start;
}

.public-list {
    display: grid;
    gap: 14px;
}

.public-line-card {
    display: grid;
    gap: 8px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.public-line-card.is-focused {
    border-color: rgba(15, 98, 254, 0.32);
    box-shadow: 0 18px 34px rgba(15, 98, 254, 0.12);
    transform: translateY(-1px);
}

.public-line-title {
    margin: 0;
    font-size: 1rem;
}

.public-line-button {
    margin-top: 6px;
}

.public-layer-toggle.is-active {
    background: linear-gradient(135deg, #0f62fe, #2563eb);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 14px 26px rgba(37, 99, 235, 0.18);
}

@keyframes slideIn {
    from {
        transform: translateY(-8px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.dashboard-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: 0.2s ease;
    z-index: 40;
}

.leaflet-container {
    font-family: var(--font-body);
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
}

.custom-div-icon,
.leaflet-div-icon {
    background: transparent;
    border: none;
}

@media (max-width: 1279px) {
    .dashboard-grid,
    .workspace-grid,
    .auth-page-grid,
    .public-grid {
        grid-template-columns: 1fr;
    }

    .auth-showcase {
        display: none;
    }

    .auth-panel-wrap {
        max-width: 640px;
        margin: 0 auto;
    }
}

@media (max-width: 1023px) {
    .dashboard-sidebar {
        transform: translateX(-100%);
        transition: transform 0.24s ease;
    }

    .dashboard-main {
        margin-left: 0;
        padding: 18px;
    }

    .sidebar-toggle {
        display: grid;
    }

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

    .dashboard-shell.sidebar-open .dashboard-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .page-hero,
    .dashboard-topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .topbar-right {
        justify-content: space-between;
    }
}

@media (max-width: 767px) {
    .auth-shell {
        padding: 16px;
    }

    .public-shell {
        padding: 16px;
    }

    .public-hero {
        padding: 22px 18px;
        flex-direction: column;
        align-items: stretch;
    }

    .auth-panel-wrap {
        padding: 18px;
    }

    .auth-shell .space-y-8 {
        padding: 22px;
  
    }

    .dashboard-main {
        padding: 14px;
    }

    .page-hero,
    .app-card,
    .panel-card .panel-card-body {
        padding-left: 18px;
        padding-right: 18px;
    }

    .panel-card-header {
        padding-left: 18px;
        padding-right: 18px;
    }

    .topbar-right,
    .topbar-user {
        flex-wrap: wrap;
    }

    .app-table {
        min-width: 760px;
    }

    .dashboard-metric-grid,
    .auth-showcase-metrics,
    .admin-command-grid {
        grid-template-columns: 1fr;
    }

    .auth-form-meta {
        align-items: flex-start;
        flex-direction: column;
    }
}
