/* Reset e Estilo Geral */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-image: url(https://static.tibia.com/images/global/header/background-artwork.webp);
    background-position: -170px top;
    background-color: #051122;
    background-position: center top;
    background-repeat: no-repeat;
    zoom: 130%;    
    font-size: 14px; 
}

/* Estilização Navbar */
.navbar {
    background-color: #0000005e; /* Cor de fundo do Navbar */
    padding: 10px 0;
    display: flex;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.navbar-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-buttons {
    display: flex;
    gap: 10px;
}

/* Botões com imagens */
.image-button {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px; /* Ajuste a largura conforme necessário */
    height: 40px; /* Ajuste a altura conforme necessário */
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    text-align: center;    
    text-decoration: none;
}

.image-button .button-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* object-fit: cover; */
    /* transition: opacity 0.3s ease; */
    cursor: pointer;
}

.image-button .button-img.hover {
    opacity: 0; /* Inicialmente oculta */
    cursor: pointer;
}

.image-button:hover .button-img.hover {
    opacity: 1; /* Visível ao passar o mouse */
}

.image-button:hover .button-img.default {
    opacity: 0; /* Oculta a imagem padrão ao passar o mouse */
}

.image-button span {
    position: relative;
    color: white;
    font-size: 14px;
    font-weight: bold;
    z-index: 1; /* Texto acima das imagens */
    pointer-events: none; /* Evita que o texto interfira no hover */
}


/* Layout Principal */
.main-container {
    display: flex;
    justify-content: center;
    padding: 20px;
    gap: 20px;
    max-width: 1200px;
    margin: auto;
    box-sizing: border-box;
}

/* Estilização do Menu Lateral (Sidebar) */
.sidebar {
    width: 200px;
    padding: 20px;
    box-sizing: border-box;
    color: white;
    font-family: Arial, sans-serif;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
}

.sidebar li {
    margin: 15px 0;
}

.sidebar a {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    position: relative;
    padding-left: 10px; /* Espaço para a imagem à esquerda */
    padding-right: 10px; /* Espaço para a imagem à esquerda */
    height: 40px; /* Ajusta a altura do botão */
    background-size: cover;
    background-position: center;
}

.sidebar a .button-img.default {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* A imagem de fundo fica atrás do texto e ícones */
    /* transition: opacity 0.3s ease; */
}

.sidebar a .button-img.hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* A imagem de fundo fica atrás do texto e ícones */
    opacity: 0;
    /* transition: opacity 0.3s ease; */
}

.sidebar a:hover .button-img.default {
    opacity: 0; /* Oculta a imagem padrão de fundo ao passar o mouse */
}

.sidebar a:hover .button-img.hover {
    opacity: 1; /* Mostra a imagem de fundo do hover */
}

/* Responsividade para telas menores */
@media (max-width: 768px) {
    .sidebar {
        width: 180px;
    }

    .sidebar a {
        font-size: 14px; /* Ajusta o tamanho da fonte */
    }

}


/* Conteúdo Principal */
.content {
    flex: 1;
    background-image: url(../background/background.gif);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    box-sizing: border-box;
}

/* Footer */
.footer {
    color: rgb(255, 255, 255);
    text-align: center;
    padding: 10px;
    position: relative;
    font-size: 9px;
}

/* Responsividade */
@media (max-width: 992px) {
    .navbar {
        flex-direction: column;
        align-items: center;
    }
    .navbar-buttons {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    .main-container {
        flex-direction: column;
        padding: 10px;
        gap: 15px;
    }
    .sidebar {
        width: 100%;
    }
    .content {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px;
    }
    .navbar-buttons button {
        width: 100px;
        text-align: center;
    }
    .main-container {
        padding: 5px;
    }
}

@media (max-width: 576px) {
    .navbar-buttons button {
        width: 100%;
    }
    .main-container {
        gap: 10px;
    }
    .sidebar ul li {
        margin-bottom: 10px;
    }
    .content {
        padding: 10px;
    }
}
/* Formulário de Login */
.login-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    /* background-color: #f5f5f5; */
    border-radius: 8px;
    border: 1px solid #00000052; /* Borda fina preta */
    box-shadow: #051122 1px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center; /* Centraliza o conteúdo dentro do formulário */
    
}

/* Título */
.login-container h2 {
    text-align: center;
    margin-bottom: 20px;
}

/* Labels */
.login-container label {
    margin-bottom: 8px;
    font-weight: bold;
}

/* Campos de input */
.login-container input {
    width: 95%; /* Centraliza os campos de entrada */
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    
    background-color: transparent;
}

/* Botões */
.login-container button, .login-container .back-button {
    width: 80%; /* Botões com o mesmo tamanho dos campos */
    padding: 10px;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Estilo para o botão Voltar */
.login-container .back-button {
    background-color: #95a5a6;
}

.login-container .back-button:hover {
    background-color: #7f8c8d;
}

/* Erro */
.error {
    color: red;
    text-align: center;
    margin-bottom: 10px;
}

/* Link para criar conta */
.login-container p {
    text-align: center;
}

.login-container p a {
    color: #3498db;
    text-decoration: none;
}

.login-container p a:hover {
    text-decoration: underline;
}


/* Formulário de Criar Conta */
.create-account-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    /* background-color: #f5f5f5; */
    border-radius: 8px;
    border: 1px solid #000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Títulos */
.create-account-container h2 {
    text-align: center;
    margin-bottom: 20px;
}

/* Labels */
.create-account-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

/* Campos de input */
.create-account-container input, .create-account-container select {
    width: 95%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: transparent;
}

/* Botões */
.create-account-container button, .create-account-container .back-button {
    width: 80%;
    padding: 10px;
    background-color: #2c3e50;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.create-account-container button:hover, .create-account-container .back-button:hover {
    background-color: #34495e;
}

/* Estilo para o botão Voltar */
.create-account-container .back-button {
    background-color: #95a5a6;
}

.create-account-container .back-button:hover {
    background-color: #7f8c8d;
}

/* Erro */
.error {
    color: red;
    text-align: center;
    margin-bottom: 10px;
    font-weight: bold;
}


.submit-btn {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    position: relative;
}

.submit-btn .button-img {
    display: block;
    width: 100%;
    height: auto;
}

.submit-btn .default {
    display: block;
}

.submit-btn .hover {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
}

.submit-btn:hover .default {
    display: none;
}

.submit-btn:hover .hover {
    display: block;
}

/* GAMEMASTERS */
.gamemasters-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
    /* background-color: #f4f4f4; */
    /* border: 1px solid #ddd; */
    border-radius: 8px;
}

h1 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #6b3e26;
}

.group-section {
    margin-bottom: 30px;
}

.group-section h2 {
    font-size: 1.5rem;
    color: #6b3e26;
    border-bottom: 2px solid #6b3e26;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.character-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.character-list li {
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #d0c0a0;
    margin-bottom: 5px;
    border-radius: 4px;
}

.brown-light-form {
    border-radius: 4px;
    color: #6b3e26;
}

.brown-light {
    background-color: #f4e2c6;
    border-radius: 4px;
    color: #6b3e26;
}

.brown-dark {
    background-color: #e0cba9;
    border-radius: 4px;
    color: #6b3e26;
}

.character-list li:nth-child(odd) {
    background-color: #f4e2c6;
}

.character-list li:nth-child(even) {
    background-color: #e0cba9;
}

/* Highscores */
.highscores-container {
    display: flex;
    justify-content: space-between;
}

.highscores-options {    
    width: 13%;
    float: left;
    border: 1px solid #5A2800;
    border-radius: 5px;
    padding-left: 5px;
}

.highscores-options ul {
    list-style-type: none;
    padding: 0;
}

.highscores-options li {
    margin-bottom: 10px;
}

.highscores-options a {
    text-decoration: none;
    color: #6b3e26;
    font-weight: bold;
}

.highscores-options a.active {
    color: #c1a679;
}

.highscores-list{
    float: right;
    width: 85%;
}

.highscores-list table {
    width: 100%;
    border-collapse: collapse;
}

.highscores-list th, .highscores-list td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
    color: #6b3e26;
}

.highscores-list th {
    background-color: #5A2800;
    color: white;
}

/* PÁGINA DE DASHBOARD */


.success {    
    color: rgb(56, 184, 56);
}


.download-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.download-card {
    background-color: #d7ccc8; /* Brown light */
    border: 1px solid #3e2723; /* Brown dark */
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

.download-card h2 {
    margin: 0 0 10px;
    color: #3e2723;
}

.download-card p {
    margin: 0 0 10px;
    color: #5d4037; /* Slightly lighter brown */
}

.download-card:hover {
    background-color: #a1887f; /* Brown dark hover */
    color: #fff;
}

.image-buttondownload {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: 20px;
    right: 20px;
    text-decoration: none;
    color: #fff;
    font-weight: bold;           
    width: 120px; /* Ajuste a largura conforme necessário */
    height: 40px; /* Ajuste a altura conforme necessário */
}

.button-imgdownload {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    transition: opacity 0.3s ease;
}

.button-imgdownload.default {
    opacity: 1;
}

.button-imgdownload.hover {
    opacity: 0;
}

.image-buttondownload:hover .button-imgdownload.default {
    opacity: 0;
}

.image-buttondownload:hover .button-imgdownload.hover {
    opacity: 1;
}

.image-buttondownload span {
    z-index: 1;
    position: relative;
}


/* Server Info */
.info-card {
    background-color: #d7ccc8; /* Brown light */
    border: 1px solid #3e2723; /* Brown dark */
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.info-card h2 {
    margin: 0 0 10px;
    color: #3e2723;
}

.info-card p {
    margin: 5px 0;
    color: #5d4037; /* Slightly lighter brown */
    white-space: pre-wrap;            
    font-size: 12px;
}

.info-card:hover {
    background-color: #a1887f; /* Brown dark hover */
    color: #fff;
}


/* DASHBOARD */
.dashboard-container {
    max-width: 1200px;
    margin: 50px auto;
    background: #e0cba9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 20px;
    text-align: center;
}

.account-status {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f4e2c6;
    color: #5d4037;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.status-info {
    display: flex;
    align-items: center;
}

.status-info img {
    width: 50px;
    height: 50px;
    margin-right: 15px;
}

.status-info p {
    font-size: 18px;
    margin: 0;
}

.premium {
    color: green;
    font-weight: bold;
}

.free {
    color: red;
    font-weight: bold;
}

.status-info .premium-expiry {
    font-size: 8px;
    font-weight: bold;
    margin-top: 10px;
    margin-left: -154px;
    color: #5d4037;
}

.status-info .free-account-info {
    font-size: 8px;
    font-weight: bold;
    margin-top: 10px;
    margin-left: -110px;
    color: #333;
}

.actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* UPDATE INFOS */
/* Estilos para o formulário de edição */
#edit-form {
    display: flex;
    flex-direction: column;
}

#edit-form label {
    font-size: 16px;
    margin-bottom: 5px;
}

#edit-form input {
    width: 30%; /* Campos de entrada irão ocupar toda a largura */
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: transparent;
}

.actionsdashboard {
    display: flex;
    gap: 10px;
}


/* LISTA DE PERSONAGENS */
.characters-list-container {
    margin-top: -20px;
}

.characters-list {
    margin-top: 10px;
    min-width: 800px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #e0cba9;
    color: #5d4037;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.character-name {
    font-size: 1.2em;
    font-weight: bold;
    color: #3e2723;
    text-align: left;
}

.character-details {
    font-size: 9px;
    color: #5d4037;
    margin-top: 1px;
    text-align: left;
}

.characters-list h3 {
    margin-bottom: 10px;
}

#character-list {
    list-style: none;
    padding: 0;
}

#character-list li {
    padding: 5px 0;
    border-bottom: 1px solid #ddd;
}

#character-list li:last-child {
    border-bottom: none;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

/* Modal content */
.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    text-align: center;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    color: #000;
    cursor: pointer;
}