/* ==========================================================================
   Highdeen Admin Panel Stylesheet
   Obsidian & Violet Luxury Dark Theme
   ========================================================================== */

:root {
    --adm-bg: #0A0B10;
    --adm-surface: #12141D;
    --adm-surface-2: #1A1D2A;
    --adm-surface-hover: #222638;
    --adm-border: rgba(255, 255, 255, 0.08);
    --adm-border-strong: rgba(255, 255, 255, 0.16);
    --adm-border-active: #7C3AED;
    
    --adm-text: #F8FAFC;
    --adm-muted: #94A3B8;
    --adm-caption: #64748B;
    
    --adm-accent: #7C3AED;
    --adm-accent-hover: #6D28D9;
    --adm-accent-glow: rgba(124, 58, 237, 0.35);
    --adm-accent-soft: rgba(124, 58, 237, 0.15);
    --adm-accent-border: rgba(124, 58, 237, 0.4);

    --adm-success: #10B981;
    --adm-success-soft: rgba(16, 185, 129, 0.15);
    --adm-warning: #F59E0B;
    --adm-warning-soft: rgba(245, 158, 11, 0.15);
    --adm-danger: #EF4444;
    --adm-danger-soft: rgba(239, 68, 68, 0.15);

    --adm-font-display: 'Unbounded', ui-sans-serif, sans-serif;
    --adm-font-body: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
    --adm-font-mono: 'JetBrains Mono', ui-monospace, monospace;

    --adm-radius-sm: 8px;
    --adm-radius: 12px;
    --adm-radius-lg: 16px;
    --adm-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
}

*, *::before, *::after {
    box-sizing: border-box;
}

body.admin-body {
    margin: 0;
    background-color: var(--adm-bg);
    color: var(--adm-text);
    font-family: var(--adm-font-body);
    font-size: 15px;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
   Typography & Utilities
   -------------------------------------------------------------------------- */
.adm-heading {
    font-family: var(--adm-font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--adm-text);
    margin: 0;
}

.adm-mono {
    font-family: var(--adm-font-mono);
}

.adm-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--adm-font-mono);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 9999px;
    white-space: nowrap;
}

.adm-badge--accent {
    background: var(--adm-accent-soft);
    color: #C4B5FD;
    border: 1px solid var(--adm-accent-border);
}

.adm-badge--success {
    background: var(--adm-success-soft);
    color: #6EE7B7;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.adm-badge--warning {
    background: var(--adm-warning-soft);
    color: #FCD34D;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.adm-badge--neutral {
    background: var(--adm-surface-2);
    color: var(--adm-muted);
    border: 1px solid var(--adm-border);
}

/* --------------------------------------------------------------------------
   Buttons & Form Controls
   -------------------------------------------------------------------------- */
.adm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: var(--adm-radius-sm);
    font-family: var(--adm-font-body);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    border: 1px solid transparent;
}

.adm-btn:focus-visible {
    outline: 2px solid var(--adm-accent);
    outline-offset: 2px;
}

.adm-btn--primary {
    background: var(--adm-accent);
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 14px var(--adm-accent-glow);
}

.adm-btn--primary:hover {
    background: var(--adm-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--adm-accent-glow);
    color: #FFFFFF;
}

.adm-btn--secondary {
    background: var(--adm-surface-2);
    color: var(--adm-text);
    border-color: var(--adm-border);
}

.adm-btn--secondary:hover {
    background: var(--adm-surface-hover);
    border-color: var(--adm-border-strong);
    color: #FFFFFF;
}

.adm-btn--danger-ghost {
    background: transparent;
    color: #FCA5A5;
    border-color: transparent;
    padding: 6px 12px;
}

.adm-btn--danger-ghost:hover {
    background: var(--adm-danger-soft);
    color: #EF4444;
}

.adm-btn--sm {
    padding: 6px 12px;
    font-size: 12px;
}

.adm-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.adm-label {
    font-family: var(--adm-font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--adm-muted);
}

.adm-input {
    width: 100%;
    padding: 12px 14px;
    background: #0E1017;
    border: 1px solid var(--adm-border);
    border-radius: var(--adm-radius-sm);
    color: var(--adm-text);
    font-family: var(--adm-font-body);
    font-size: 14px;
    transition: all 0.2s ease;
}

.adm-input:focus {
    outline: none;
    border-color: var(--adm-accent);
    box-shadow: 0 0 0 3px var(--adm-accent-soft);
}

.adm-input::placeholder {
    color: var(--adm-caption);
}

/* --------------------------------------------------------------------------
   Login View Styling
   -------------------------------------------------------------------------- */
.adm-login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.adm-login-bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, rgba(10, 11, 16, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

.adm-login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    background: var(--adm-surface);
    border: 1px solid var(--adm-border);
    border-radius: var(--adm-radius-lg);
    padding: 40px;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.8), 0 0 40px -10px var(--adm-accent-soft);
}

.adm-login-header {
    text-align: center;
    margin-bottom: 32px;
}

.adm-login-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    text-decoration: none;
}

.adm-login-title {
    font-size: 24px;
    margin-bottom: 8px;
}

.adm-login-subtitle {
    display: none !important;
}

.adm-notice-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--adm-border);
    border-radius: var(--adm-radius-sm);
    padding: 8px 12px;
    margin-bottom: 24px;
    font-family: var(--adm-font-mono);
    font-size: 12px;
    color: var(--adm-muted);
}

.adm-notice-pill svg {
    flex-shrink: 0;
    color: #A78BFA;
}

/* ==========================================================================
   Collapsible Left Sidebar & App Shell
   ========================================================================== */
:root {
    --adm-sidebar-w: 260px;
    --adm-sidebar-collapsed-w: 74px;
}

.adm-shell {
    display: flex;
    min-height: 100vh;
    background-color: var(--adm-bg);
    width: 100%;
}

/* Fixed Sidebar */
.adm-sidebar {
    width: var(--adm-sidebar-w);
    background: var(--adm-surface);
    border-right: 1px solid var(--adm-border);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
}

/* Sidebar Header / Brand */
.adm-sidebar-header {
    padding: 20px 18px;
    border-bottom: 1px solid var(--adm-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 72px;
}

.adm-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--adm-text);
    overflow: hidden;
}

.adm-sidebar-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    transition: opacity 0.2s ease;
}

.adm-sidebar-toggle-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--adm-radius-sm);
    background: var(--adm-surface-2);
    border: 1px solid var(--adm-border);
    color: var(--adm-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.adm-sidebar-toggle-btn:hover {
    color: var(--adm-text);
    background: var(--adm-surface-hover);
    border-color: var(--adm-border-strong);
}

.adm-sidebar-toggle-icon {
    transition: transform 0.25s ease;
}

/* Sidebar Navigation Items */
.adm-sidebar-content {
    flex: 1;
    padding: 16px 10px;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.adm-sidebar-section-title {
    font-family: var(--adm-font-mono);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--adm-caption);
    padding: 12px 12px 6px;
    transition: opacity 0.2s ease;
}

.adm-sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--adm-radius-sm);
    color: var(--adm-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s ease;
    border: 1px solid transparent;
    cursor: pointer;
    background: transparent;
    width: 100%;
    text-align: left;
}

.adm-sidebar-nav-item:hover {
    color: var(--adm-text);
    background: var(--adm-surface-2);
    border-color: var(--adm-border);
}

.adm-sidebar-nav-item.is-active {
    color: #FFFFFF;
    background: var(--adm-accent-soft);
    border-color: var(--adm-accent-border);
    box-shadow: 0 0 16px -4px var(--adm-accent-glow);
}

.adm-sidebar-nav-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}

.adm-sidebar-nav-label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.2s ease;
}

.adm-sidebar-badge {
    padding: 2px 7px;
    border-radius: 9999px;
    font-size: 11px;
    font-family: var(--adm-font-mono);
    font-weight: 500;
    background: var(--adm-surface-2);
    color: var(--adm-muted);
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}

.adm-sidebar-nav-item.is-active .adm-sidebar-badge {
    background: var(--adm-accent);
    color: #FFFFFF;
}

.adm-sidebar-divider {
    height: 1px;
    background: var(--adm-border);
    margin: 12px 8px;
}

/* Sidebar Footer User Info */
.adm-sidebar-footer {
    padding: 14px;
    border-top: 1px solid var(--adm-border);
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.adm-logout-btn {
    width: 100%;
    min-height: 38px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(239, 68, 68, 0.08);
    color: #FCA5A5;
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--adm-radius-sm, 6px);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.adm-logout-btn:hover {
    background: rgba(239, 68, 68, 0.18);
    color: #F87171;
    border-color: rgba(239, 68, 68, 0.45);
}

.adm-shell.is-collapsed .adm-logout-btn {
    width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    margin: 0 auto;
}

/* Collapsed Sidebar Adjustments */
.adm-shell.is-collapsed .adm-sidebar {
    width: var(--adm-sidebar-collapsed-w);
}

.adm-shell.is-collapsed .adm-hide-collapsed {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    position: absolute;
}

.adm-shell.is-collapsed .adm-sidebar-toggle-icon {
    transform: rotate(180deg);
}

.adm-shell.is-collapsed .adm-sidebar-header {
    justify-content: center;
    padding: 18px 8px;
}

.adm-shell.is-collapsed .adm-sidebar-nav-item {
    justify-content: center;
    padding: 11px 0;
}

.adm-shell.is-collapsed .adm-sidebar-footer {
    justify-content: center;
    padding: 14px 8px;
}

/* Tooltip in Collapsed State */
.adm-shell.is-collapsed .adm-sidebar-nav-item[data-tooltip] {
    position: relative;
}

.adm-shell.is-collapsed .adm-sidebar-nav-item[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: #181B26;
    border: 1px solid var(--adm-border-strong);
    color: var(--adm-text);
    padding: 6px 10px;
    border-radius: var(--adm-radius-sm);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease, transform 0.15s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    z-index: 100;
}

.adm-shell.is-collapsed .adm-sidebar-nav-item[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(2px);
}

/* Main Content Wrapper next to Sidebar */
.adm-content-wrapper {
    flex: 1;
    margin-left: var(--adm-sidebar-w);
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.adm-shell.is-collapsed .adm-content-wrapper {
    margin-left: var(--adm-sidebar-collapsed-w);
}

/* Top Navigation Bar */
.adm-topbar-header {
    background: rgba(18, 20, 29, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--adm-border);
    position: sticky;
    top: 0;
    z-index: 40;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

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

.adm-mobile-toggle-btn {
    display: none;
    width: 36px;
    height: 36px;
    border-radius: var(--adm-radius-sm);
    background: var(--adm-surface-2);
    border: 1px solid var(--adm-border);
    color: var(--adm-text);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

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

.adm-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 45;
}

.adm-main {
    flex: 1;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 32px 28px 64px;
}

.adm-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.adm-topbar__title {
    font-size: clamp(24px, 3vw, 32px);
    margin-bottom: 0;
}

.adm-topbar__desc {
    display: none !important;
}

/* --------------------------------------------------------------------------
   Metric Cards Grid
   -------------------------------------------------------------------------- */
.adm-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-bottom: 36px;
}

.adm-metric-card {
    background: var(--adm-surface);
    border: 1px solid var(--adm-border);
    border-radius: var(--adm-radius);
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.adm-metric-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: transparent;
    transition: background 0.2s ease;
}

.adm-metric-card:hover {
    transform: translateY(-2px);
    border-color: var(--adm-border-strong);
    box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.5);
}

.adm-metric-card:hover::after {
    background: var(--adm-accent);
}

.adm-metric-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.adm-metric-label {
    font-family: var(--adm-font-mono);
    font-size: 12px;
    color: var(--adm-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.adm-metric-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--adm-surface-2);
    color: #A78BFA;
    display: flex;
    align-items: center;
    justify-content: center;
}

.adm-metric-number {
    font-family: var(--adm-font-display);
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    color: var(--adm-text);
    margin-bottom: 10px;
}

.adm-metric-sub {
    font-size: 13px;
    color: var(--adm-caption);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* --------------------------------------------------------------------------
   Tabs System
   -------------------------------------------------------------------------- */
.adm-tabs-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    border-bottom: 1px solid var(--adm-border);
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: -1px;
}

.adm-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--adm-muted);
    font-family: var(--adm-font-body);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.adm-tab-btn:hover {
    color: var(--adm-text);
}

.adm-tab-btn.is-active {
    color: #FFFFFF;
    border-bottom-color: var(--adm-accent);
}

.adm-tab-pill {
    padding: 1px 7px;
    border-radius: 9999px;
    font-size: 11px;
    font-family: var(--adm-font-mono);
    background: var(--adm-surface-2);
    color: var(--adm-muted);
}

.adm-tab-btn.is-active .adm-tab-pill {
    background: var(--adm-accent-soft);
    color: #C4B5FD;
}

.adm-tab-panel {
    display: none;
}

.adm-tab-panel.is-active {
    display: block;
}

/* --------------------------------------------------------------------------
   Card & Data Table Styling
   -------------------------------------------------------------------------- */
.adm-card {
    background: var(--adm-surface);
    border: 1px solid var(--adm-border);
    border-radius: var(--adm-radius);
    overflow: hidden;
    margin-bottom: 24px;
}

.adm-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--adm-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.adm-card-title {
    font-family: var(--adm-font-display);
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.adm-card-desc {
    display: none !important;
}

.adm-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.adm-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.adm-table th {
    background: rgba(255, 255, 255, 0.02);
    padding: 12px 20px;
    font-family: var(--adm-font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--adm-caption);
    border-bottom: 1px solid var(--adm-border);
    white-space: nowrap;
}

.adm-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--adm-border);
    color: var(--adm-text);
    vertical-align: middle;
}

.adm-table tr:last-child td {
    border-bottom: none;
}

.adm-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.adm-empty-state {
    padding: 48px 24px;
    text-align: center;
    color: var(--adm-muted);
}

.adm-empty-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    color: var(--adm-caption);
}

/* --------------------------------------------------------------------------
   Drawer / Modal Detail Viewer
   -------------------------------------------------------------------------- */
.adm-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.adm-modal-backdrop.is-open {
    display: flex;
}

.adm-modal {
    background: var(--adm-surface);
    border: 1px solid var(--adm-border-strong);
    border-radius: var(--adm-radius-lg);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9);
    position: relative;
}

.adm-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--adm-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.adm-modal-body {
    padding: 24px;
}

.adm-modal-field {
    margin-bottom: 18px;
}

.adm-modal-label {
    font-family: var(--adm-font-mono);
    font-size: 11px;
    text-transform: uppercase;
    color: var(--adm-muted);
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.adm-modal-value {
    color: var(--adm-text);
    font-size: 14px;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Flash Alerts
   -------------------------------------------------------------------------- */
.adm-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--adm-radius-sm);
    margin-bottom: 24px;
    font-size: 14px;
}

.adm-alert--success {
    background: var(--adm-success-soft);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6EE7B7;
}

.adm-alert--danger {
    background: var(--adm-danger-soft);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #FCA5A5;
}

/* --------------------------------------------------------------------------
   Quick Info System Telemetry
   -------------------------------------------------------------------------- */
.adm-telemetry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    padding: 20px 24px;
}

.adm-telemetry-item {
    background: var(--adm-surface-2);
    border: 1px solid var(--adm-border);
    border-radius: var(--adm-radius-sm);
    padding: 14px;
}

.adm-telemetry-label {
    font-family: var(--adm-font-mono);
    font-size: 11px;
    color: var(--adm-muted);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.adm-telemetry-value {
    font-family: var(--adm-font-mono);
    font-size: 13px;
    color: var(--adm-text);
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .adm-sidebar {
        transform: translateX(-100%);
        width: var(--adm-sidebar-w) !important;
    }
    .adm-shell.is-mobile-open .adm-sidebar {
        transform: translateX(0);
    }
    .adm-shell.is-mobile-open .adm-sidebar-backdrop {
        display: block;
    }
    .adm-content-wrapper {
        margin-left: 0 !important;
    }
    .adm-mobile-toggle-btn {
        display: flex;
    }
    .adm-topbar-header {
        padding: 12px 18px;
    }
    .adm-main {
        padding: 24px 16px 48px;
    }
}

@media (max-width: 768px) {
    .adm-topbar {
        flex-direction: column;
    }
    .adm-login-card {
        padding: 24px;
    }
    .adm-topbar-header {
        gap: 10px;
    }
}

/* --------------------------------------------------------------------------
   Quill Rich Text Editor - Obsidian Dark Theme
   -------------------------------------------------------------------------- */
.ql-toolbar.ql-snow {
    background: var(--adm-surface-2) !important;
    border: 1px solid var(--adm-border) !important;
    border-top-left-radius: var(--adm-radius-sm) !important;
    border-top-right-radius: var(--adm-radius-sm) !important;
    padding: 10px 14px !important;
}

.ql-toolbar.ql-snow .ql-stroke {
    stroke: #94A3B8 !important;
}

.ql-toolbar.ql-snow .ql-fill {
    fill: #94A3B8 !important;
}

.ql-toolbar.ql-snow .ql-picker {
    color: #94A3B8 !important;
}

.ql-toolbar.ql-snow button:hover .ql-stroke,
.ql-toolbar.ql-snow button.ql-active .ql-stroke,
.ql-toolbar.ql-snow .ql-picker-label:hover .ql-stroke,
.ql-toolbar.ql-snow .ql-picker-label.ql-active .ql-stroke {
    stroke: #C4B5FD !important;
}

.ql-toolbar.ql-snow button:hover .ql-fill,
.ql-toolbar.ql-snow button.ql-active .ql-fill {
    fill: #C4B5FD !important;
}

.ql-toolbar.ql-snow .ql-picker-label:hover,
.ql-toolbar.ql-snow .ql-picker-label.ql-active {
    color: #FFFFFF !important;
}

.ql-toolbar.ql-snow .ql-picker-options {
    background: #181B26 !important;
    border: 1px solid var(--adm-border-strong) !important;
    border-radius: var(--adm-radius-sm) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7) !important;
    padding: 6px 0 !important;
}

.ql-toolbar.ql-snow .ql-picker-item {
    color: #94A3B8 !important;
}

.ql-toolbar.ql-snow .ql-picker-item:hover,
.ql-toolbar.ql-snow .ql-picker-item.ql-selected {
    color: #FFFFFF !important;
    background: var(--adm-accent-soft) !important;
}

.ql-container.ql-snow {
    background: #0E1017 !important;
    border: 1px solid var(--adm-border) !important;
    border-top: none !important;
    border-bottom-left-radius: var(--adm-radius-sm) !important;
    border-bottom-right-radius: var(--adm-radius-sm) !important;
    font-family: var(--adm-font-body) !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
    color: var(--adm-text) !important;
    min-height: 420px !important;
}

.ql-editor {
    min-height: 420px !important;
    padding: 22px !important;
}

.ql-editor.ql-blank::before {
    color: var(--adm-caption) !important;
    font-style: normal !important;
}

.ql-editor h1,
.ql-editor h2,
.ql-editor h3 {
    font-family: var(--adm-font-display) !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    margin-top: 1.2em !important;
    margin-bottom: 0.5em !important;
}

.ql-editor a {
    color: #A78BFA !important;
    text-decoration: underline !important;
}

.ql-editor blockquote {
    border-left: 3px solid var(--adm-accent) !important;
    padding-left: 16px !important;
    color: #CBD5E1 !important;
    font-style: italic !important;
}

.ql-editor code,
.ql-editor pre {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--adm-border) !important;
    border-radius: 4px !important;
    font-family: var(--adm-font-mono) !important;
    color: #E2E8F0 !important;
}
