/* Zevonix Suite Client Portal — front-end (mirrors zevonix-partners portal styling) */

.zport-form,
.zport-dashboard {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1d2433;
    max-width: 960px;
    margin: 0 auto;
}

.zport-form { background: #fff; border: 1px solid #e0e3e8; border-radius: 12px; padding: 24px; }
.zport-form h2 { margin: 0 0 16px; }
.zport-form .zport-row { margin-bottom: 16px; }
.zport-form label { display: block; font-weight: 600; font-size: 14px; }
.zport-form input[type="text"],
.zport-form input[type="email"],
.zport-form input[type="url"],
.zport-form input[type="tel"],
.zport-form input[type="password"],
.zport-form textarea,
.zport-form select {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccd1d9;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 4px;
    box-sizing: border-box;
    font-family: inherit;
}
.zport-form input:focus,
.zport-form textarea:focus,
.zport-form select:focus {
    outline: 0;
    border-color: #10A7F3;
    box-shadow: 0 0 0 3px rgba(16, 167, 243, 0.15);
}

.zport-form .zport-checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    font-size: 14px;
    cursor: pointer;
}
.zport-form .zport-checkbox-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
}
.zport-form .zport-form-link {
    color: #10A7F3;
    font-size: 14px;
    text-decoration: none;
    font-weight: 600;
}
.zport-form .zport-form-link:hover { text-decoration: underline; }

.zport-form #zsc-turnstile-wrap,
.zport-form .cf-turnstile {
    display: flex;
    justify-content: center;
    margin: 8px 0 16px;
}

.zport-btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid #ccd1d9;
    background: #f5f6f8;
    cursor: pointer;
    font-size: 14px;
}
.zport-btn-primary { background: #10A7F3; border-color: #10A7F3; color: #fff; }
.zport-btn-primary:hover { background: #0d8ed1; }
.zport-btn-secondary { background: #fff; color: #10A7F3; border-color: #10A7F3; }
.zport-btn[disabled] { background: #9aa4b2; border-color: #9aa4b2; cursor: not-allowed; }

.zport-notice {
    background: #f5f6f8;
    border-left: 4px solid #10A7F3;
    padding: 12px 16px;
    border-radius: 4px;
}

.zport-msg { min-height: 1.2em; margin: 8px 0; color: #1a8754; font-weight: 600; }
.zport-msg.is-error { color: #dc3545; }

.zport-submit-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.zport-submit-row .zport-msg {
    margin: 0;
    flex: 1 1 auto;
}

/* Dashboard card layout */
.zport-card {
    background: #fff;
    border: 1px solid #e0e3e8;
    border-radius: 12px;
    padding: 24px;
    margin: 24px auto;
    max-width: 640px;
    color: #1d2433;
    line-height: 1.5;
}
.zport-card h2 { margin-top: 0; color: #234462; }
.zport-card .zport-warning { color: #c0392b; }

.zport-table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0 16px;
}
.zport-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f2f5;
}
.zport-table tr:last-child td { border-bottom: none; }

.zport-help { font-size: 13px; color: #58606e; margin-left: 8px; }
.zport-error { color: #c0392b; font-size: 14px; }

.zport-dashboard-header { margin-bottom: 16px; }
.zport-dashboard-header h2 { margin: 0 0 8px; }
.zport-dashboard-greeting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.zport-dashboard-greeting h2 { margin: 0; }
.zport-dashboard-sub {
    color: #58606e;
    font-size: 14px;
    margin: 4px 0 0;
}
.zport-dashboard-signout {
    font-size: 14px;
    color: #58606e;
    text-decoration: none;
    font-weight: 600;
    padding: 6px 12px;
    border: 1px solid #ccd1d9;
    border-radius: 6px;
    transition: all .15s ease;
}
.zport-dashboard-signout:hover {
    color: #fff;
    background: #58606e;
    border-color: #58606e;
}

/* Dashboard tabs */
.zport-tabs {
    display: flex;
    gap: 4px;
    margin: 16px 0;
    border-bottom: 1px solid #e0e3e8;
}
.zport-tab {
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #58606e;
    margin-bottom: -1px;
}
.zport-tab:hover { color: #1d2433; }
.zport-tab.is-active { color: #10A7F3; border-bottom-color: #10A7F3; }

.zport-panel { display: none; }
.zport-panel.is-active { display: block; }

/* Hero card with gradient (matches partner) */
.zport-headline {
    background: linear-gradient(135deg, #10A7F3 0%, #0d8ed1 100%);
    color: #fff;
    border-radius: 14px;
    padding: 24px 28px;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(16, 167, 243, 0.18);
}
.zport-headline-label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; opacity: 0.8; }
.zport-headline-amount { font-size: 36px; font-weight: 700; margin-top: 6px; line-height: 1.1; }
.zport-headline-sub { font-size: 13px; margin-top: 6px; opacity: 0.92; }

/* Past-due variant (red) */
.zport-headline--warning {
    background: linear-gradient(135deg, #dc3545 0%, #b91d2c 100%);
    box-shadow: 0 8px 24px rgba(220, 53, 69, 0.25);
}

/* Trial-expired variant (amber) */
.zport-headline--amber {
    background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.25);
}

/* Status breakdown cards */
.zport-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.zport-stat-card {
    background: #fff;
    border: 1px solid #e0e3e8;
    border-radius: 12px;
    padding: 16px;
    border-left: 4px solid #10A7F3;
}
.zport-stat-card > span {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #58606e;
}
.zport-stat-card > strong {
    display: block;
    font-size: 22px;
    margin: 4px 0;
    color: #1d2433;
    line-height: 1.2;
}
.zport-stat-card > em { display: block; font-size: 12px; color: #58606e; font-style: normal; }
.zport-stat-card--good     { border-left-color: #1a8754; }
.zport-stat-card--warning  { border-left-color: #b58900; }
.zport-stat-card--danger   { border-left-color: #dc3545; }

/* Activity / quick-actions row */
.zport-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 16px;
}
.zport-metric {
    background: #fff;
    border: 1px solid #e0e3e8;
    border-radius: 12px;
    padding: 14px;
    text-align: center;
}
.zport-metric strong { display: block; font-size: 22px; color: #1d2433; }
.zport-metric span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: #58606e; margin-top: 4px; }

/* Status pills used in cards */
.zport-pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    background: #888;
}
.zport-pill--active    { background: #1a8754; }
.zport-pill--trialing  { background: #10A7F3; }
.zport-pill--past_due  { background: #dc3545; }
.zport-pill--canceled,
.zport-pill--cancelled { background: #b9bcc1; }

/* Action buttons row */
.zport-action-row {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

/* Each VPS block — heading + URL table + DNS block + storage block */
.zport-platform-block {
    margin-bottom: 28px;
}
.zport-platform-heading {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #58606e;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* DNS Records required block (Platforms tab) */
.zport-dns-required {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 12px;
}
.zport-dns-required-label {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.zport-dns-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid #e2e8f0;
}
.zport-dns-row:first-of-type {
    padding-top: 0;
    border-top: 0;
}
.zport-dns-pill {
    flex-shrink: 0;
    display: inline-block;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    min-width: 56px;
    text-align: center;
    line-height: 1.4;
    letter-spacing: 0.3px;
}
.zport-dns-pill--cname { background: #dbeafe; color: #1d4ed8; }
.zport-dns-pill--txt   { background: #fef3c7; color: #92400e; }
.zport-dns-row-content {
    flex: 1 1 auto;
    min-width: 0;
}
.zport-dns-row-body {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 8px;
    font-size: 13px;
    line-height: 1.5;
}
.zport-dns-host,
.zport-dns-value {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 12.5px;
    word-break: break-all;
    background: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}
.zport-dns-host  { color: #475569; }
.zport-dns-value { color: #0f172a; font-weight: 600; }
.zport-dns-arrow {
    color: #94a3b8;
    flex-shrink: 0;
    font-size: 14px;
}
.zport-dns-copy {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px 3px 7px;
    border-radius: 6px;
    cursor: pointer;
    line-height: 1.4;
    transition: all .15s ease;
}
.zport-dns-copy:hover { background: #eff6ff; color: #1d4ed8; border-color: #93c5fd; }
.zport-dns-copy.is-copied { background: #1a8754; color: #fff; border-color: #1a8754; }
.zport-dns-copy svg { flex-shrink: 0; opacity: .8; }
.zport-dns-note {
    font-size: 12px;
    color: #64748b;
    margin: 6px 0 0;
    line-height: 1.5;
}

/* Storage volumes block (Platforms tab) */
.zport-storage-list {
    margin-top: 12px;
}
.zport-storage-heading {
    font-size: 13px;
    font-weight: 600;
    color: #58606e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 8px;
}
.zport-storage-card {
    background: #f8f9fb;
    border: 1px solid #e5e8ee;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 8px;
}
.zport-storage-card:last-child { margin-bottom: 0; }
.zport-storage-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}
.zport-storage-card-label {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}
.zport-storage-card-mount {
    margin: 2px 0 0;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 12px;
    color: #64748b;
}
.zport-storage-usage-numbers {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
}
.zport-storage-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}
.zport-storage-bar-fill {
    height: 100%;
    background: #06b6d4;
    border-radius: 999px;
    transition: width .3s ease;
}
.zport-storage-bar-fill.is-warning  { background: #f59e0b; }
.zport-storage-bar-fill.is-critical { background: #dc2626; }
.zport-storage-meta {
    font-size: 11px;
    color: #94a3b8;
    text-align: right;
    margin-top: 4px;
}

/* Empty state */
.zport-empty-state {
    background: #fff;
    border: 1px dashed #ccd1d9;
    border-radius: 12px;
    padding: 24px;
    margin-top: 16px;
    text-align: center;
}
.zport-empty-state a { color: #10A7F3; }

/* -------------------------------------------------------------------- *
 *  Team management (multi-seat)
 * -------------------------------------------------------------------- */
.zport-btn-sm { padding: 6px 12px; font-size: 13px; }
.zport-team-names { display: flex; gap: 12px; }
.zport-team-names .zport-row { flex: 1 1 0; }
.zport-team-invite { margin: 0; padding: 0; border: 0; box-shadow: none; max-width: none; }
@media (max-width: 540px) { .zport-team-names { flex-direction: column; gap: 0; } }
