/* Copyright (c) A|iens. All rights reserved. */

/* [HEADER] Cloud VPN Gateway View
 * Version: 1.0.0
 * Author: A'nil Cyborg
 * Description: Distinct VPN configuration, supplied evidence and reviewed native forms.
 * Dependencies: Shared Cloud themes, resource workspaces, tables and dialog scrolling.
 * Integration Notes: Configuration and supplied evidence stay separate from provider tunnel state.
 */
.vpn-screen, .vpn-section, .vpn-review, .vpn-inspect { min-width: 0; max-width: 100%; }
.vpn-dialog .dialog-foot { flex-wrap: wrap; flex-shrink: 0; }
.vpn-dialog .dialog-foot .btn { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.vpn-section { display: grid; gap: 16px; }
.vpn-heading, .vpn-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-width: 0; }
.vpn-heading { justify-content: space-between; }
.vpn-heading > div, .vpn-actions > * { min-width: 0; max-width: 100%; }
.vpn-heading h2, .vpn-heading h3 { margin: 0 0 6px; }
.vpn-heading p { max-width: 72ch; margin: 0; color: var(--muted); line-height: 1.6; }
.vpn-actions { align-items: flex-start; }
.vpn-actions .btn, .vpn-heading > .btn { white-space: normal; overflow-wrap: anywhere; }
.vpn-notice, .vpn-note, .vpn-boundary { margin: 8px 0; color: var(--muted); font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.vpn-notice { padding: 12px 14px; border-inline-start: 3px solid var(--border-strong); background: var(--panel-soft); }
.vpn-note:first-child { margin-top: 0; }
.vpn-muted { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.vpn-status { display: inline-block; padding: 4px 8px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--panel-soft); color: var(--text); font-size: 11px; font-weight: 650; white-space: normal; }
.vpn-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.vpn-summary > div { min-width: 0; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--panel-soft); }
.vpn-summary dt { margin-bottom: 7px; color: var(--muted); font-size: 12px; }
.vpn-summary dd { margin: 0; font-weight: 650; font-size: 13px; overflow-wrap: anywhere; }
.vpn-operation-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.vpn-operation { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 16px; border: 1px solid var(--border); border-radius: 16px; background: var(--panel-translucent); box-shadow: var(--shadow); }
.vpn-operation h3 { margin: 0; font-size: 15px; }
.vpn-operation p { flex: 1; margin: 0; color: var(--muted); line-height: 1.6; font-size: 12px; }
.vpn-operation .btn { align-self: flex-start; max-width: 100%; white-space: normal; }
.vpn-operation [role="note"] { font-size: 11px; line-height: 1.55; color: var(--muted); }
.vpn-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; min-width: 0; }
.vpn-field { display: grid; gap: 6px; min-width: 0; }
.vpn-field > label { font-size: 12px; font-weight: 650; line-height: 1.5; }
.vpn-field input, .vpn-field select, .vpn-field textarea { box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--panel); color: var(--text); font: inherit; }
.vpn-field textarea { min-height: 88px; resize: vertical; }
.vpn-field input:focus-visible, .vpn-field select:focus-visible, .vpn-field textarea:focus-visible, .vpn-inspect summary:focus-visible, .vpn-review summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
body[data-theme="light"] .vpn-field { color-scheme: light; }
body[data-theme="dark"] .vpn-field { color-scheme: dark; }
.vpn-full { grid-column: 1 / -1; min-width: 0; }
.vpn-form fieldset { margin: 0; padding: 14px; border: 1px solid var(--border); border-radius: 12px; min-width: 0; }
.vpn-form legend { padding-inline: 5px; font-weight: 650; font-size: 13px; }
.vpn-form [hidden] { display: none !important; }
.vpn-check { display: flex; align-items: flex-start; gap: 9px; line-height: 1.6; overflow-wrap: anywhere; }
.vpn-check input { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 3px; accent-color: var(--primary); }
.vpn-error { min-height: 1.25em; margin: 12px 0 0; color: var(--danger); line-height: 1.6; overflow-wrap: anywhere; }
.vpn-link { color: var(--primary-strong); font-weight: 650; overflow-wrap: anywhere; }
.vpn-section .table-wrap, .vpn-form .table-wrap, .vpn-review .table-wrap, .vpn-inspect .table-wrap { max-width: 100%; overflow-x: auto; }
.vpn-section td { vertical-align: top; overflow-wrap: anywhere; }
.vpn-section td:last-child { white-space: normal; }
.vpn-form .data-table, .vpn-review .data-table, .vpn-inspect .data-table { min-width: 0; width: 100%; table-layout: fixed; }
.vpn-form .data-table th, .vpn-form .data-table td, .vpn-review .data-table th, .vpn-review .data-table td, .vpn-inspect .data-table th, .vpn-inspect .data-table td { min-width: 0; white-space: normal; overflow-wrap: anywhere; vertical-align: top; }
.vpn-review details, .vpn-inspect details { margin-top: 16px; min-width: 0; }
.vpn-review summary, .vpn-inspect summary { cursor: pointer; font-weight: 650; overflow-wrap: anywhere; }
.vpn-pre { box-sizing: border-box; max-width: 100%; max-height: 340px; overflow: auto; padding: 12px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--panel-soft); color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.6; }
@media (max-width: 700px) {
  .vpn-form { grid-template-columns: minmax(0, 1fr); }
  .vpn-full { grid-column: auto; }
  .vpn-review .data-table th, .vpn-review .data-table td, .vpn-inspect .data-table th, .vpn-inspect .data-table td { padding: 9px 6px; }
}

.vpn-screen { display: grid; gap: 16px; min-width: 0; }
.vpn-list-nav { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.vpn-list-nav .btn { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.vpn-filter { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; gap: 12px; margin-bottom: 16px; }
.vpn-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; }
.vpn-steps article { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; border: 1px solid var(--border); border-radius: 16px; padding: 16px; background: var(--panel-translucent); box-shadow: var(--shadow); }
.vpn-steps h3 { margin: 0; font-size: 14px; line-height: 1.5; }
.vpn-steps p { flex: 1; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.vpn-steps .btn, .vpn-filter .btn { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.vpn-screen .table-wrap { max-width: 100%; overflow-x: auto; }
.vpn-screen td { vertical-align: top; overflow-wrap: anywhere; }
.vpn-screen td:last-child { white-space: normal; }
@media (max-width: 900px) { .vpn-filter { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 600px) { .vpn-filter { grid-template-columns: minmax(0, 1fr); } }

/* [FOOTER] Long evidence scrolls inside the shared dialog body; review controls remain in its real footer. */
