:root {
    --customer-dark: #07101f;
    --customer-blue: #1f6feb;
    --customer-light-blue: #eaf3ff;
    --customer-green: #168447;
    --customer-orange: #d97706;
    --customer-red: #c62828;
    --customer-gray: #64748b;
    --customer-text: #10213b;
    --customer-muted: #64748b;
    --customer-border: #c7d8f5;

--admin-dark: #050b18;
  --admin-navy: #163c7a;
  --admin-blue: #1f6feb;
  --admin-blue-hover: #1757b7;
  --admin-red: #ff3b3b;
  --admin-red-hover: #c62828;
  --admin-cyan: #60d8ff;
  --admin-gold: #ffe45c;
  --admin-text: #182033;
  --admin-muted: #64748b;
  --admin-panel: rgba(255, 255, 255, 0.96);
  --admin-border: rgba(255, 255, 255, 0.45);
  --admin-success: #138a4b;
  --admin-error: #c62828;

  --dark: #050b18;
  --navy: #07152e;
  --blue: #1f6feb;
  --red: #ff3b3b;
  --cyan: #60d8ff;
  --gold: #ffe45c;
  --text: #dbdbdb;
  --muted: #64748b;
  --glass: rgba(255, 255, 255, 0.12);
  --panel: rgba(255, 255, 255, 0.92);
}

* {
    box-sizing: border-box;
}

.customer-header-label {
    margin: 0 0 0.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.admin-header-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.customer-dossier-wrapper {
    width: min(1300px, calc(100% - 2rem));
    margin: 2rem auto 4rem;
}

.customer-summary-card,
.customer-dossier-card {
    border: 3px solid var(--customer-border);
    border-radius: 24px;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.98),
            rgba(235, 245, 255, 0.96)
        );
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.25);
}

.customer-summary-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem 2rem;
}

.customer-summary-label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--customer-muted);
    font-size: 0.85rem;
    font-weight: 900;
    text-transform: uppercase;
}

.customer-number-copy-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.customer-number-copy-row strong {
    color: var(--customer-text);
    font-size: 1.4rem;
}

.customer-copy-button {
    padding: 0.55rem 0.85rem;
    border: none;
    border-radius: 12px;
    color: white;
    background: var(--customer-blue);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.customer-copy-feedback {
    display: block;
    min-height: 1.2rem;
    margin-top: 0.35rem;
    color: var(--customer-green);
    font-size: 0.85rem;
    font-weight: 800;
}

.customer-status {
    display: inline-flex;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    color: white;
    font-weight: 900;
}

.status-active {
    background: var(--customer-green);
}

.status-suspended {
    background: var(--customer-orange);
}

.status-banned,
.status-deleted {
    background: var(--customer-red);
}

.status-unknown {
    background: var(--customer-gray);
}

.customer-dossier-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.customer-dossier-card {
    padding: 1.8rem;
    color: var(--customer-text);
}

.customer-dossier-card h2 {
    margin-top: 0;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--customer-border);
}

.customer-details-list {
    display: grid;
    gap: 0;
    margin: 0;
}

.customer-details-list div {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid #dbe5f4;
}

.customer-details-list div:last-child {
    border-bottom: none;
}

.customer-details-list dt {
    color: var(--customer-muted);
    font-weight: 900;
}

.customer-details-list dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.customer-address {
    display: grid;
    gap: 0.4rem;
    font-style: normal;
    line-height: 1.6;
}

.customer-empty-text {
    color: var(--customer-muted);
}

.customer-placeholder-card {
    margin-top: 1.5rem;
}

/* TABS */


:root {
    --customer-dark: #07101f;
    --customer-blue: #1f6feb;
    --customer-light-blue: #eaf3ff;
    --customer-green: #168447;
    --customer-orange: #d97706;
    --customer-red: #c62828;
    --customer-gray: #64748b;
    --customer-text: #10213b;
    --customer-muted: #64748b;
    --customer-border: #c7d8f5;
}

* {
    box-sizing: border-box;
}

.customer-header-label {
    margin: 0 0 0.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.admin-header-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.customer-dossier-wrapper {
    width: min(1300px, calc(100% - 2rem));
    margin: 2rem auto 4rem;
}

.customer-summary-card,
.customer-dossier-card {
    border: 3px solid var(--customer-border);
    border-radius: 24px;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.98),
            rgba(235, 245, 255, 0.96)
        );
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.25);
}

.customer-summary-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem 2rem;
}

.customer-summary-label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--customer-muted);
    font-size: 0.85rem;
    font-weight: 900;
    text-transform: uppercase;
}

.customer-number-copy-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.customer-number-copy-row strong {
    color: var(--customer-text);
    font-size: 1.4rem;
}

.customer-copy-button {
    padding: 0.55rem 0.85rem;
    border: none;
    border-radius: 12px;
    color: white;
    background: var(--customer-blue);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.customer-copy-button:hover {
    filter: brightness(1.08);
}

.customer-copy-feedback {
    display: block;
    min-height: 1.2rem;
    margin-top: 0.35rem;
    color: var(--customer-green);
    font-size: 0.85rem;
    font-weight: 800;
}

.customer-status {
    display: inline-flex;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    color: white;
    font-weight: 900;
    white-space: nowrap;
}

.status-active {
    background: var(--customer-green);
}

.status-suspended {
    background: var(--customer-orange);
}

.status-banned,
.status-deleted {
    background: var(--customer-red);
}

.status-unknown {
    background: var(--customer-gray);
}

.customer-tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 0.6rem;
    overflow-x: auto;
    border: 2px solid var(--customer-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
}

.customer-tab-button {
    flex: 0 0 auto;
    padding: 0.85rem 1.2rem;
    border: none;
    border-radius: 13px;
    color: var(--customer-text);
    background: transparent;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.customer-tab-button:hover {
    background: var(--customer-light-blue);
    transform: translateY(-1px);
}

.customer-tab-button.active {
    color: white;
    background:
        linear-gradient(
            145deg,
            var(--customer-blue),
            #174fa8
        );
}

.customer-tab-panel {
    display: none;
}

.customer-tab-panel.active {
    display: block;
}

.customer-dossier-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.customer-dossier-card {
    padding: 1.8rem;
    color: var(--customer-text);
}

.customer-dossier-card h2 {
    margin-top: 0;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--customer-border);
}

.customer-details-list {
    display: grid;
    gap: 0;
    margin: 0;
}

.customer-details-list div {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid #dbe5f4;
}

.customer-details-list div:last-child {
    border-bottom: none;
}

.customer-details-list dt {
    color: var(--customer-muted);
    font-weight: 900;
}

.customer-details-list dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.customer-address {
    display: grid;
    gap: 0.4rem;
    font-style: normal;
    line-height: 1.6;
}

.customer-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.customer-panel-heading h2 {
    margin-bottom: 0.4rem;
}

.customer-panel-heading p {
    margin-top: 0;
    color: var(--customer-muted);
}

.customer-empty-state {
    padding: 2rem;
    border: 2px dashed var(--customer-border);
    border-radius: 18px;
    text-align: center;
    background: rgba(31, 111, 235, 0.06);
}

.customer-empty-state h3 {
    margin-top: 0;
}

.customer-action-placeholder {
    margin-top: 1.5rem;
    padding: 1.2rem;
    border: 2px dashed var(--customer-border);
    border-radius: 16px;
    background: rgba(31, 111, 235, 0.06);
}

.customer-action-placeholder h3 {
    margin-top: 0;
}

.customer-future-badge {
    display: inline-flex;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    color: white;
    background: var(--customer-gray);
    font-size: 0.8rem;
    font-weight: 900;
    white-space: nowrap;
}

.logout-btn {
  padding: 0.9rem 1.15rem;
  border: none;
  border-radius: 16px;
  background:
    linear-gradient(
      145deg,
      var(--admin-red),
      var(--admin-red-hover));
  color: #06101f;
  font-weight: 1000;
  cursor: pointer;
  box-shadow:
    0 8px 0 rgba(0,0,0,0.35),
    0 0 22px rgba(31,111,235,0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.admin-user-moderation-summary {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.admin-user-moderation-summary > div {
    flex: 1;

    padding: 1rem;

    border-radius: 12px;

    background: white;

    text-align: center;
}

.admin-user-history {
    margin-top: 2rem;
}

.admin-history-card {
    margin-bottom: 1rem;
    padding: 1rem;

    border-radius: 12px;

    background: white;
}

@media (max-width: 850px) {
    .customer-dossier-grid {
        grid-template-columns: 1fr;
    }

    .customer-summary-card {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 550px) {
    .customer-details-list div {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .customer-number-copy-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .customer-panel-heading {
        flex-direction: column;
    }

    .customer-tabs {
        padding: 0.45rem;
    }

    .customer-tab-button {
        padding: 0.75rem 0.9rem;
    }
}

/* Moderatie */

.customer-moderation-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.customer-action-btn {
    padding: 0.9rem 1.3rem;
    border: none;
    border-radius: 12px;
    color: white;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.suspend-btn {
    background: #d97706;
}

.unban-btn {
    background: #168447;
}

.ban-btn {
    background: #c62828;
}


.customer-alert {
    margin-bottom: 1.5rem;
    padding: 1rem 1.2rem;
    border: 2px solid;
    border-radius: 16px;
    font-weight: 800;
}

.customer-alert-success {
    border-color: rgba(22, 132, 71, 0.35);
    color: #116437;
    background: rgba(22, 132, 71, 0.12);
}

.customer-alert-error {
    border-color: rgba(198, 40, 40, 0.35);
    color: #991b1b;
    background: rgba(198, 40, 40, 0.1);
}

.customer-moderation-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.customer-action-btn {
    padding: 0.9rem 1.3rem;
    border: none;
    border-radius: 12px;
    color: white;
    background-color: var(--admin-blue);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.customer-action-btn:hover {
    background-color: var(--admin-navy);
}


.suspend-btn {
    background: var(--customer-orange);
}

.unban-btn {
    background: var(--customer-green);
}

.ban-btn {
    background: var(--customer-red);
}

.customer-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 1rem;
    overflow-y: auto;
    background: rgba(2, 6, 17, 0.78);
    backdrop-filter: blur(5px);
}

.customer-modal-backdrop[hidden] {
    display: none;
}

.customer-modal {
    width: min(650px, 100%);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    border: 3px solid var(--customer-border);
    border-radius: 24px;
    color: var(--customer-text);
    background: white;
    box-shadow: 0 35px 100px rgba(0, 0, 0, 0.5);
}

.customer-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 2px solid var(--customer-border);
}

.customer-modal-header h2 {
    margin: 0 0 0.35rem;
}

.customer-modal-header p {
    margin: 0;
    color: var(--customer-muted);
}

.customer-modal-close {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    color: white;
    background: var(--customer-red);
    font-size: 1.6rem;
    cursor: pointer;
}

.customer-moderation-form {
    display: grid;
    gap: 1.5rem;
    padding: 1.5rem;
}

.customer-duration-options {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    border: none;
}

.customer-duration-options legend {
    margin-bottom: 0.8rem;
    font-weight: 900;
}

.customer-duration-options label {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem;
    border: 2px solid var(--customer-border);
    border-radius: 14px;
    cursor: pointer;
}

.customer-duration-options label:has(input:checked) {
    border-color: var(--customer-blue);
    background: var(--customer-light-blue);
}

.customer-duration-options span {
    display: grid;
    gap: 0.15rem;
}

.customer-duration-options small {
    color: var(--customer-muted);
}

.customer-form-group {
    display: grid;
    gap: 0.55rem;
}

.customer-form-group label {
    font-weight: 900;
}

.customer-form-group textarea {
    width: 100%;
    resize: vertical;
    padding: 1rem;
    border: 2px solid var(--customer-border);
    border-radius: 14px;
    font: inherit;
}

.customer-form-group textarea:focus {
    outline: none;
    border-color: var(--customer-blue);
    box-shadow:
        0 0 0 4px rgba(31, 111, 235, 0.14);
}

.customer-form-group small {
    color: var(--customer-muted);
}

.customer-modal-warning {
    padding: 1rem;
    border: 2px solid rgba(217, 119, 6, 0.3);
    border-radius: 14px;
    color: #92400e;
    background: rgba(217, 119, 6, 0.1);
}

.customer-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.8rem;
}

.customer-modal-cancel,
.customer-modal-confirm {
    padding: 0.85rem 1.1rem;
    border: none;
    border-radius: 12px;
    color: white;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.customer-modal-cancel {
    background: var(--customer-gray);
}

.customer-modal-confirm {
    background: var(--customer-orange);
}

.customer-modal-open {
    overflow: hidden;
}

.customer-modal-success-note {
    padding: 1rem;
    border: 2px solid rgba(22, 132, 71, 0.3);
    border-radius: 14px;
    color: #116437;
    background: rgba(22, 132, 71, 0.1);
}

.customer-modal-success-note p {
    margin: 0.55rem 0 0;
}

.customer-unblock-confirm {
    background: var(--customer-green);
}

.customer-ban-modal {
    border-color: rgba(198, 40, 40, 0.75);
}

.customer-ban-modal-header {
    border-bottom-color: rgba(198, 40, 40, 0.3);
}

.customer-ban-modal-header h2 {
    color: var(--customer-red);
}

.customer-ban-warning {
    padding: 1.2rem;
    border: 2px solid rgba(198, 40, 40, 0.4);
    border-radius: 16px;
    color: #991b1b;
    background: rgba(198, 40, 40, 0.1);
}

.customer-ban-warning strong {
    display: block;
    margin-bottom: 0.6rem;
    font-size: 1.05rem;
}

.customer-ban-warning p {
    margin: 0.5rem 0 0;
    line-height: 1.6;
}

.customer-ban-confirmation {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1rem;
    border: 2px solid rgba(198, 40, 40, 0.35);
    border-radius: 14px;
    color: #7f1d1d;
    background: rgba(198, 40, 40, 0.07);
    font-weight: 800;
    cursor: pointer;
}

.customer-ban-confirmation input {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    margin-top: 0.1rem;
    accent-color: var(--customer-red);
}

.customer-permanent-ban-confirm {
    padding: 0.85rem 1.1rem;
    border: none;
    border-radius: 12px;
    color: white;
    background: var(--customer-red);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.customer-permanent-ban-confirm:hover {
    filter: brightness(1.08);
}

.customer-notes-list {
    display: grid;
    gap: 1rem;
}

.customer-note {
    padding: 1rem;
    border: 2px solid var(--customer-border);
    border-radius: 16px;
    background: white;
}

.customer-note-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;

    margin-bottom: 0.75rem;

    color: var(--customer-muted);
    font-size: 0.9rem;
}

.customer-note-content {
    line-height: 1.7;
    white-space: normal;
}

/* Waarschuwingsgeschiedenis */

.customer-warning-history {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.customer-log-warning {
    padding: 1rem;
    border-radius: 16px;
    border-left: 4px solid #f59e0b;
    background: #ffffff;
}

.customer-log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .75rem;
}

.customer-log-meta {
    margin-bottom: .75rem;
    font-size: .9rem;
    opacity: .8;
}

.customer-log-description {
    line-height: 1.6;
}

.customer-empty-state {
    padding: 1rem;
    border-radius: 16px;
    background: #ffffff;
}

.customer-log-entry {
    border-bottom: 2px solid gray;
}

.customer-log-entry:nth-child(odd) {
    background-color: rgba(128, 128, 128, 0.322);
}
.customer-log-entry:nth-child(even) {
    background-color: rgba(54, 90, 124, 0.322);
}


/* MEDIA */

@media (max-width: 850px) {
    .customer-dossier-grid {
        grid-template-columns: 1fr;
    }

    .customer-summary-card {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 550px) {
    .customer-details-list div {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .customer-number-copy-row {
        align-items: flex-start;
        flex-direction: column;
    }
}