/* === Statix Customer Account === */

/* Auth forms (login/register) */
.statix-auth-form {
    max-width: 480px;
    margin: 0 auto;
    padding: 32px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
}

.statix-auth-form h2 {
    margin-bottom: 24px;
    font-size: 22px;
}

.statix-auth-form__inner .statix-form-row {
    margin-bottom: 16px;
}

.statix-auth-form__inner label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #444;
}

.statix-auth-form__inner input[type="text"],
.statix-auth-form__inner input[type="email"],
.statix-auth-form__inner input[type="password"],
.statix-auth-form__inner input[type="tel"],
.statix-auth-form__inner select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    box-sizing: border-box;
}

.statix-auth-form__inner input:focus {
    outline: none;
    border-color: #0066cc;
}

.statix-auth-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 14px;
}

.statix-auth-form__inner .statix-form-row--terms .statix-checkbox-label--block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-weight: 400;
    cursor: pointer;
    line-height: 1.4;
}

.statix-auth-form__inner .statix-form-row--terms .statix-checkbox-input {
    width: 18px;
    height: 18px;
}

/* Account security (wijzig e-mail / wachtwoord) */
.statix-account-security {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 32px;
}

.statix-security-note {
    color: #666;
    margin-bottom: 24px;
}

.statix-security-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.statix-security-card {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 24px;
}

.statix-security-card h3 {
    margin-bottom: 16px;
    font-size: 18px;
}

.statix-security-current {
    margin-bottom: 16px;
    font-size: 14px;
    color: #555;
}

.statix-security-divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 24px 0;
}

/* Account page */
.statix-account {
    max-width: 100%;
    margin: 0 auto;
}

.statix-account h2 {
    margin-bottom: 8px;
}

.statix-account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 24px;
    align-items: stretch;
    min-height: 0;
}

.statix-account-col--right {
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.statix-account-col--right > .statix-account-card {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
}

.statix-account-col--right > #statix-invoices {
    flex: 0 0 auto;
    min-height: 0;
    max-height: 260px;
    overflow-y: auto;
}

.statix-account-col--right > #statix-orders {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
}

.statix-account-card--full {
    grid-column: 1 / -1;
    max-height: 520px;
    overflow-y: auto;
}

.statix-renew-btn {
    padding: 6px 12px;
    font-size: 13px;
}

.statix-account-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 24px;
}

.statix-account-card h3 {
    margin-bottom: 20px;
    font-size: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.statix-account-card--urgent {
    border-color: #ff5a5a;
    box-shadow: 0 0 0 1px #ff5a5a;
}

.statix-account-card--urgent h3 {
    color: #c62828;
    border-bottom-color: #ffcdd2;
}

.statix-account-card .statix-form-row {
    margin-bottom: 14px;
}

.statix-account-card label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    color: #555;
}

.statix-account-card input,
.statix-account-card select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* Flexbox wrappers voor naast-elkaar velden */
.statix-form-name-row,
.statix-form-row--company-row,
.statix-form-address-row,
.statix-form-flex-row {
    display: flex;
    gap: 16px;
}

.statix-form-name-row .statix-form-row--half,
.statix-form-row--company-row .statix-form-row--half,
.statix-form-address-row .statix-form-row--half,
.statix-form-flex-row .statix-form-row--half {
    flex: 1;
    margin: 0;
    min-width: 0;
}

/* Orders table */
.statix-orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.statix-orders-table th,
.statix-orders-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.statix-orders-table th {
    font-weight: 600;
    color: #555;
    font-size: 13px;
}

.statix-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.statix-status--pending {
    background: #fff3cd;
    color: #856404;
}

.statix-status--paid {
    background: #d4edda;
    color: #155724;
}

.statix-status--processing {
    background: #cce5ff;
    color: #004085;
}

.statix-status--completed {
    background: #d4edda;
    color: #155724;
}

.statix-status--cancelled {
    background: #f8d7da;
    color: #721c24;
}

/* Invoice PDF link */
.statix-invoice-pdf {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #c62828;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.statix-invoice-pdf svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    flex-shrink: 0;
}

.statix-invoice-pdf:hover {
    color: #8e0000;
    text-decoration: underline;
}

.statix-invoices-table th:last-child,
.statix-invoices-table td:last-child {
    width: 1%;
    white-space: nowrap;
    text-align: center;
}

.statix-invoices-table td:last-child .statix-invoice-pdf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Form messages */
.statix-form-message {
    margin-top: 12px;
    font-size: 14px;
    min-height: 20px;
    display: none;
}

.statix-form-message.error {
    display: block;
    color: #a52a2a;
    background: #fce8e8;
    border: 1px solid #e0b8b8;
    padding: 10px 12px;
    border-radius: 4px;
}

.statix-form-message.success {
    display: block;
    color: #2a7a2a;
    background: #e6f7e6;
    border: 1px solid #b8e0b8;
    padding: 10px 12px;
    border-radius: 4px;
}

/* Particulier / Bedrijf toggle */
.statix-form-type-options {
    display: flex;
    gap: 16px;
}

.statix-form-type-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    font-weight: 500;
    background: #fff;
    font-size: 13px;
}

.statix-form-type-option:hover {
    border-color: #0066cc;
}

.statix-form-type-option input[type="radio"] {
    margin: 0;
}

.statix-form-type-option:has(input:checked) {
    border-color: #0066cc;
    background: #f0f7ff;
}

/* Responsive */
@media (max-width: 768px) {
    .statix-account-grid {
        grid-template-columns: 1fr;
    }

    .statix-form-name-row,
    .statix-form-row--company-row,
    .statix-form-address-row,
    .statix-form-flex-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Account navigation menu (theme-compatible) */
.statix-account-nav {
    margin-bottom: 24px;
}

.statix-account-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
}

.statix-account-menu li {
    margin: 0;
    padding: 0;
}

.statix-account-menu a {
    display: inline-block;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    text-decoration: none;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

.statix-account-menu a:hover,
.statix-account-menu .current-menu-item a {
    color: #fff;
    background: #0066cc;
}

/* ================================
   SERVICES / MIJN DIENSTEN
   ================================ */

.statix-services-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.statix-service-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

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

.statix-service-title {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 600;
    color: #222;
}

.statix-service-type {
    font-size: 13px;
    color: #666;
    text-transform: capitalize;
}

.statix-service-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    background: #e6f7e6;
    color: #2a7a2a;
}

.statix-service-status--pending,
.statix-service-status--pending_domain {
    background: #fff4e6;
    color: #b36b00;
}

.statix-service-status--provisioning_failed,
.statix-service-status--expired {
    background: #fce8e8;
    color: #a52a2a;
}

.statix-service-body {
    flex: 1;
    margin-bottom: 16px;
    font-size: 14px;
    color: #444;
}

.statix-service-body p {
    margin: 0 0 6px;
}

.statix-service-footer {
    text-align: right;
}

.statix-service-detail {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    margin-top: 24px;
    text-align: left;
    align-self: flex-start;
    width: 100%;
}

.statix-service-tab-panels {
    width: 100%;
}

.statix-service-tab-panel {
    text-align: left;
}

#top .statix-service-detail,
#wrap_all .statix-service-detail {
    align-items: flex-start;
}

.statix-service-detail-meta {
    margin-bottom: 20px;
}

.statix-service-tabs {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
    gap: 4px;
}

.statix-service-tab {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    transition: background 0.2s, color 0.2s;
}

.statix-service-tab.active,
.statix-service-tab:hover {
    background: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

.statix-service-tab-panel {
    display: none;
}

.statix-service-tab-panel.active {
    display: block;
}

.statix-service-info-table {
    width: 100%;
    max-width: 600px;
    border-collapse: collapse;
    margin-top: 10px;
}

.statix-service-info-table th,
.statix-service-info-table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.statix-service-info-table th,
#wrap_all .statix-service-info-table th,
#top .statix-service-info-table th,
.container .statix-service-info-table th,
table.statix-service-info-table thead th,
table.statix-service-info-table tbody th {
    width: 40%;
    color: #555;
    font-weight: 600;
    text-transform: none !important;
}

/* Domeinbeheer formulieren */
.statix-domain-settings h4,
.statix-dns-settings h4 {
    margin: 20px 0 10px;
    font-size: 16px;
    color: #222;
}

.statix-domain-forms .statix-form,
.statix-dns-forms .statix-form {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 20px;
}

.statix-form .statix-input,
.statix-form input[type="text"],
.statix-form input[type="url"],
.statix-form input[type="number"],
.statix-form select {
    display: block;
    width: 100%;
    max-width: 400px;
    padding: 8px 12px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
}

.statix-form .statix-radio,
.statix-form .statix-checkbox {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    cursor: pointer;
}

.statix-form .statix-radio input,
.statix-form .statix-checkbox input {
    margin-right: 8px;
}

.statix-btn {
    display: inline-block;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.statix-btn-primary {
    background: #0066cc;
    color: #fff;
}

.statix-btn-primary:hover {
    background: #005bb5;
}

.statix-btn-outline {
    background: transparent;
    color: #0066cc;
    border: 1px solid #0066cc;
}

.statix-btn-outline:hover {
    background: #0066cc;
    color: #fff;
}

.statix-btn-danger {
    background: #c0392b;
    color: #fff;
}

.statix-btn-danger:hover {
    background: #a93226;
}

.statix-dns-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 14px;
}

.statix-dns-table th,
.statix-dns-table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.statix-dns-table th,
#wrap_all .statix-dns-table th,
#top .statix-dns-table th,
.container .statix-dns-table th,
table.statix-dns-table thead th,
table.statix-dns-table tbody th,
table.statix-dns-table td {
    background: #f5f5f5;
    font-weight: 600;
    text-transform: none !important;
}

.statix-loading {
    color: #777;
}

/* CMS installer tab */
.statix-service-cms {
    font-size: 14px;
    color: #444;
}

.statix-service-cms > p {
    margin: 0 0 20px;
    max-width: 700px;
}

.statix-cms-options {
    display: flex;
    flex-direction: row;
    gap: 20px;
    flex-wrap: wrap;
}

.statix-cms-option {
    flex: 1 1 180px;
    max-width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
}

.statix-cms-option-label {
    font-size: 11px;
    color: #888;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.statix-cms-option-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.statix-cms-option h4 {
    margin: 0;
    font-size: 18px;
    color: #222;
}

.statix-cms-result {
    background: #f5f7f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    max-width: 700px;
}

.statix-cms-result h4 {
    margin: 0 0 16px;
    font-size: 18px;
    color: #222;
}

.statix-cms-result code {
    background: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    font-family: monospace;
    font-size: 13px;
}

.statix-cms-next {
    margin: 20px 0 8px;
}

.statix-cms-instructions {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* CMS installer form */
.statix-cms-form {
    max-width: 800px;
}

.statix-cms-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e0e0e0;
}

.statix-cms-section h4 {
    margin: 0 0 12px;
    font-size: 16px;
    color: #222;
}

.statix-cms-section .description {
    font-size: 13px;
    color: #666;
    margin: 8px 0 0;
}

.statix-cms-db-mode,
.statix-cms-path {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
}

.statix-cms-radio {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
}

.statix-cms-radio input[type="radio"] {
    margin: 0;
}

.statix-cms-field-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.statix-cms-field-row input,
.statix-cms-field-row select,
.statix-cms-section input.regular-text,
.statix-cms-section select {
    min-width: 220px;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.statix-cms-db-new,
.statix-cms-db-existing {
    margin-top: 12px;
    padding: 16px;
    background: #f9f9f9;
    border-radius: 6px;
}

.statix-cms-options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.statix-cms-radio-card {
    flex: 1 1 180px;
    max-width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.statix-cms-radio-card:hover {
    border-color: #b0b0b0;
}

.statix-cms-radio-card input[type="radio"] {
    display: none;
}

.statix-cms-radio-card:has(input[type="radio"]:checked) {
    border-color: #21759b;
    box-shadow: 0 0 0 2px rgba(33, 117, 155, 0.15);
}

.statix-cms-radio-card .statix-cms-option-label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin: 0;
}

.statix-cms-radio-card .statix-cms-option-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.statix-cms-radio-card h4 {
    margin: 0;
    font-size: 18px;
    color: #222;
}

.statix-cms-submit {
    margin-top: 24px;
}

/* CMS installer progress */
.statix-cms-progress {
    background: #f5f7f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    max-width: 700px;
}

.statix-cms-progress h4 {
    margin: 0 0 16px;
    font-size: 18px;
    color: #222;
}

.statix-cms-progress-bar-wrap {
    width: 100%;
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
}

.statix-cms-progress-bar {
    height: 100%;
    background: #21759b;
    width: 0%;
    transition: width 0.4s ease;
}

.statix-cms-progress-message {
    font-size: 14px;
    color: #555;
    margin: 0 0 16px;
}

.statix-cms-progress-message.error {
    color: #c62828;
}

.statix-cms-progress-link {
    margin: 0;
}

.statix-hosting-resend-form {
    display: inline-block;
    margin: 16px 12px 0 0;
}

.statix-form-message.success {
    background: #e8f5e9;
    color: #2a7a2a;
    border: 1px solid #c8e6c9;
    padding: 10px 14px;
    border-radius: 4px;
    margin: 0 0 16px;
}
