/* Reset & base */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: Arial, sans-serif;
    color: #fff;
    background: url(https://cdn.mrejata.eu/img/fivem_default_back.jpg) no-repeat center center fixed;
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0); /* Transparent header */
    box-sizing: border-box;
}
.header .logo img {
    width: 64px;
}
.header .nav-links {
    display: flex;
    gap: 15px;
}
.header .nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}
.header .nav-links a:hover {
    color: #ffa500;
}

/* Main container */
.mainbox {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 32px 16px 32px;
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.3);
    margin: 2.5% 0;
}

/* Host info */
.host-ip, .host-icon, .host-players {
    display: inline-block;
    float: right;
    margin-top: -32px;
}
.host-icon { margin-right: 155px; }
.host-players { margin-right: 180px; }

/* Server status */
.server-status {
    font-size: 16px;
    margin: 10px 0;
}
.status-online { color: #00ff6a; }
.status-offline { color: #ff4c4c; }



/* Players */
.players {
    margin-top: 10px;
    /* Removed max-height and overflow to allow natural page expansion */
}
.player {
    display: flex;
    justify-content: space-between;
    padding: 6px 10px;
    margin-bottom: 4px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.2);
}
.player span {
    color: #9ca3af;
    font-size: 13px;
}

/* Buttons */
.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}
.button-row a, .button-row button {
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    font-weight: 500;
    cursor: pointer;
}
.button-refresh { background: #5865f2; color: #fff; }
.button-connect { background: #00ff6a; color: #000; }
.button-refresh:hover, .button-connect:hover { opacity: 0.85; }

/* Text, links, and code */
.blockquote, blockquote { font-size: 14px; }
code { background-color: #0c0c0c; }
.form-control { color: #fff; background-color: rgba(0,0,0,0.3); border: 1px solid rgba(127,127,127,0.8); }
hr { border-top: 3px solid rgba(255,255,255,0.2); }
.swal2-popup { font-size: 1.6rem !important; }
.center-logo { display: block; margin-left: auto; margin-right: auto; width: 30%; }

/* Links cleanup */
a:link, a:visited, a:hover, a:active { text-decoration: none; }

/* ---------- FOOTER ---------- */
.footer {
    bottom: 0;
    left: 0;
    width: 90%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    color: #fff;
    box-sizing: border-box;
}

.footer .copyright {
    font-size: 14px;
}

.footer .social-icons {
    display: flex;
    gap: 20px;
}

.footer .social-icons a {
    color: #fff;
    font-size: 24px;
    text-decoration: none;
}

.footer .social-icons a:hover {
    color: #ffa500;
}

.footer .copyright,
.footer .copyright a,
.footer .copyright a:visited,
.footer .copyright a:hover,
.footer .copyright a:active,
.footer .copyright a:focus {
    font-size: 14px;
    color: inherit;
    text-decoration: none;
}
