﻿.nexus-admin-page {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.5rem;
}

.nexus-admin-page__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.nexus-admin-page__eyebrow {
    margin: 0 0 .25rem;
    font-size: .8rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #64748b;
}

.nexus-admin-page h1,
.nexus-admin-page h2,
.nexus-dialog h2 {
    margin: 0;
    color: #0f172a;
}

.nexus-admin-page p,
.nexus-dialog p {
    margin: .35rem 0 0;
    color: #475569;
}

.nexus-access-message,
.nexus-access-error {
    border-radius: 1rem;
    padding: 1rem 1.25rem;
}

.nexus-access-message {
    background: #ecfdf5;
    color: #047857;
}

.nexus-access-error {
    background: #fef2f2;
    color: #b91c1c;
}

.nexus-access-panel {
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    background: #fff;
    padding: 1.25rem;
}

.nexus-access-panel--full {
    width: 100%;
}

.nexus-access-panel__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.nexus-user-list {
    display: grid;
    gap: 1rem;
}

.nexus-user-card {
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1rem;
    background: #fff;
}

.nexus-user-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .75rem;
}

    .nexus-user-card__header strong {
        display: block;
        color: #0f172a;
        font-size: 1.05rem;
    }

    .nexus-user-card__header p {
        margin: .2rem 0 0;
        color: #64748b;
    }

.nexus-role-list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.nexus-role-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid #e2e8f0;
    padding-top: .75rem;
}

.nexus-role-row__body {
    min-width: 0;
}

    .nexus-role-row__body strong {
        display: block;
        color: #0f172a;
    }

    .nexus-role-row__body small {
        display: block;
        margin-top: .25rem;
        color: #64748b;
    }

.nexus-role-row__actions {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-shrink: 0;
}

.nexus-status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #f1f5f9;
    color: #0f172a;
    padding: .3rem .65rem;
    font-size: .85rem;
}

.nexus-primary-button,
.nexus-secondary-button,
.nexus-icon-button {
    border: 0;
    border-radius: .8rem;
    cursor: pointer;
    font: inherit;
}

.nexus-primary-button {
    background: #0f172a;
    color: #fff;
    padding: .75rem 1rem;
}

.nexus-secondary-button {
    background: #f1f5f9;
    color: #0f172a;
    padding: .65rem .9rem;
}

.nexus-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    background: #f1f5f9;
    color: #0f172a;
}

.nexus-primary-button:disabled,
.nexus-secondary-button:disabled {
    cursor: not-allowed;
    opacity: .65;
}

.nexus-dialog-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, .45);
    padding: 1rem;
}

.nexus-dialog {
    width: min(760px, 100%);
    max-height: min(90vh, 860px);
    overflow: auto;
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 24px 80px rgba(15, 23, 42, .24);
    padding: 1.25rem;
}

.nexus-dialog__header,
.nexus-dialog__footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.nexus-dialog__header {
    align-items: flex-start;
    margin-bottom: 1rem;
}

.nexus-dialog__footer {
    align-items: center;
    justify-content: flex-end;
    margin-top: 1.25rem;
}

.nexus-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

    .nexus-form-grid label,
    .nexus-service-types {
        display: flex;
        flex-direction: column;
        gap: .35rem;
        color: #0f172a;
    }

.nexus-form-grid__full {
    grid-column: 1 / -1;
}

.nexus-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: .8rem;
    padding: .75rem .85rem;
    font: inherit;
    background: #fff;
    color: #0f172a;
}

    .nexus-input:disabled {
        background: #f8fafc;
        color: #64748b;
    }

.nexus-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem .75rem;
}

.nexus-check-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: .5rem !important;
}

    .nexus-check-row input {
        width: 16px;
        height: 16px;
        margin: 0;
    }

@media (max-width: 760px) {
    .nexus-admin-page__header,
    .nexus-access-panel__heading,
    .nexus-user-card__header,
    .nexus-role-row,
    .nexus-dialog__header,
    .nexus-dialog__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .nexus-role-row__actions {
        justify-content: space-between;
    }

    .nexus-form-grid,
    .nexus-check-grid {
        grid-template-columns: 1fr;
    }
}
