/* --- universal --- */

* {
    gap: 0;
    margin: 0;

    transition: all 0.1s;
}

a {
    color: inherit;
    text-decoration: none;
}

body {
    color: #fff;
    background-color: #0f0f0f;

    font-weight: bold;
    font-family: 'Magistral', sans-serif;
}

/* header */

header {
    background-color: #1f1f1f;

    width: 100%;
    height: 80px;

    display: flex;
    align-items: center;

    h1 {
        margin-left: 20px;
    }

    nav {
        gap: 30px;
        display: flex;
        margin-left: auto;
        margin-right: 50px;
        align-items: center;
        
        a {
            color: #aaa;
            font-size: 125%;
        }
        a:hover {
            color: #eee;
        }

        .active {
            color: #fff;
            font-size: 150%;
        }
    }
}

main {
    display: flex;
    margin-top: 30px;
    align-items: center;
    flex-direction: column;
}

/* --- players --- */

.page-header {
    width: 80%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.page-header input {
    background: #1f1f1f;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-family: 'Magistral', sans-serif;
    font-size: 100%;
    padding: 8px 16px;
    width: 250px;
}

.player-list {
    width: 80%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.player-row {
    background: #1f1f1f;
    border-radius: 8px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.player-name { font-size: 110%; }
.player-id { color: #aaa; font-size: 85%; margin-left: auto; }

.view-btn {
    background: #fff;
    border: none;
    border-radius: 6px;
    color: #0f0f0f;
    cursor: pointer;
    font-family: 'Magistral', sans-serif;
    font-weight: bold;
    padding: 6px 14px;
}

.view-btn:hover { background: #ccc; }

.player-detail { width: 80%; }
.hidden { display: none !important; }

#back-btn {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-family: 'Magistral', sans-serif;
    font-size: 100%;
    margin-bottom: 20px;
    padding: 0;
}

#back-btn:hover { color: #fff; }

.perm-row {
    background: #1f1f1f;
    border-radius: 8px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.perm-btn {
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Magistral', sans-serif;
    font-weight: bold;
    padding: 6px 16px;
}

.perm-btn.grant { background: #4caf50; color: #fff; }
.perm-btn.revoke { background: #e53935; color: #fff; }
.perm-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* --- account --- */

.account-card {
    background: #1f1f1f;
    border-radius: 8px;
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 300px;
}

.account-card p {
    color: #aaa;
    font-size: 110%;
}

#logout-btn {
    margin-top: 10px;
    background: #e53935;
    border-radius: 6px;
    color: #fff;
    font-family: 'Magistral', sans-serif;
    font-weight: bold;
    padding: 8px 20px;
    text-align: center;
    width: fit-content;
}

#logout-btn:hover { background: #b71c1c; }

/* --- homepage logged out --- */

#main-sub {
    color: #aaa;
    font-size: 110%;
    margin-top: 12px;
}