/* ==========================================================================
   WireLock - Modern Light Control Panel Design System
   Inspired by AI Studio & Modern Cloud Dashboards
   ========================================================================== */

:root {
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-subtle: #f8fafc;
    --bg-input: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    --accent: #1f7bbe;
    --accent-primary: #2e9bd6;
    --accent-hover: #18659e;
    --accent-light: #eaf5fc;
    --accent-border: #bcddf3;
    
    --danger: #ef4444;
    --danger-light: #fef2f2;
    --danger-text: #b91c1c;
    --danger-border: #fecaca;
    
    --success: #10b981;
    --success-light: #ecfdf5;
    --success-text: #047857;
    --success-border: #a7f3d0;
    
    --warning: #f59e0b;
    --warning-light: #fffbeb;
    --warning-text: #b45309;
    --warning-border: #fde68a;
    
    --info: #3b82f6;
    --info-light: #eff6ff;
    --info-text: #1d4ed8;
    
    --border: #e2e8f0;
    --border-subtle: #f1f5f9;
    --border-hover: #cbd5e1;
    
    --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.06), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
    
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    
    --font-sans: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.15s ease;
}
a:hover {
    color: var(--accent-hover);
}

/* ==========================================================================
   LAYOUT STRUCTURE
   ========================================================================== */

.app-container {
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-page);
}

.workspace-area {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--bg-page);
}

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

/* ==========================================================================
   SIDEBAR (AI STUDIO MODERN LIGHT)
   ========================================================================== */

.sidebar {
    width: 270px;
    background: #ffffff;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: sticky;
    top: 0;
    z-index: 50;
    flex-shrink: 0;
    box-shadow: 1px 0 3px rgba(15, 23, 42, 0.02);
}

.sidebar-brand-box {
    padding: 20px 20px 18px 20px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-info-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-shield-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #132239 0%, #1f7bbe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    box-shadow: 0 4px 14px -3px rgba(31, 123, 190, 0.4);
    flex-shrink: 0;
}

.brand-name-row {
    display: flex;
    align-items: center;
    gap: 7px;
}

.brand-name {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
}

.badge-vpn-pill {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #1f7bbe;
    background: #eaf5fc;
    padding: 2px 6px;
    border-radius: 5px;
    border: 1px solid rgba(188, 221, 243, 0.8);
    text-transform: uppercase;
}

.brand-subtext {
    font-size: 11px;
    color: var(--text-light);
    font-weight: 600;
    font-family: var(--font-mono);
    margin: 1px 0 0 0;
}

.sidebar-close-btn {
    display: none;
    background: transparent;
    border: none;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
}

/* User Profile Card */
.sidebar-user-card {
    padding: 12px 14px;
    margin: 14px 14px 6px 14px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.user-row-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-info-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #bcddf3 0%, #8fcbed 100%);
    color: #134e7a;
    font-weight: 800;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
    flex-shrink: 0;
}

.user-name-text {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.2;
}

.user-role-badge {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    background: #e2e8f0;
    padding: 1px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 2px;
}

.lang-toggle-box {
    background: #e2e8f0;
    padding: 2px;
    border-radius: 8px;
    display: inline-flex;
    gap: 2px;
}

.lang-pill {
    border: none;
    background: transparent;
    padding: 3px 6px;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.lang-pill.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Sidebar Nav Scroll */
.sidebar-nav-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 10px 12px;
}

.nav-section-title {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: var(--text-light);
    text-transform: uppercase;
    padding: 0 10px;
    margin: 0 0 6px 0;
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0;
    margin: 0;
}

.nav-item {
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}

.nav-link:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.nav-link.active {
    background: #eaf5fc;
    color: #1f7bbe;
    font-weight: 700;
}

.nav-link.active .nav-link-icon {
    color: #1f7bbe;
}

.nav-link-icon {
    font-size: 14px;
    width: 20px;
    text-align: center;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-badge {
    margin-left: auto;
    font-size: 11px;
    font-weight: 700;
    background: #e2e8f0;
    color: #475569;
    padding: 2px 7px;
    border-radius: 9999px;
}

.nav-link.active .nav-badge {
    background: #dceffa;
    color: #18659e;
}

.sidebar-footer-box {
    padding: 14px 18px;
    border-top: 1px solid var(--border-subtle);
}

.sidebar-logout-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    color: #ef4444;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}

.sidebar-logout-btn:hover {
    background: #fef2f2;
}

/* ==========================================================================
   TOP STICKY APPLICATION HEADER
   ========================================================================== */

.top-app-header {
    height: 68px;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 40;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
    gap: 16px;
}

.header-breadcrumb-box {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.breadcrumb-root {
    font-weight: 500;
    color: var(--text-muted);
}

.breadcrumb-separator {
    color: #cbd5e1;
    font-size: 13px;
}

.breadcrumb-current {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.2px;
}

.header-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    color: #047857;
    margin-left: 6px;
}

.pill-dot-emerald {
    width: 7px;
    height: 7px;
    border-radius: 9999px;
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.15); }
}

.header-search-container {
    flex: 1;
    max-width: 420px;
    margin: 0 16px;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
}

.search-input-wrapper .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 13px;
    pointer-events: none;
}

.search-input-wrapper .search-input {
    width: 100%;
    padding: 9px 14px 9px 38px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 13px;
    color: #0f172a;
    outline: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-input-wrapper .search-input:focus {
    background: #ffffff;
    border-color: #2e9bd6;
    box-shadow: 0 0 0 3px rgba(46, 155, 214, 0.12);
}

.header-actions-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-header-refresh,
.btn.btn-header-refresh {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    background: #ffffff !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    color: #334155 !important;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-header-refresh:hover,
.btn.btn-header-refresh:hover {
    background: #f8fafc !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

.btn-header-refresh i {
    color: #2e9bd6 !important;
}

.btn-header-add,
.btn.btn-header-add {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #2e9bd6 0%, #1f7bbe 100%) !important;
    border: 1px solid #1f7bbe !important;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 700;
    color: #ffffff !important;
    text-decoration: none;
    box-shadow: 0 4px 12px -2px rgba(46, 155, 214, 0.35);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-header-add:hover,
.btn.btn-header-add:hover {
    background: linear-gradient(135deg, #1f7bbe 0%, #18659e 100%) !important;
    border-color: #18659e !important;
    box-shadow: 0 6px 16px -2px rgba(46, 155, 214, 0.45);
    transform: translateY(-1px);
    color: #ffffff !important;
}

.btn-header-add i,
.btn-header-add span,
.btn.btn-header-add i,
.btn.btn-header-add span {
    color: #ffffff !important;
}

/* ==========================================================================
   CARDS, PANELS & SURFACES
   ========================================================================== */

.card {
    background: #ffffff !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-xs);
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: #ffffff !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md);
    padding: 20px 22px;
    box-shadow: var(--shadow-xs);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.stat-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 6px;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    display: block;
}

.card-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.card-value {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.stat-footnote {
    margin-top: 8px;
    color: var(--text-light);
    font-size: 12px;
    font-weight: 500;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

.dashboard-stat-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
    margin-bottom: 24px;
    overflow-x: auto;
}

.dashboard-stat-grid .stat-card {
    padding: 14px 16px;
    min-width: 0;
}

.dashboard-stat-grid .card-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-stat-grid .card-value {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.dashboard-stat-grid .stat-footnote {
    margin-top: 6px;
    color: var(--text-light);
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   SYSTEM TELEMETRY GRID (CPU, RAM, DISK, BANDWIDTH)
   ========================================================================== */

.system-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

@media (max-width: 1024px) {
    .system-metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .system-metrics-grid {
        grid-template-columns: 1fr;
    }
}

.metric-card {
    padding: 16px 18px;
    border-radius: var(--radius-md);
    background: #ffffff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.metric-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.metric-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.metric-title i {
    color: var(--accent);
    font-size: 12px;
}

.metric-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 9999px;
    border: 1px solid transparent;
}

.badge-cpu { background: #eaf5fc; color: #1f7bbe; border-color: #dceffa; }
.badge-ram { background: #eff6ff; color: #2563eb; border-color: #dbeafe; }
.badge-disk { background: #fdf4ff; color: #a855f7; border-color: #f3e8ff; }
.badge-net { background: #f0fdf4; color: #16a34a; border-color: #dcfce7; }

.metric-value-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.metric-number {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.metric-sub {
    font-size: 11.5px;
    font-weight: 600;
    color: #64748b;
    font-family: var(--font-mono);
}

.metric-progress-bar {
    width: 100%;
    height: 6px;
    border-radius: 9999px;
    background: #f1f5f9;
    overflow: hidden;
    margin-bottom: 8px;
}

.metric-progress-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.4s ease;
}

.fill-cpu { background: linear-gradient(90deg, #2ec6d4, #1f7bbe); }
.fill-ram { background: linear-gradient(90deg, #3b82f6, #1d4ed8); }
.fill-disk { background: linear-gradient(90deg, #a855f7, #7e22ce); }

.metric-footnote {
    font-size: 11px;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.metric-net-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-family: var(--font-mono);
    color: #475569;
    margin-bottom: 8px;
}

.metric-net-strip span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f8fafc;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--border);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-hover);
    background: #ffffff;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    line-height: 1.4;
}

.btn:hover {
    background: #f8fafc;
    color: #0f172a;
    border-color: #94a3b8;
}

.btn-primary {
    background: linear-gradient(135deg, #2e9bd6 0%, #1f7bbe 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 12px -2px rgba(46, 155, 214, 0.35) !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1f7bbe 0%, #18659e 100%) !important;
    box-shadow: 0 6px 16px -2px rgba(46, 155, 214, 0.45) !important;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #ffffff !important;
    color: var(--text-secondary) !important;
    border: 1px solid var(--border-hover) !important;
}

.btn-secondary:hover {
    background: #f8fafc !important;
    color: #0f172a !important;
}

.btn-success {
    background: #ecfdf5 !important;
    color: #047857 !important;
    border: 1px solid #a7f3d0 !important;
}

.btn-success:hover {
    background: #d1fae5 !important;
    color: #065f46 !important;
}

.btn-warning {
    background: #fffbeb !important;
    color: #b45309 !important;
    border: 1px solid #fde68a !important;
}

.btn-warning:hover {
    background: #fef3c7 !important;
}

.btn-danger {
    background: #fef2f2 !important;
    color: #b91c1c !important;
    border: 1px solid #fecaca !important;
}

.btn-danger:hover {
    background: #fee2e2 !important;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: var(--radius-sm);
}

/* ==========================================================================
   FORM CONTROLS & INPUTS
   ========================================================================== */

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    background-color: #ffffff;
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-md);
    color: #0f172a;
    font-family: inherit;
    font-size: 13.5px;
    outline: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control:focus {
    border-color: #2e9bd6;
    box-shadow: 0 0 0 3px rgba(46, 155, 214, 0.12);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* ==========================================================================
   TABLES
   ========================================================================== */

.table-container {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
}

.data-table, table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.data-table thead th, table thead th {
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    font-size: 11.5px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.data-table tbody td, table tbody td {
    padding: 13px 18px;
    border-bottom: 1px solid var(--border-subtle);
    color: #334155;
    vertical-align: middle;
}

.data-table tbody tr:last-child td, table tbody tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr:hover, table tbody tr:hover {
    background-color: #fafafa;
}

/* Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.status-active {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.status-inactive {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.status-idle {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

/* ==========================================================================
   ALERTS
   ========================================================================== */

.alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
    font-weight: 500;
}

.alert-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.alert-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #b45309;
}

/* ==========================================================================
   HERO / BANNER CARDS
   ========================================================================== */

.dashboard-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
    padding: 24px 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-xs);
}

.eyebrow {
    margin-bottom: 6px;
    color: #1f7bbe;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dashboard-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: 6px;
}

.dashboard-subtitle {
    color: var(--text-muted);
    font-size: 0.92rem;
    max-width: 650px;
    line-height: 1.5;
}

.dashboard-hero-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-chip {
    padding: 8px 14px;
    border-radius: var(--radius-md);
    background: #f8fafc;
    border: 1px solid var(--border);
    font-size: 12px;
}

.hero-chip-label {
    display: block;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

/* ==========================================================================
   CHECKLIST & TERMINAL BOXES
   ========================================================================== */

.checklist-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
    overflow-x: auto;
}

.checklist-item {
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: #f8fafc;
    min-width: 0;
    overflow: hidden;
}

.checklist-item-ok {
    border-color: #a7f3d0;
    background: #f0fdf4;
}

.checklist-item-warning {
    border-color: #fde68a;
    background: #fffbeb;
}

.checklist-item-danger {
    border-color: #fecaca;
    background: #fef2f2;
}

.checklist-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
}

.checklist-title-row strong {
    font-size: 11px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.checklist-title-row .status-badge {
    font-size: 9px;
    padding: 1px 4px;
    flex-shrink: 0;
}

.checklist-item p {
    font-size: 10.5px;
    line-height: 1.3;
    color: #64748b;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dashboard-split-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.dashboard-panel {
    min-width: 0;
}

.dashboard-panel-wide {
    width: 100%;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.panel-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

/* Online Terminal Rows (Single-line Compact Layout) */
.terminal-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.terminal-card,
.terminal-row-single {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 14px;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #ffffff;
    font-size: 12.5px;
    box-shadow: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.terminal-card:hover,
.terminal-row-single:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.terminal-col-device {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 170px;
    flex-shrink: 0;
}

.terminal-col-device strong {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.terminal-col-device .status-badge {
    font-size: 9.5px;
    padding: 1px 6px;
}

.terminal-col-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    color: #64748b;
    flex-shrink: 0;
}

.terminal-col-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.terminal-col-meta i {
    color: var(--accent);
    font-size: 11px;
}

.terminal-col-traffic {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    font-size: 11.5px;
    color: #475569;
    font-family: var(--font-mono);
    margin-left: auto;
    flex-shrink: 0;
}

.terminal-col-traffic span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    background: #f8fafc;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.terminal-col-traffic i {
    color: #94a3b8;
    font-size: 10px;
}

/* Recent Activity List */
.activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.activity-item {
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: #f8fafc;
    border: 1px solid var(--border);
}

.activity-action {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.activity-detail {
    color: #475569;
    font-size: 12.5px;
    line-height: 1.5;
}

.activity-time {
    color: var(--text-muted);
    font-size: 11px;
    margin-top: 6px;
    font-family: var(--font-mono);
}

/* Peer Health Table (Cihaz Erişim Özeti) */
.dashboard-peer-table {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #ffffff;
}

.dashboard-peer-row {
    display: grid;
    grid-template-columns: minmax(160px, 1.2fr) minmax(140px, 1fr) minmax(110px, 0.8fr) 100px minmax(140px, 1fr) minmax(140px, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 13px;
    transition: background 0.15s ease;
}

.dashboard-peer-row:last-child {
    border-bottom: none;
}

.dashboard-peer-row:hover:not(.dashboard-peer-row-head) {
    background: #f8fafc;
}

.dashboard-peer-row-head {
    background: #f8fafc;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
}

.dashboard-peer-row span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-peer-row strong {
    display: block;
    font-weight: 600;
    color: #0f172a;
}

.dashboard-peer-row small {
    display: block;
    color: var(--text-muted);
    font-size: 11.5px;
    margin-top: 2px;
}

.dashboard-row-handshake,
.dashboard-row-transfer {
    font-size: 12px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

/* Peer Table Pagination */
.table-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 16px;
    background: #f8fafc;
    border-top: 1px solid var(--border);
    font-size: 12px;
}

.pagination-info {
    color: var(--text-muted);
    font-weight: 500;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pagination-page-btn {
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: #ffffff;
    color: #475569;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pagination-page-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.pagination-page-btn.active {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

/* Raw WireGuard Interface Console */
.terminal-console {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #0f172a;
    color: #f8fafc;
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.6;
    overflow-x: auto;
    max-height: 280px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

/* ==========================================================================
   FILE MANAGER WORKBENCH & HELP GUIDE
   ========================================================================== */

.file-shell {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.file-ribbon {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    box-shadow: var(--shadow-xs);
}

.file-address-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #ffffff;
    font-size: 13px;
    color: var(--text-muted);
}

.file-address-label {
    padding: 2px 8px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.file-workbench {
    display: grid;
    grid-template-columns: 240px 380px minmax(0, 1.6fr);
    gap: 16px;
    min-height: calc(100vh - 240px);
}

.file-tree-pane,
.file-list-pane,
.file-editor-pane {
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: #ffffff;
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    display: flex;
    flex-direction: column;
}

.file-pane-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: #f8fafc;
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
}

.file-tree-root,
.file-tree a {
    display: block;
    padding: 7px 12px;
    color: #475569;
    font-size: 13px;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.15s;
}

.file-tree a:hover,
.file-tree a.active {
    color: #1f7bbe;
    background: #eaf5fc;
    font-weight: 600;
}

.file-tree-node {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    padding: 2px 8px;
}

.file-tree-toggle {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 11px;
}

.file-create-form {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr) 44px;
    gap: 8px;
    padding: 12px;
    border-bottom: 1px solid var(--border);
    background: #f8fafc;
}

.explorer-table {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: calc(75vh - 120px);
    background: #ffffff;
}

.explorer-row {
    display: grid;
    grid-template-columns: minmax(160px, 1.8fr) 130px 85px;
    gap: 12px;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 13px;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.explorer-row:hover {
    background: #f8fafc;
    color: #0f172a;
}

.explorer-row.active {
    background: #eaf5fc;
    color: #1f7bbe;
    font-weight: 600;
}

.explorer-head {
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 2;
}

.explorer-row span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.explorer-row span:nth-child(2) {
    font-size: 11.5px;
    color: var(--text-muted);
}

.explorer-row span:nth-child(3) {
    font-size: 11.5px;
    text-align: right;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.explorer-head span:nth-child(3) {
    text-align: right;
}

.explorer-row span i {
    width: 20px;
    margin-right: 6px;
    font-size: 14px;
    color: #1f7bbe;
    text-align: center;
}

.explorer-row span i.fa-folder {
    color: #2e9bd6;
}

.explorer-row span i.fa-file,
.explorer-row span i.fa-file-code,
.explorer-row span i.fa-file-lines {
    color: #64748b;
}

.explorer-row span i.fa-arrow-turn-up {
    color: #94a3b8;
}

.file-empty-editor {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 40px 24px;
    text-align: center;
    color: var(--text-muted);
    gap: 12px;
    margin: auto;
}

.file-empty-editor i {
    font-size: 42px;
    color: #cbd5e1;
    margin-bottom: 6px;
}

.file-empty-editor strong {
    font-size: 15px;
    font-weight: 700;
    color: #334155;
}

.file-empty-editor p {
    font-size: 13px;
    max-width: 320px;
    margin: 0;
    line-height: 1.5;
    color: #64748b;
}

.editor-tabbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    background: #f8fafc;
}

.editor-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 13px;
    color: #0f172a;
}

.editor-tab i {
    color: #1f7bbe;
}

.editor-tab span {
    color: var(--text-muted);
    font-size: 11px;
    background: #e2e8f0;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 600;
}

.editor-meta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 16px;
    border-bottom: 1px solid var(--border);
    background: #ffffff;
    font-size: 11.5px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.editor-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    background: #f8fafc;
}

.CodeMirror {
    height: 540px !important;
    font-family: var(--font-mono) !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
}

/* ==========================================================================
   ABOUT & HELP PAGES
   ========================================================================== */

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 20px;
}

.about-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-xs);
    position: relative;
    display: flex;
    flex-direction: column;
}

.about-card-wide {
    grid-column: 1 / -1;
}

.about-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: #eaf5fc;
    color: #1f7bbe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 16px;
    border: 1px solid #dceffa;
}

.about-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 16px 0;
}

.about-info-list {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    row-gap: 12px;
    column-gap: 16px;
    font-size: 13.5px;
    line-height: 1.5;
    margin: 0;
}

.about-info-list dt {
    color: var(--text-muted);
    font-weight: 600;
}

.about-info-list dd {
    color: var(--text-primary);
    margin: 0;
    word-break: break-all;
}

.about-info-list dd a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.about-info-list dd a:hover {
    text-decoration: underline;
}

.about-product-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.about-product-strip span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    background: #f8fafc;
    border: 1px solid var(--border);
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.about-product-strip span i {
    color: var(--accent);
}

.help-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 20px;
    align-items: start;
}

.help-toc {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    position: sticky;
    top: 90px;
    box-shadow: var(--shadow-xs);
}

.help-document {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 36px;
    box-shadow: var(--shadow-xs);
    line-height: 1.7;
    color: #334155;
}

.help-document h1 {
    color: #0f172a;
    font-size: 22px;
    font-weight: 800;
    margin: 28px 0 14px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.help-document h1:first-child {
    margin-top: 0;
}

.help-document h2 {
    color: #0f172a;
    font-size: 18px;
    font-weight: 700;
    margin: 24px 0 12px 0;
}

.help-document h3 {
    color: #0f172a;
    font-size: 15px;
    font-weight: 700;
    margin: 18px 0 8px 0;
}

.help-document p {
    margin: 0 0 14px 0;
    color: #334155;
    line-height: 1.7;
}

.help-document ul,
.help-document ol {
    margin: 0 0 16px 0;
    padding-left: 22px;
    color: #334155;
    line-height: 1.7;
}

.help-document li {
    margin-bottom: 6px;
}

.help-document table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 13px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.help-document th,
.help-document td {
    padding: 10px 14px;
    border: 1px solid var(--border);
    text-align: left;
}

.help-document th {
    background: #f8fafc;
    font-weight: 700;
    color: #0f172a;
}

.help-document tr:nth-child(even) td {
    background: #fcfdfe;
}

.help-document pre {
    background: #0f172a;
    color: #f8fafc;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 16px 0;
    font-family: var(--font-mono);
    font-size: 12.5px;
    line-height: 1.6;
}

.help-document code {
    background: #eaf5fc;
    color: #1f7bbe;
    padding: 2px 6px;
    border-radius: 5px;
    font-family: var(--font-mono);
    font-size: 12px;
    border: 1px solid #dceffa;
}

.help-document pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    border: none;
}

.help-document blockquote {
    border-left: 4px solid var(--accent);
    background: #eaf5fc;
    padding: 12px 18px;
    margin: 16px 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: #475569;
}

/* ==========================================================================
   MODALS & TOASTS
   ========================================================================== */

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1050;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex !important;
}

.modal-content, .modal {
    background: #ffffff !important;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
    animation: modalPop 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

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

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-close {
    background: transparent;
    border: none;
    font-size: 22px;
    color: var(--text-muted);
    cursor: pointer;
}

.btn-close:hover {
    color: #0f172a;
}

.toast-notice {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #10b981;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-weight: 600;
    font-size: 13.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast-notice.show {
    transform: translateY(0);
    opacity: 1;
}

/* ==========================================================================
   MOBILE NAVBAR & RESPONSIVENESS
   ========================================================================== */

/* Hidden on Desktop */
.mobile-navbar {
    display: none !important;
}

.sidebar-backdrop {
    display: none !important;
}

@media (max-width: 1024px) {
    .sidebar {
        position: fixed;
        left: -290px;
        top: 0;
        bottom: 0;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 50;
    }
    
    .sidebar.open {
        transform: translateX(290px);
    }
    
    .sidebar-close-btn {
        display: block;
    }
    
    .sidebar-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.5);
        backdrop-filter: blur(4px);
        z-index: 45;
    }
    
    .sidebar-backdrop.active {
        display: block !important;
    }
    
    .mobile-navbar {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 12px 18px;
        background: #ffffff;
        border-bottom: 1px solid var(--border);
        height: 60px;
        position: sticky;
        top: 0;
        z-index: 40;
    }
    
    .mobile-toggle {
        background: transparent;
        border: none;
        color: var(--text-primary);
        font-size: 20px;
        cursor: pointer;
        padding: 6px 10px;
        border-radius: 6px;
    }
    .mobile-toggle:hover {
        background: #f1f5f9;
    }

    .mobile-logout {
        color: var(--text-muted);
        font-size: 18px;
        padding: 6px 10px;
    }
    .mobile-logout:hover {
        color: #ef4444;
    }
    
    .mobile-brand {
        display: flex;
        align-items: center;
        gap: 8px;
        font-weight: 800;
        font-size: 16px;
    }
    
    .brand-shield-sm {
        width: 28px;
        height: 28px;
        border-radius: 8px;
        background: linear-gradient(135deg, #132239 0%, #1f7bbe 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 13px;
    }
    
    .top-app-header {
        padding: 0 16px;
    }
    
    .main-content {
        padding: 16px;
    }
    
    .header-search-container {
        display: none;
    }

    .file-workbench {
        grid-template-columns: 1fr;
    }

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

    .terminal-card {
        grid-template-columns: 1fr;
    }
}

/* Animated Bandwidth Progress Bars */
.animated-bandwidth-bar {
    position: relative;
    overflow: hidden;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(46, 155, 214, 0.2);
}

.animated-bandwidth-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.45) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: bandwidthShimmer 2.2s infinite linear;
    transform: translateX(-100%);
}

@keyframes bandwidthShimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* SweetAlert2 Theme Integration */
.swal2-popup {
    font-family: inherit !important;
    border-radius: 18px !important;
    box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.2) !important;
}

.swal2-title {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
}

.swal2-html-container {
    font-size: 0.925rem !important;
    color: #475569 !important;
    line-height: 1.5 !important;
}

.swal2-confirm {
    box-shadow: 0 4px 12px rgba(31, 123, 190, 0.25) !important;
    font-weight: 700 !important;
    padding: 10px 22px !important;
    border-radius: 10px !important;
}

.swal2-cancel {
    font-weight: 600 !important;
    padding: 10px 20px !important;
    border-radius: 10px !important;
}

/* ==========================================================================
   Real-time Oscilloscope Traffic Flow Styles
   ========================================================================== */
.oscilloscope-card {
    background: #0b1120;
    border: 1px solid #1e293b;
    border-radius: 16px;
    padding: 22px 24px;
    margin-bottom: 24px;
    box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.oscilloscope-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.4), rgba(59, 130, 246, 0.4), transparent);
}

.oscilloscope-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.oscilloscope-title-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.oscilloscope-radar-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.oscilloscope-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.oscilloscope-title {
    font-family: var(--font-mono, monospace);
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.05em;
    color: #f8fafc;
}

.oscilloscope-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-mono, monospace);
    text-transform: uppercase;
}

.oscilloscope-pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: oscPulse 1.4s infinite;
}

@keyframes oscPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

.oscilloscope-subtitle {
    color: #64748b;
    font-size: 12px;
    margin-top: 3px;
    font-family: var(--font-mono, monospace);
}

.oscilloscope-metrics-pills {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.osc-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-family: var(--font-mono, monospace);
    font-size: 12px;
    font-weight: 600;
    background: #0f172a;
    border: 1px solid #1e293b;
}

.osc-pill-rx {
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.06);
}

.osc-pill-tx {
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.06);
}

.osc-pill-peak {
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.06);
}

.osc-pill-val {
    font-weight: 800;
}

.oscilloscope-screen-container {
    position: relative;
    width: 100%;
    height: 175px;
    background: #060b14;
    border: 1px solid #1e293b;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.oscilloscope-y-axis {
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px 0;
    color: #475569;
    font-family: var(--font-mono, monospace);
    font-size: 11px;
    z-index: 2;
    pointer-events: none;
    font-weight: 600;
}

#oscilloscopeCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

.oscilloscope-scan-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, rgba(56, 189, 248, 0) 0%, rgba(56, 189, 248, 0.9) 50%, rgba(56, 189, 248, 0) 100%);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.8);
    pointer-events: none;
    animation: radarSweep 4s infinite linear;
}

@keyframes radarSweep {
    0% { left: 0%; opacity: 0; }
    5% { opacity: 1; }
    95% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

.oscilloscope-bottom-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 768px) {
    .oscilloscope-bottom-panels {
        grid-template-columns: 1fr;
    }
}

.osc-bottom-panel {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid #1e293b;
    border-radius: 10px;
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.osc-panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.osc-panel-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.osc-bottom-rx .osc-panel-icon {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.osc-bottom-tx .osc-panel-icon {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.osc-panel-label {
    font-family: var(--font-mono, monospace);
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}

.osc-panel-speed {
    font-family: var(--font-mono, monospace);
    font-size: 15px;
    font-weight: 800;
}

.osc-bottom-rx .osc-panel-speed {
    color: #10b981;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.osc-bottom-tx .osc-panel-speed {
    color: #3b82f6;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

.osc-vu-meter {
    display: flex;
    gap: 3px;
    align-items: center;
}

.osc-vu-bar {
    width: 5px;
    height: 18px;
    border-radius: 2px;
    background: #1e293b;
    transition: background 0.12s ease, box-shadow 0.12s ease;
}

.osc-bottom-rx .osc-vu-bar.active {
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
}

.osc-bottom-tx .osc-vu-bar.active {
    background: #3b82f6;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.8);
}



/* WireLock logo (replaces the old shield icon boxes) */
.brand-logo-img { display: block; flex-shrink: 0; border-radius: 10px; object-fit: contain; }
.mobile-brand .brand-logo-img { border-radius: 7px; }

/* ---------------------------------------------------------------
   WireLock: dashboard tiles fit any count; phone layout (≤ 768px):
   the top bar keeps the page title and icon buttons, and tables
   marked .wl-cards become one card per row (labels from data-label).
   --------------------------------------------------------------- */
.dashboard-stat-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    overflow-x: visible;
}

.help-toc a:hover { background: var(--accent-light); color: var(--accent); }
.help-document strong { color: #0f172a; }

@media (max-width: 768px) {
    .top-app-header { gap: 8px; }
    .header-breadcrumb-box { min-width: 0; flex: 1; }
    .breadcrumb-root, .breadcrumb-separator, .header-status-pill { display: none; }
    .breadcrumb-current { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .header-actions-box { flex-shrink: 0; gap: 8px; }
    .btn-header-refresh .hidden-sm, .btn-header-add span { display: none; }
    .btn.btn-header-refresh, .btn.btn-header-add { padding: 0 12px; }

    .table-container, .table-responsive { overflow: visible !important; background: transparent; border: 0; box-shadow: none; }
    .data-table.wl-cards, .data-table.wl-cards tbody, .data-table.wl-cards tr, .data-table.wl-cards td { display: block; width: 100%; }
    .data-table.wl-cards thead { display: none; }
    .data-table.wl-cards tbody tr {
        background: #ffffff;
        border: 1px solid var(--border);
        border-radius: 12px;
        margin-bottom: 12px;
        padding: 10px 14px;
        box-shadow: var(--shadow-xs);
    }
    .data-table.wl-cards tbody tr:hover { background: #ffffff; }
    .data-table.wl-cards tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        padding: 6px 0 !important;
        border: 0 !important;
        text-align: right !important;
        min-width: 0;
    }
    .data-table.wl-cards tbody td[data-label]::before {
        content: attr(data-label);
        flex-shrink: 0;
        text-align: left;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: var(--text-muted);
    }
    .data-table.wl-cards tbody td.cell-name {
        display: block;
        text-align: left !important;
        padding-bottom: 10px !important;
        margin-bottom: 4px;
        border-bottom: 1px solid var(--border-subtle) !important;
    }
    .data-table.wl-cards tbody td.cell-actions { justify-content: flex-end; padding-top: 10px !important; }
    .data-table.wl-cards tbody td[colspan] { display: block; text-align: center !important; }

    .dashboard-peer-row { grid-template-columns: 1fr 1fr; gap: 6px 14px; }
    .dashboard-peer-row-head { display: none; }
    .dashboard-peer-table { border: 0; }
    .dashboard-peer-row.peer-table-item { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; }

    .help-layout { grid-template-columns: 1fr !important; }
    .help-document.card { padding: 20px !important; }
}

/* ==========================================================================
   SOL MENÜ: KOYU LACİVERT (yeni tasarımın menü rengi; yalnızca renkler)
   ========================================================================== */
.sidebar { background: linear-gradient(180deg, #0b1b33 0%, #0e2240 100%); border-right: 0; box-shadow: none; }
.sidebar-brand-box, .sidebar-footer-box { border-color: rgba(255, 255, 255, 0.07); }
.sidebar .brand-name { color: #ffffff; }
.sidebar .badge-vpn-pill { color: #93c5fd; background: rgba(29, 111, 242, 0.18); border-color: rgba(147, 197, 253, 0.25); }
.sidebar .brand-subtext { color: #7d8da6; }
.sidebar .sidebar-close-btn { color: #c6d2e3; }
.sidebar .sidebar-user-card { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.08); }
.sidebar .user-avatar-circle { border-color: #0e2240; }
.sidebar .user-name-text { color: #ffffff; }
.sidebar .user-role-badge { color: #c6d2e3; background: rgba(255, 255, 255, 0.08); }
.sidebar .lang-toggle-box { background: rgba(255, 255, 255, 0.08); }
.sidebar .lang-pill { color: #7d8da6; }
.sidebar .lang-pill.active { background: #1d6ff2; color: #ffffff; box-shadow: none; }
.sidebar .nav-section-title { color: #7d8da6; }
.sidebar .nav-link { color: #c6d2e3; }
.sidebar .nav-link-icon { color: #7d8da6; }
.sidebar .nav-link:hover { background: rgba(255, 255, 255, 0.06); color: #ffffff; }
.sidebar .nav-link:hover .nav-link-icon { color: #ffffff; }
.sidebar .nav-link.active { background: #1d6ff2; color: #ffffff; box-shadow: 0 6px 16px rgba(29, 111, 242, 0.35); }
.sidebar .nav-link.active .nav-link-icon { color: #ffffff; }
.sidebar .nav-badge { background: rgba(255, 255, 255, 0.08); color: #c6d2e3; }
.sidebar .nav-link.active .nav-badge { background: rgba(255, 255, 255, 0.2); color: #ffffff; }
.sidebar .sidebar-logout-btn { color: #f87171; }
.sidebar .sidebar-logout-btn:hover { background: rgba(248, 113, 113, 0.1); }
.sidebar-nav-scroll { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.15) transparent; }

/* İçerik alanı ekranı doldursun (geniş ekranda 1440px sınırı iki yanda boşluk bırakıyordu) */
.main-content { max-width: none; padding: 24px 28px; }

/* Yazı tipi: Inter (başlıkta zaten yükleniyor), biraz daha büyük */
:root { --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-feature-settings: 'cv11', 'ss01'; }
.main-content, .top-app-header { zoom: 1.08; }
.sidebar .brand-name { font-size: 18px; }
.sidebar .brand-subtext { font-size: 12px; }
.sidebar .user-name-text { font-size: 14px; }
.sidebar .user-role-badge { font-size: 11px; }
.sidebar .lang-pill { font-size: 11px; }
.sidebar .nav-section-title { font-size: 11px; }
.sidebar .nav-link { font-size: 14.5px; padding: 7px 12px; }
.sidebar .nav-link-icon { font-size: 15px; }
.sidebar .nav-badge { font-size: 11.5px; }
.sidebar .sidebar-logout-btn { font-size: 14.5px; }
@media (max-width: 768px) { .main-content, .top-app-header { zoom: 1; } }

/* Açılır pencereler ekrana sığsın: başlık ve alt düğmeler sabit, yalnızca içerik kayar */
.modal-overlay { padding: 24px; }
.modal-content { display: flex; flex-direction: column; max-height: calc(100vh - 48px); }
.modal-content > form { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.modal-content > .modal-body, .modal-content > form > .modal-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.modal-header, .modal-footer { flex-shrink: 0; }
/* İçerik %8 büyütülmüş alanda (zoom) yükseklik de büyür; ekrana göre geri al */
@media (min-width: 769px) { .main-content .modal-content { max-height: calc((100vh - 48px) / 1.08); } }

/* Müşteri ekle / düzenle: geniş ekranda iki sütun */
#addCustomerModal .modal-content, #editCustomerModal .modal-content { max-width: 860px !important; }
@media (min-width: 900px) {
    #addCustomerModal .modal-body, #editCustomerModal .modal-body { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; align-items: start; }
    #addCustomerModal .modal-body > *, #editCustomerModal .modal-body > * { min-width: 0; }
    #addCustomerModal .form-group:has(.js-license-date), #editCustomerModal .form-group:has(.js-license-date) { grid-column: 1 / -1; }
}
#addCustomerModal .form-group small, #editCustomerModal .form-group small { display: block; margin-top: 5px; font-size: 12px; line-height: 1.45; }
