
/* ========================================= */
/*              PAGE STRUCTURE               */
/* ========================================= */

body {
    margin: 0;
    padding: 110px 40px 40px 40px;

    background: #0f0f14;
    color: white;
    font-family: Arial, sans-serif;

    box-sizing: border-box;
}

.container {
    max-width: 1400px;
    margin: auto;
}


/* ========================================= */
/*              PAGE HEADINGS                */
/* ========================================= */

h1 {
    color: #4da3ff;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 1px;

    margin-top: 8px;
    margin-bottom: 30px;

    text-shadow: 0 0 15px rgba(77, 163, 255, 0.15);
}


/* ========================================= */
/*               CONTENT CARDS               */
/* ========================================= */

.card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;

    backdrop-filter: blur(10px);

    overflow-x: auto;
}


/* ========================================= */
/*              STATUS MESSAGES              */
/* ========================================= */

.message {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.success {
    background: rgba(92, 255, 141, 0.12);
    border: 1px solid rgba(92, 255, 141, 0.3);
}

.error {
    background: rgba(255, 92, 92, 0.12);
    border: 1px solid rgba(255, 92, 92, 0.3);
}


/* ========================================= */
/*               STATUS DISPLAY              */
/* ========================================= */

.status {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.enabled {
    color: #5cff8d;
}

.disabled {
    color: #ff5c5c;
}


/* ========================================= */
/*                TABLE LAYOUT               */
/* ========================================= */

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 14px;
    text-align: left;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

    vertical-align: middle;
}

th {
    color: #4da3ff;
}

tr:last-child td {
    border-bottom: none;
}


/* ========================================= */
/*                 USER ROLES                */
/* ========================================= */

.role-admin {
    color: #ffcc66;
    font-weight: bold;
}

.role-user {
    color: #4da3ff;
}


/* ========================================= */
/*                ACTION BUTTONS             */
/* ========================================= */

.actions,
.buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

button,
select {
    border: none;
    border-radius: 8px;

    padding: 12px 20px;
    font-size: 15px;
}

button {
    color: white;
    background: #4da3ff;
    cursor: pointer;

    transition: opacity 0.2s ease;
}

button:hover {
    opacity: 0.85;
}


/* ========================================= */
/*                SPECIAL BUTTONS            */
/* ========================================= */

.danger {
    background: #d9534f;
}

.role {
    background: #6f42c1;
}

.restart {
    background: #f0ad4e;
}

.build {
    background: #6f42c1;
}

.logout_button {
    background-color: black;
    color: white;
}


/* ========================================= */
/*                 SELECT FIELDS             */
/* ========================================= */

select {
    background: #1a1a24;
    color: white;

    border: 1px solid rgba(255, 255, 255, 0.15);
}


/* ========================================= */
/*                  LOGS                     */
/* ========================================= */

.logs {
    background: #08080c;

    border-radius: 10px;
    padding: 20px;

    overflow-x: auto;
    overflow-y: auto;

    white-space: pre-wrap;

    font-family: monospace;
    font-size: 13px;

    max-height: 500px;
}


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

@media (max-width: 700px) {

    body {
        padding: 150px 20px 20px 20px;
    }

    h1 {
        font-size: 28px;
    }

    .card {
        padding: 18px;
    }

    .buttons,
    .actions {
        gap: 8px;
    }

    button {
        padding: 10px 15px;
    }

}
