@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;700&display=swap');

/* ==========================================================================
   ADMIN TABLE
   ========================================================================== */

.um-article-access-wrap {
    max-width: 100%;
}

.um-table-container {
    overflow-x: auto;
    background: #fff;
    border-radius: 14px;
    box-shadow:
        0 6px 20px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
}

.um-access-table {
    border-collapse: collapse;
    min-width: 100%;
    width: max-content;
}

.um-access-table th,
.um-access-table td {
    border: 1px solid #edf0f2;
    padding: 10px 12px;
    text-align: center;
}

.um-access-table thead th {
    background: #f8fafc;
    position: sticky;
    top: 0;
    z-index: 10;
}

.sticky-col {
    position: sticky;
    left: 0;
    background: #ffffff;
    z-index: 5;
    min-width: 230px;
    text-align: left !important;
}

.user-cell {
    font-weight: 600;
}

.user-email {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
    font-weight: normal;
}

.post-col {
    min-width: 130px;
    max-width: 150px;
}

.post-title {
    font-size: 12px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.checkbox-cell:hover {
    background: #f8fbff;
}

.access-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.access-checkbox.saving {
    opacity: 0.5;
    pointer-events: none;
}

.toggle-all-users {
    font-size: 11px !important;
    padding: 3px 8px !important;
}

.um-status-message {
    margin-top: 18px;
    padding: 14px 18px;
    border-radius: 10px;
    display: none;
    font-weight: 600;
}

.um-status-message.success {
    display: block;
    background: #dcfce7;
    color: #166534;
}

.um-status-message.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
}

/* ==========================================================================
   MEMBER HEADER
   ========================================================================== */

.um-member-hero {
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 40px 0;
    padding: 30px;
    border-radius: 28px;
    background:
        linear-gradient(135deg, #111827, #1f2937);
    box-shadow:
        0 18px 45px rgba(0,0,0,0.28);
    overflow: hidden;
    position: relative;
}

.um-member-avatar {
    text-align: center;
    text-decoration: none;
    flex-shrink: 0;
}

.um-member-avatar img {
    width: 145px;
    height: 145px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.12);
    box-shadow:
        0 10px 30px rgba(0,0,0,0.4);
    transition: all 0.25s ease;
}

.um-member-avatar:hover img {
    transform: scale(1.05);
}

.um-avatar-firstname {
    margin-top: 12px;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    text-shadow:
        0 2px 8px rgba(0,0,0,0.35);
}

/* ==========================================================================
   BOARD
   ========================================================================== */

.um-member-board {
    position: relative;
    flex: 1;
    max-width: 470px;
    min-height: 130px;
    padding: 24px 28px;
    border-radius: 8px;
    background:
        linear-gradient(
            rgba(255,255,255,0.015),
            rgba(255,255,255,0.015)
        ),
        #1b1b1b;
    border: 10px solid #714926;
    box-shadow:
        inset 0 0 18px rgba(0,0,0,0.72),
        0 6px 18px rgba(0,0,0,0.35);
}

.um-member-board::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 22px,
            rgba(255,255,255,0.012) 23px
        );
    pointer-events: none;
}

.chalk-text {
    position: relative;
    z-index: 2;
    font-family: 'Caveat', cursive;
    font-size: 28px;
    line-height: 1.5;
    color: rgba(255,255,255,0.96);
    text-shadow:
        0 0 1px rgba(255,255,255,0.85),
        0 0 6px rgba(255,255,255,0.08);
    white-space: pre-line;
}

/* ==========================================================================
   AVATARS GRID
   ========================================================================== */

.um-avatar-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 15px;
}

.um-avatar-choice {
    cursor: pointer;
}

.um-avatar-choice input {
    display: none;
}

.um-avatar-choice img {
    width: 86px;
    height: 86px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid transparent;
    transition: all 0.25s ease;
    box-shadow:
        0 5px 18px rgba(0,0,0,0.12);
}

.um-avatar-choice input:checked + img {
    border-color: #4f46e5;
    transform: scale(1.08);
    box-shadow:
        0 0 0 4px rgba(79,70,229,0.14),
        0 10px 22px rgba(79,70,229,0.32);
}

.um-avatar-choice img:hover {
    transform: scale(1.05);
}

/* ==========================================================================
   ARTICLES LIST
   ========================================================================== */

.um-article-access-list {
    margin-top: 40px;
}

.um-article-access-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.um-article-access-list li {
    margin-bottom: 16px;
}

.um-article-access-list a {
    display: block;
    padding: 18px 22px;
    border-radius: 16px;
    background: #ffffff;
    color: #111827;
    text-decoration: none;
    font-weight: 600;
    box-shadow:
        0 6px 18px rgba(0,0,0,0.06);
    transition: all 0.25s ease;
}

.um-article-access-list a:hover {
    transform: translateY(-3px);
    box-shadow:
        0 10px 26px rgba(0,0,0,0.12);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 900px) {

    .um-member-hero {
        flex-direction: column;
        text-align: center;
    }

    .um-member-board {
        width: 100%;
        max-width: 100%;
    }

    .chalk-text {
        font-size: 24px;
    }

    .um-member-avatar img {
        width: 120px;
        height: 120px;
    }

    .um-avatar-firstname {
        font-size: 20px;
    }
}