/* OpenVPN Web Admin - Estilos */

:root {
    --bg-primary: #121f42;
    --bg-secondary: #1a2e5a;
    --danger-color: #ac4f31;
    --surface-color: #ffffff;
    --text-primary: #374151;
    --text-muted: #6b7280;
    --border-color: #d1d5db;
    --placeholder-color: #9ca3af;
    --success-color: #2f8f58;
    --warning-color: #f3b63f;
    --info-color: #2a7db8;
}

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

body {
    font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    background: linear-gradient(180deg, #eef2f7 0%, #f7f9fc 100%);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Login Page */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 24px;
    background: radial-gradient(circle at 20% 20%, #253c74 0%, var(--bg-primary) 45%, #0e1734 100%);
}

.login-layout {
    width: 100%;
    max-width: 1120px;
    display: grid;
    grid-template-columns: 1.1fr minmax(320px, 420px);
    gap: 24px;
    align-items: stretch;
}

.login-vision-panel {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 20px 45px rgba(8, 14, 32, 0.35);
    color: #edf2ff;
}

.login-vision-panel h1 {
    font-size: 2rem;
    line-height: 1.1;
    margin: 14px 0 12px;
    color: #ffffff;
}

.login-vision-panel p {
    color: rgba(236, 243, 255, 0.86);
    max-width: 54ch;
    margin-bottom: 18px;
}

.login-checklist {
    margin-bottom: 18px;
}

.login-mini-mock {
    max-width: 520px;
}

.login-box {
    background: var(--surface-color);
    padding: 32px 32px 24px;
    border-radius: 12px;
    box-shadow: 0 18px 48px rgba(12, 22, 50, 0.28);
    width: 100%;
    max-width: 420px;
}

.login-brand-wrap {
    text-align: center;
    margin-bottom: 20px;
}

.login-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 8px;
    color: var(--bg-secondary);
    font-size: 1.2rem;
    font-weight: 700;
}

.login-subtitle {
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 0.75rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.75rem;
    color: #525a6b;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    color: var(--text-primary);
}

.form-control::placeholder {
    color: var(--placeholder-color);
}

.form-control:focus {
    outline: none;
    border-color: var(--bg-secondary);
    box-shadow: 0 0 0 3px rgba(26, 46, 90, 0.12);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--bg-secondary);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background-color: var(--bg-primary);
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-success:hover {
    background-color: #218838;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

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

.btn-full {
    width: 100%;
}

.btn-fill {
    flex: 1;
}

/* Dashboard Layout */
.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 20px;
    padding: 20px;
}

.app-sidebar {
    background: linear-gradient(165deg, var(--bg-secondary) 0%, var(--bg-primary) 78%);
    color: #f8fafc;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 40px rgba(10, 18, 40, 0.34);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-header {
    padding: 28px 22px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 10px;
}

.sidebar-header h3 {
    font-size: 1.05rem;
    line-height: 1.3;
    margin-bottom: 6px;
    color: #ffffff;
}

.sidebar-header p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
}

.sidebar-nav {
    flex: 1;
    padding: 16px 14px;
    overflow-y: auto;
}

.nav-group-title {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin: 8px 10px 8px;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
}

.sidebar-menu li + li {
    margin-top: 4px;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: #f1f5f9;
    text-decoration: none;
    border-radius: 10px;
    transition: background-color 0.2s, transform 0.2s, color 0.2s;
}

.sidebar-menu li a i {
    width: 18px;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

.sidebar-menu li a:hover {
    background: rgba(255, 255, 255, 0.09);
    transform: translateX(2px);
}

.sidebar-menu li a.active {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    color: #ffffff;
    font-weight: 600;
}

.sidebar-menu li a.active i {
    color: #ffffff;
}

.sidebar-footer {
    padding: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    color: #fee2e2;
    text-decoration: none;
    background: rgba(172, 79, 49, 0.2);
    border: 1px solid rgba(172, 79, 49, 0.5);
    transition: background-color 0.2s;
}

.sidebar-logout:hover {
    background: rgba(172, 79, 49, 0.32);
}

.sidebar-overlay {
    display: none;
}

.main-content {
    padding: 0;
}

.header {
    background: var(--surface-color);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(17, 24, 39, 0.08);
    padding: 16px 22px;
    margin-bottom: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.header-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header h1 {
    font-size: 1.65rem;
    color: var(--bg-secondary);
    line-height: 1.15;
}

.header-subtitle {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.mobile-menu-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid #d8deea;
    background: #f7f9fd;
    color: var(--bg-secondary);
    cursor: pointer;
    display: none;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid #dbe3ef;
    background: #f8fbff;
    color: var(--bg-secondary);
    font-weight: 600;
}

.user-icon {
    font-size: 1.2rem;
}

/* Dashboard Cards */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: var(--surface-color);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(17, 24, 39, 0.06);
}

.main-content > .card,
.main-content > .table-container,
.main-content > .dashboard-cards {
    margin-bottom: 18px;
}

.section-card {
    margin-bottom: 20px;
}

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

.stat-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--bg-secondary), #4f6aa5);
    opacity: 0.16;
}

.stat-icon-online {
    color: var(--success-color);
}

.card-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-stat .icon {
    font-size: 40px;
    opacity: 0.3;
}

.card-stat .info h3 {
    font-size: 32px;
    margin-bottom: 5px;
}

.card-stat .info p {
    color: #666;
    font-size: 14px;
}

.card-meta {
    display: block;
    margin-top: 2px;
    font-size: 0.74rem;
    color: var(--text-muted);
}

.access-vision-card {
    border-radius: 16px;
    padding: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.access-vision-grid {
    display: grid;
    grid-template-columns: minmax(260px, 420px) 1fr;
    gap: 24px;
    align-items: center;
}

.pill-label {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    background: #e7ecf8;
    color: var(--bg-secondary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.vision-title {
    margin: 12px 0 10px;
    font-size: 1.8rem;
    line-height: 1.2;
    color: #172b55;
}

.vision-subtitle {
    color: #4b5e84;
    margin-bottom: 16px;
}

.vision-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    display: grid;
    gap: 10px;
}

.vision-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #263e6f;
}

.vision-checklist li i {
    margin-top: 2px;
    color: #2bb673;
}

.vision-cta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.vision-link {
    color: #1b4fb1;
    text-decoration: none;
    font-weight: 600;
}

.vision-link:hover {
    color: #123b85;
}

.vision-link i {
    margin-left: 4px;
}

.access-visual {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #d8e2f4;
    background: #ffffff;
    box-shadow: 0 14px 26px rgba(19, 43, 87, 0.18);
}

.access-visual-topbar {
    height: 22px;
    background: linear-gradient(90deg, #1e2a57 0%, #2c4b8f 65%, #6d86bc 100%);
}

.access-visual-body {
    padding: 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mini-stat-block {
    border: 1px solid #e4ebf8;
    border-radius: 10px;
    padding: 10px;
    background: #fbfdff;
}

.mini-stat-block p {
    margin: 0;
    color: #5b6f95;
    font-size: 0.72rem;
}

.mini-stat-block strong {
    font-size: 1.2rem;
    color: #203c73;
    line-height: 1.1;
}

.mini-bar-track {
    grid-column: 1 / -1;
    height: 12px;
    border-radius: 99px;
    background: #e6edf9;
    overflow: hidden;
}

.mini-bar-fill {
    display: block;
    height: 100%;
    width: 62%;
    background: linear-gradient(90deg, #2465cd, #5f92e2);
}

.mini-caption {
    grid-column: 1 / -1;
    font-size: 0.78rem;
    color: #5d6f91;
}

.ops-analytics-card {
    border-radius: 16px;
    padding: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    animation: opsReveal 0.46s ease-out both;
}

.ops-analytics-grid {
    display: grid;
    grid-template-columns: minmax(260px, 360px) 1fr;
    gap: 14px;
    align-items: start;
}

.ops-preview {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #d7e2f4;
    background: #ffffff;
    box-shadow: 0 10px 18px rgba(19, 43, 87, 0.12);
}

.ops-preview-topbar {
    height: 18px;
    background: linear-gradient(90deg, #22366a 0%, #3d5ea6 100%);
}

.ops-preview-body {
    padding: 12px;
}

.ops-preview-kpis {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.ops-kpi-box {
    border: 1px solid #e0e8f7;
    background: #fafdff;
    border-radius: 10px;
    padding: 8px;
}

.ops-kpi-box p {
    font-size: 0.72rem;
    color: #6479a3;
}

.ops-kpi-box strong {
    color: #1e3f79;
    font-size: 1.6rem;
    line-height: 1.05;
}

.ops-progress-track {
    height: 12px;
    border-radius: 999px;
    background: #e5ecf9;
    overflow: hidden;
}

.ops-progress-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2e66c7, #5f8ee4);
}

.ops-preview-caption {
    margin-top: 8px;
    font-size: 0.78rem;
    color: #5b6f94;
}

.ops-details {
    display: block;
}

.ops-title {
    margin: 10px 0 8px;
    font-size: 1.45rem;
    line-height: 1.15;
    color: #1a376c;
}

.ops-subtitle {
    margin-bottom: 10px;
    color: #4e6288;
    font-size: 0.93rem;
}

.ops-indicator {
    border: 1px solid #d9e3f5;
    background: #f8fbff;
    border-radius: 10px;
    padding: 8px 12px;
    min-width: 200px;
}

.ops-indicator-label {
    display: block;
    color: #5b7098;
    font-size: 0.75rem;
    margin-bottom: 2px;
}

.ops-indicator-value {
    color: #1f4589;
    font-size: 1.05rem;
    line-height: 1.1;
}

.dashboard-note {
    color: #5f7195;
    font-size: 0.85rem;
    margin: 0;
}

.ops-chart-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.ops-chart-card {
    border: 1px solid #dbe5f6;
    border-radius: 12px;
    background: #ffffff;
    padding: 10px;
    animation: opsCardIn 0.44s ease-out both;
}

.ops-chart-card h4 {
    margin-bottom: 8px;
    color: #294a85;
    font-size: 0.93rem;
}

.donut-wrap {
    display: flex;
    gap: 12px;
    align-items: center;
}

.donut-chart {
    --p: 0;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: conic-gradient(#356ed0 calc(var(--p) * 1%), #dce5f8 0);
    position: relative;
    flex: 0 0 auto;
}

.donut-chart::before {
    content: "";
    position: absolute;
    inset: 14px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px #e7eefb;
}

.donut-chart::after {
    content: attr(data-pct);
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #234684;
    font-weight: 700;
    font-size: 0.95rem;
}

.donut-legend p {
    font-size: 0.83rem;
    color: #4f6490;
    margin-bottom: 4px;
}

.dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-right: 4px;
}

.dot-active {
    background: #356ed0;
}

.dot-idle {
    background: #c4d2ee;
}

.bars-group {
    display: grid;
    gap: 10px;
}

.bar-row {
    display: grid;
    grid-template-columns: 62px 1fr 46px;
    align-items: center;
    gap: 8px;
}

.bar-row span,
.bar-row strong {
    font-size: 0.83rem;
    color: #3c578a;
}

.bar-track {
    height: 10px;
    background: #e8eef9;
    border-radius: 999px;
    overflow: hidden;
}

.bar-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
}

.bar-fill-active {
    background: linear-gradient(90deg, #2f66c7, #6795ea);
}

.bar-fill-idle {
    background: linear-gradient(90deg, #8ea5d7, #b9c8e8);
}

.ops-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.temporal-chart-card {
    grid-column: 1 / -1;
}

.temporal-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.temporal-total {
    color: #1f468b;
    font-size: 1.25rem;
}

.spark-bars {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    min-height: 120px;
    align-items: end;
    padding: 10px 8px 6px;
    border: 1px solid #e2e9f8;
    border-radius: 10px;
    background: linear-gradient(180deg, #fbfdff 0%, #f5f8ff 100%);
}

.spark-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.spark-bar {
    width: 100%;
    max-width: 24px;
    min-height: 4px;
    border-radius: 8px 8px 4px 4px;
    background: linear-gradient(180deg, #5788de 0%, #2d63c0 100%);
    box-shadow: 0 5px 10px rgba(38, 79, 153, 0.22);
    transform-origin: bottom;
    animation: barGrow 0.45s cubic-bezier(0.22, 0.9, 0.32, 1) both;
}

.spark-value {
    color: #315da8;
    font-weight: 700;
    font-size: 0.67rem;
    line-height: 1;
}

.spark-col small {
    color: #5e7197;
    font-size: 0.69rem;
}

@keyframes opsReveal {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes barGrow {
    from {
        transform: scaleY(0.2);
        opacity: 0.45;
    }
    to {
        transform: scaleY(1);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ops-analytics-card,
    .ops-chart-card,
    .spark-bar {
        animation: none;
    }
}

.card-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--bg-secondary);
}

.no-margin {
    margin: 0;
}

.actions-row {
    margin-bottom: 20px;
}

.actions-row-end {
    margin-top: 15px;
    text-align: right;
}

.content-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

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

.badge-spaced {
    margin-left: 6px;
}

.empty-state-note {
    color: #999;
    margin-top: 10px;
    display: inline-block;
}

/* Tables */
.table-container {
    background: var(--surface-color);
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(17, 24, 39, 0.06);
    overflow: hidden;
}

.table-container table td:last-child {
    min-width: 220px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table thead {
    background-color: #f3f5fa;
}

table th,
table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

table th {
    font-weight: 600;
    color: var(--bg-secondary);
}

table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Alerts */
.alerts {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
}

.alert {
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.alert-success {
    background-color: #e1f1e7;
    color: #1f5f3c;
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background-color: #f9e4de;
    color: #6e2f1a;
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    background-color: #fff3d8;
    color: #7d5b14;
    border-left: 4px solid var(--warning-color);
}

.alert-info {
    background-color: #e2f0fb;
    color: #1d4f77;
    border-left: 4px solid var(--info-color);
}

/* Badge */
.badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 3px;
}

.badge-success {
    background-color: var(--success-color);
    color: white;
}

.badge-danger {
    background-color: var(--danger-color);
    color: white;
}

.badge-warning {
    background-color: var(--warning-color);
    color: #4f3b10;
}

/* Logs */
.log-container {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 20px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    max-height: 600px;
    overflow-y: auto;
}

.log-light {
    background: #f8fafc;
    color: #1f2937;
    border: 1px solid #dbe3ef;
}

.log-light .log-line {
    border-bottom: 1px solid #e7edf7;
    color: #1f2937;
}

.log-container-compact {
    max-height: 300px;
}

.log-light pre,
.log-container pre {
    margin: 0;
}

.pre-wrap {
    white-space: pre-wrap;
}

.log-line {
    padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state i {
    font-size: 60px;
    margin-bottom: 20px;
    opacity: 0.3;
}

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

.btn-neutral {
    background: #6c757d;
    color: white;
}

.btn-neutral:hover {
    background: #59616a;
}

.form-control-inline {
    width: auto;
    display: inline-block;
}

.info-box {
    margin-top: 15px;
    padding: 13px 15px;
    background: #e2f0fb;
    border-radius: 8px;
    border: 1px solid #bfd8ef;
    color: #1d4f77;
}

.warning-box {
    margin-top: 15px;
    padding: 13px 15px;
    background: #fff3d8;
    border-radius: 8px;
    border: 1px solid #f2d490;
    color: #7d5b14;
}

.card-warning {
    margin-top: 20px;
    background: #fff7e5;
    border-left: 4px solid #f3b63f;
}

.warning-title {
    color: #7d5b14;
    margin-bottom: 10px;
}

.warning-list {
    color: #7d5b14;
    margin-left: 20px;
}

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

.form-actions {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.help-box {
    margin-top: 30px;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid transparent;
}

.help-box-neutral {
    background: #f8f9fa;
    border-color: #e5e7eb;
}

.help-box-info {
    background: #e2f0fb;
    border-color: #bfd8ef;
    color: #1d4f77;
}

.help-box-warning {
    background: #fff3d8;
    border-color: #f2d490;
    color: #7d5b14;
}

.help-title {
    margin-bottom: 10px;
}

.help-list {
    margin-left: 20px;
}

.help-text {
    margin-top: 10px;
    color: var(--text-muted);
}

.account-summary-box {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
}

.account-summary-box p {
    margin: 0;
}

.muted-small {
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 14px;
}

/* Security */
.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.security-card h3 {
    margin-top: 0;
    color: var(--bg-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.status-row {
    margin-bottom: 15px;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active {
    background: #e1f1e7;
    color: #1f5f3c;
}

.status-inactive {
    background: #f9e4de;
    color: #6e2f1a;
}

.status-error {
    background: #fff3d8;
    color: #7d5b14;
}

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #e8edf4;
}

.service-item:last-child {
    border-bottom: none;
}

.chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ip-badge {
    display: inline-block;
    background: #a53f25;
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.8rem;
}

.empty-message {
    text-align: center;
    color: #6c757d;
    padding: 20px;
    font-style: italic;
}

.empty-success-icon {
    font-size: 46px;
    color: var(--success-color);
}

.tip-box {
    margin-top: 20px;
    padding: 15px;
    background: #e8f2ff;
    border-left: 4px solid #2a7db8;
    border-radius: 8px;
}

.tip-text {
    margin: 10px 0 0;
    color: #1d4f77;
}

/* Responsive */
@media (max-width: 1100px) {
    .login-layout {
        grid-template-columns: 1fr;
        max-width: 680px;
    }

    .login-box {
        max-width: none;
    }

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

    .ops-analytics-grid {
        grid-template-columns: 1fr;
    }

    .ops-preview {
        max-width: 420px;
    }

    .ops-chart-grid {
        grid-template-columns: 1fr;
    }

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

    .app-sidebar {
        position: fixed;
        top: 12px;
        left: 12px;
        bottom: 12px;
        width: min(84vw, 290px);
        z-index: 1100;
        transform: translateX(calc(-100% - 18px));
        transition: transform 0.25s ease;
    }

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

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

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

    .mobile-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .main-content {
        padding: 0;
    }

    .header {
        border-radius: 14px;
        padding: 14px;
    }

    .header h1 {
        font-size: 1.35rem;
    }

    .user-info {
        padding: 7px 10px;
    }

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

    .content-toolbar {
        flex-wrap: wrap;
    }

    .table-container {
        overflow-x: auto;
    }
}

@media (max-width: 640px) {
    .login-container {
        padding: 14px;
    }

    .login-vision-panel {
        padding: 18px;
        border-radius: 14px;
    }

    .login-vision-panel h1 {
        font-size: 1.55rem;
    }

    .login-box {
        margin: 0;
        padding: 26px 20px 20px;
    }

    .access-vision-card {
        padding: 16px;
    }

    .ops-analytics-card {
        padding: 14px;
    }

    .ops-title {
        font-size: 1.15rem;
    }

    .ops-preview {
        max-width: none;
    }

    .ops-preview-kpis {
        grid-template-columns: 1fr 1fr;
    }

    .spark-bars {
        gap: 6px;
        min-height: 96px;
    }

    .spark-col small {
        font-size: 0.62rem;
    }

    .spark-value {
        font-size: 0.6rem;
    }

    .donut-wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    .bar-row {
        grid-template-columns: 54px 1fr 42px;
    }

    .vision-title {
        font-size: 1.28rem;
    }

    .vision-checklist li {
        font-size: 0.93rem;
    }

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

    .mini-stat-block strong {
        font-size: 1.08rem;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    .user-info {
        width: 100%;
        justify-content: center;
    }

    .inline-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn,
    .btn-sm {
        width: 100%;
        min-height: 42px;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .form-control {
        min-height: 42px;
        font-size: 16px;
    }

    .card {
        padding: 14px;
        border-radius: 12px;
    }

    .card-stat .info h3 {
        font-size: 26px;
        line-height: 1.15;
        word-break: break-all;
    }

    .card-title {
        font-size: 1rem;
    }

    .dashboard-cards {
        gap: 12px;
        margin-bottom: 16px;
    }

    .actions-row-end {
        text-align: left;
    }

    .empty-state {
        padding: 34px 14px;
    }

    .empty-state i {
        font-size: 40px;
    }

    .security-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .log-container {
        font-size: 11px;
        padding: 12px;
    }

    .mobile-stack-table {
        border: 0;
    }

    .mobile-stack-table thead {
        display: none;
    }

    .mobile-stack-table tbody,
    .mobile-stack-table tr,
    .mobile-stack-table td {
        display: block;
        width: 100%;
    }

    .mobile-stack-table tr {
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        margin-bottom: 10px;
        padding: 8px 10px;
        background: #ffffff;
    }

    .mobile-stack-table td {
        border-bottom: 1px dashed #e5e7eb;
        padding: 8px 0;
        min-width: 0;
    }

    .mobile-stack-table td:last-child {
        border-bottom: 0;
        padding-bottom: 2px;
    }

    .mobile-stack-table td::before {
        content: attr(data-label);
        display: block;
        font-weight: 700;
        color: var(--bg-secondary);
        font-size: 0.78rem;
        margin-bottom: 2px;
    }

    .mobile-stack-table .inline-actions {
        margin-top: 6px;
    }
}
