/* --- Admin Table Styles --- */
.admin-table-container {
    margin-top: 2.5rem;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(18, 20, 32, 0.92);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 16px 0 rgba(0, 0, 0, 0.10);
    border: 2px solid #e6cfa7;
    margin-bottom: 0;
}

th,
td {
    padding: 1rem 1.25rem;
    text-align: left;
}

th {
    background: #1a2a44;
    color: #e6cfa7;
    font-size: 1.05rem;
    font-weight: 700;
    border-bottom: 2px solid #e6cfa7;
}

tr {
    border-bottom: 1px solid #2a2e3a;
}

tr:last-child {
    border-bottom: none;
}

td {
    color: #f8f1e7;
    font-size: 1.05rem;
}

/* Optional: zebra striping */
tbody tr:nth-child(even) {
    background: rgba(30, 32, 44, 0.85);
}

/* Action buttons in table */
.admin-action-btn {
    background: #1a2a44;
    color: #e6cfa7;
    border: 2px solid #e6cfa7;
    border-radius: 0.5rem;
    padding: 0.4rem 1.2rem;
    font-size: 1rem;
    font-weight: 600;
    margin: 0.2rem 0.2rem 0.2rem 0;
    transition: background 0.15s, color 0.15s;
    display: inline-block;
}

.admin-action-btn:hover {
    background: #e6cfa7;
    color: #181c24;
}

.admin-action-btn.danger {
    background: #3a2736;
    color: #e6cfa7;
    border-color: #e6cfa7;
}

.admin-action-btn.danger:hover {
    background: #e6cfa7;
    color: #3a2736;
}

/* Tab buttons (Users, Game Progress) */
.admin-tabs {
    margin-bottom: 1rem;
}

.admin-tab-btn {
    background: none;
    border: 2px solid #e6cfa7;
    color: #e6cfa7;
    border-radius: 0.5rem 0.5rem 0 0;
    padding: 0.4rem 1.2rem;
    font-size: 1rem;
    font-weight: 600;
    margin-right: 0.5rem;
    transition: background 0.15s, color 0.15s;
    cursor: pointer;
}

.admin-tab-btn.active,
.admin-tab-btn:focus {
    background: #e6cfa7;
    color: #181c24;
    outline: none;
}

.admin-tab-btn:hover {
    background: #e6cfa7;
    color: #181c24;
}

.portal-shell {
    max-width: 1000px;
    margin: 2.5rem auto;
    padding: 2.5rem 2.5rem 2rem 2.5rem;
    border-radius: 1.5rem;
    border: 2px solid #e6cfa7;
    background: rgba(10, 14, 24, 0.92);
    box-shadow: 0 4px 32px 0 rgba(0, 0, 0, 0.18);
}

.portal-hero {
    margin-bottom: 2.5rem;
}

.portal-kicker {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 1rem;
    color: #e6cfa7;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.portal-hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin: 0 0 1rem 0;
    line-height: 1.05;
    color: #fff8f0;
}

.portal-hero p {
    font-size: 1.15rem;
    color: #e6e0d0;
    margin-bottom: 1.5rem;
}

.portal-actions {
    margin-top: 1.5rem;
}

.portal-link {
    background: none;
    border: 2px solid #e6cfa7;
    color: #e6cfa7;
    border-radius: 0.5rem;
    padding: 0.5rem 1.25rem;
    font-size: 1.1rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}

.portal-link:hover {
    background: #e6cfa7;
    color: #181c24;
}

.portal-grid {
    display: flex;
    gap: 2.5rem;
    justify-content: space-between;
}

.custom-admin-link, button.custom-admin-link {
    padding: .3rem;
}


@media (max-width: 730px) {
    section.portal-grid {
        display: block;
    }

    article.portal-tile {
        margin-bottom: 1.5rem;
    }
}

.portal-tile {
    flex: 1 1 0;
    background: rgba(18, 20, 32, 0.92);
    border: 2px solid #e6cfa7;
    border-radius: 1rem;
    padding: 2rem 2rem 1.5rem 2rem;
    box-shadow: 0 2px 16px 0 rgba(0, 0, 0, 0.10);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.portal-tile-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.95rem;
    color: #e6cfa7;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.portal-tile h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #fff8f0;
}

.portal-tile p {
    font-size: 1.1rem;
    color: #e6e0d0;
    margin-bottom: 1.5rem;
}

.portal-button {
    background: #1a2a44;
    color: #e6cfa7;
    border: 2px solid #e6cfa7;
    border-radius: 0.5rem;
    padding: 0.75rem 2.5rem;
    font-size: 1.15rem;
    font-weight: 600;
    transition: background 0.15s, color 0.15s;
    margin-top: auto;
}

.portal-button:hover {
    background: #e6cfa7;
    color: #181c24;
}

.portal-button-secondary {
    background: #3a2736;
    color: #e6cfa7;
}

.portal-button-secondary:hover {
    background: #e6cfa7;
    color: #3a2736;
}

html {
    background: rgba(10, 14, 24, 0.92)
}