/* Layout */
.dashboard {
    padding: 4rem 0;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 6rem;
}

.dashboard__sidebar {
}

.dashboard__content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Profile Card */
.profile-card {
    background: var(--aok-sand);
    color: var(--aok-black);
    padding: 2.5rem;
}

.profile-card__title {
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--aok-black);
}

.profile-card__logout {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--aok-grey-1);
    background: var(--aok-white);
    border-radius: 6px;
    text-decoration: none;
    color: var(--aok-black);
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.profile-card__logout:hover,
.profile-card__logout:focus-visible {
    background: var(--aok-pastel-blue);
    border-color: var(--aok-grey-3);
    outline: none;
}

/* Invite / Pending Cards */
.invite,
.pending {
    background: var(--aok-white);
    border-radius: 8px;
    padding: 1.5rem;
    color: var(--aok-black);
}

.invite__title,
.pending__title {
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--aok-black);
}

.invite__description,
.pending__description {
    margin: 0.5rem 0 1rem;
    color: var(--aok-grey);
}

/* Invite Actions */
.invite__actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.invite__button {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.invite__button--primary {
    background: var(--aok-grass-green);
    border-color: var(--aok-grass-green);
    color: var(--aok-white);
}

.invite__button--primary:hover,
.invite__button--primary:focus-visible {
    background: var(--aok-green-hover);
    border-color: var(--aok-green-hover);
    color: var(--aok-black);
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--aok-green) 25%, transparent);
}

.invite__button--secondary {
    background: var(--aok-softest-grey);
    border: 1px solid var(--aok-grey-1);
    color: var(--aok-black);
}

.invite__button--secondary:hover,
.invite__button--secondary:focus-visible {
    background: var(--aok-pastel-blue);
    border-color: var(--aok-grey-3);
    outline: none;
}

/* Invite Warning */
.invite__warning {
    margin-top: 1rem;
    background: var(--aok-beige);
    border-left: 4px solid var(--aok-orange);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--aok-black);
}

/* Pending List */
.pending__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pending__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--aok-grey-1);
}

.pending__user {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.pending__avatar {
    width: 40px;
    height: 40px;
    background: var(--aok-softest-grey);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--aok-grey);
    font-weight: 600;
}

.pending__name {
    font-weight: bold;
    color: var(--aok-black);
}

.pending__email {
    font-size: 0.85rem;
    color: var(--aok-grey-5);
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1rem;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
    width: 3rem;
    height: 3rem;
    padding: 12px;
    border-radius: 4px;
}

.action-button--reject {
    border: 2px solid var(--aok-error);
    color: var(--aok-error);
    background: transparent;
}

.action-button--reject:hover,
.action-button--reject:focus-visible {
    border-color: var(--aok-error-dark);
    outline: none;
}

.action-button--approve {
    border: 2px solid var(--aok-grey-1);
    color: var(--aok-grass-green);
    background: transparent;
}

.action-button--approve:hover,
.action-button--approve:focus-visible {
    border-color: var(--aok-grey-3);
    outline: none;
}

.pending__empty {
    padding: 0.75rem;
    color: var(--aok-grey-5);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 920px) {
    .dashboard {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}


/* QR Code */
/* QR Overlay */
.qr-code {
    position: fixed;
    inset: 0;
    z-index: 1010;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    transition: opacity .2s ease, visibility .2s ease;
    opacity: 1;
    visibility: visible;
}

.qr-code.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.qr-code__image {
    display: block;
    max-width: 80vw;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

/* Close oben rechts */
.qr-code__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    height: 44px;
    width: 44px;
    border-radius: 999px;
    border: 1px solid var(--aok-grey-1);
    background: var(--aok-white);
    color: var(--aok-black);
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    line-height: 1;
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.qr-code__close:hover,
.qr-code__close:focus-visible {
    background: var(--aok-pastel-blue);
    border-color: var(--aok-grey-3);
    outline: none;
}

/* Body scroll lock wenn Overlay offen */
.is-modal-open {
    overflow: hidden;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .qr-code {
        transition: none;
    }
}
