/* =========================================
   RESET BÁSICO E FUNDO DO SITE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #05050523;
    background-image: url('../images/bg-site.png'); /* Puxa a sua nova imagem */
    background-size: cover; /* Faz a imagem cobrir a tela toda */
    background-position: center top;
    background-attachment: fixed; /* Deixa o fundo parado enquanto a página rola */
    color: #c4c4c4;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
}

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

a {
    color: #ffeb3b;
    text-decoration: none;
    transition: 0.2s;
}

a:hover {
    color: #fff;
    text-shadow: 0 0 8px #ffeb3b;
}

/* Tipografia Mística */
h1, h2, h3, h4 {
    font-family: 'Cinzel', serif;
    color: #ffeb3b;
    text-shadow: 0 0 12px rgba(255, 235, 59, 0.4);
    margin-bottom: 15px;
    border-bottom: 1px solid #2222227e;
    padding-bottom: 5px;
}

/* =========================================
   ESTRUTURA PRINCIPAL E LOGO
   ========================================= */
/* Container Principal - Agora transparente! */
#wrapper {
    max-width: 1100px;
    margin: 0 auto;
    background: transparent; /* Remove o fundo preto sólido */
    box-shadow: none; /* Remove a sombra quadrada */
    border: none; /* Remove as bordas rígidas */
}

/* Topo e Logo - Agora transparente! */
#top-header {
    text-align: center;
    padding: 40px 0;
    background: transparent; /* Remove a imagem/cor sólida que estava a bloquear a floresta */
    border-bottom: none; /* Remove a linha abaixo da logo para ficar mais limpo */
    position: relative;
}

.main-logo {
    max-width: 320px;
    filter: drop-shadow(0 0 20px rgba(74, 144, 226, 0.3));
    transition: transform 0.4s ease, filter 0.4s ease;
}

.main-logo:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 0 35px rgba(255, 0, 0, 0.5));
}

/* =========================================
   MENU DE NAVEGAÇÃO (SUBMENU CORRIGIDO)
   ========================================= */
.sf-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    background: linear-gradient(to bottom, #111, #0a0a0a);
    border-bottom: 1px solid #2a2a2a;
    border-top: 1px solid #2a2a2a;
    position: relative;
    z-index: 100;
}

.sf-menu > li {
    position: relative;
}

.sf-menu a {
    color: #888;
    text-decoration: none;
    font-weight: bold;
    padding: 15px 25px;
    display: block;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    transition: 0.3s;
    border-right: 1px solid #1a1a1a;
}

.sf-menu a:hover {
    color: #fff;
    background: #151515;
    text-shadow: 0 0 10px #4a90e2;
}

/* Submenus Dropdown */
.sf-menu ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #111;
    min-width: 200px;
    border: 1px solid #222;
    border-top: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.8);
}

/* A SOLUÇÃO MÁGICA: Usar BLOCK em vez de FLEX resolve o bug da clonagem */
.sf-menu li:hover > ul {
    display: block; 
}

.sf-menu ul a {
    border-right: none;
    border-bottom: 1px solid #1a1a1a;
    padding: 12px 15px;
    font-size: 12px;
}

/* =========================================
   LAYOUT BLINDADO (CSS GRID)
   ========================================= */
#main-content {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Esquerda com 66%, Direita com 33% (Intrancável) */
    gap: 30px;
    padding: 30px;
    align-items: start; /* Impede as caixas de esticarem distorcidas */
}

#content-area {
    width: 100%;
    min-width: 0; /* Proteção anti-quebra */
}

#sidebar {
    width: 100%;
    min-width: 0;
}

/* =========================================
   BARRA LATERAL (WIDGETS / LOGIN)
   ========================================= */
.widget {
    background: #111;
    border: 1px solid #222;
    border-radius: 4px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.6);
}

.widget-header {
    background: #080808;
    color: #e74c3c;
    padding: 12px;
    text-align: center;
    font-family: 'Cinzel', serif;
    font-weight: bold;
    border-bottom: 1px solid #222;
    letter-spacing: 1px;
}

.widget-content {
    padding: 15px;
}

/* =========================================
   FORMULÁRIOS PADRÃO
   ========================================= */
input[type="text"], input[type="password"], input[type="number"] {
    width: 100%;
    padding: 10px;
    margin: 5px 0 15px;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    border-radius: 3px;
    transition: border 0.3s;
}

input[type="text"]:focus, input[type="password"]:focus, input[type="number"]:focus {
    border-color: #4a90e2;
    outline: none;
}

input[type="submit"] {
    width: 100%;
    background: #8e1c1c;
    color: #fff;
    border: none;
    padding: 12px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 3px;
    transition: 0.3s;
}

input[type="submit"]:hover {
    background: #b52222;
    box-shadow: 0 0 15px rgba(181, 34, 34, 0.6);
}

/* =========================================
   ESTILOS GERAIS DE TABELAS
   ========================================= */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: #0f0f0f;
    border: 1px solid #222;
}

th {
    background: #161616;
    color: #4a90e2;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #222;
    font-family: 'Cinzel', serif;
}

td {
    padding: 12px;
    border-bottom: 1px solid #1a1a1a;
}

tr:hover td {
    background: #141414;
}

/* =========================================
   PAINÉIS ESPECÍFICOS (MY ACCOUNT & ADMIN)
   ========================================= */
.account-panel {
    background: #0d0d0d;
    border: 1px solid #1a1a1a;
    border-radius: 6px;
    padding: 25px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}

.account-details {
    background: #141414;
    border-left: 4px solid #4a90e2;
    padding: 15px 20px;
    margin-bottom: 30px;
    border-radius: 0 4px 4px 0;
}

.account-details p {
    margin-bottom: 10px;
    font-size: 16px;
}

.account-status-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.account-status-list li {
    padding: 5px 0;
    font-size: 14px;
    color: #bbb;
}

.status-label {
    color: #ffeb3b;
    font-weight: bold;
    margin-right: 8px;
}

.badge {
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: bold;
}
.badge.verified { background: #1a421a; color: #4caf50; border: 1px solid #2e7d32; }
.badge.unverified { background: #421a1a; color: #f44336; border: 1px solid #c62828; }

.table-responsive {
    overflow-x: auto;
    margin-bottom: 30px;
}

.account-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #111;
    border: 1px solid #222;
    border-radius: 4px;
}

.account-table th {
    background: #0a0a0a;
    color: #ffeb3b;
    font-family: 'Cinzel', serif;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #222;
}

.account-table td {
    padding: 12px;
    border-bottom: 1px solid #1a1a1a;
    color: #ccc;
    font-size: 14px;
}

.account-table tr:last-child td { border-bottom: none; }
.account-table tr:hover td { background: #161616; }

.status-online { color: #4caf50 !important; font-weight: bold; }
.status-offline { color: #f44336 !important; }

/* Botões Customizados */
.character-actions-panel {
    background: #111;
    border: 1px dashed #333;
    padding: 20px;
    border-radius: 5px;
}

.character-actions-panel h3 {
    margin-top: 0;
    font-size: 18px;
    color: #4a90e2;
}

.form-group-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.custom-select, .form-control {
    flex: 1;
    min-width: 200px;
    background: #0a0a0a;
    color: #fff;
    border: 1px solid #333;
    padding: 12px;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
}

.custom-select:focus, .form-control:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.3);
    outline: none;
}

.extra-input { width: 100%; margin-bottom: 15px; }

.btn-submit {
    background: #4a90e2;
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-family: 'Cinzel', serif;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit:hover {
    background: #357abd;
    box-shadow: 0 0 15px rgba(74, 144, 226, 0.5);
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-weight: bold;
    border-left: 4px solid;
}
.alert.success { background: #0a1f0a; color: #4caf50; border-color: #4caf50; }
.alert.error   { background: #2b0c0c; color: #f44336; border-color: #f44336; }
.alert.warning { background: #26210f; color: #ffeb3b; border-color: #ffeb3b; }
.alert.info    { background: #0b1a26; color: #4a90e2; border-color: #4a90e2; }

/* =========================================
   RODAPÉ (FOOTER)
   ========================================= */
#main-footer {
    text-align: center;
    padding: 25px;
    background: #050505;
    border-top: 1px solid #1f1f1f;
    color: #555;
    font-size: 13px;
}

.sub-footer {
    margin-top: 5px;
    font-size: 11px;
    color: #333;
}