@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* RESET */
* { box-sizing: border-box; outline: none; }

body {
    background-image: url('https://i.imgur.com/NGfZwSg.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    font-family: 'Roboto', sans-serif;
    margin: 0;
    /* Alterado para permitir rolagem e centralização melhor */
    min-height: 100vh;
    padding: 40px 0; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #0b0b0b;
}

/* --- LOGO (Ajuste de Tamanho e Centralização) --- */
.main-logo {
    text-align: center;
    margin-bottom: 25px;
    width: 100%;
}
.main-logo img {
    max-width: 180px; /* Tamanho reduzido conforme solicitado */
    height: auto;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(106, 27, 154, 0.6));
}

/* --- LOGIN (Estilo GameAR) --- */
.login-container {
    width: 900px; height: 550px; background: #fff; border-radius: 20px;
    display: flex; box-shadow: 0 0 50px rgba(106, 27, 154, 0.5); overflow: hidden; position: relative;
}
.login-art {
    flex: 1; background: url('https://i.imgur.com/0D347b6.png') no-repeat center center;
    background-size: cover; position: relative;
}
.login-art::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(94, 11, 117, 0.6), rgba(255,255,255,0));
}
.login-form-area {
    width: 450px; padding: 40px; display: flex; flex-direction: column;
    justify-content: center; align-items: center; text-align: center;
}
.login-title { font-size: 24px; color: #333; margin-bottom: 10px; font-weight: 300; }
.login-subtitle { font-size: 12px; color: #666; margin-bottom: 30px; }
.login-input-group { width: 100%; margin-bottom: 15px; text-align: left; }
.login-label {
    background: #333; color: #fff; padding: 5px 10px; font-size: 11px; font-weight: bold;
    border-radius: 4px 4px 0 0; display: inline-block;
}
.login-input {
    width: 100%; padding: 12px; border: 2px solid #333; background: #fff;
    border-radius: 0 4px 4px 4px; font-weight: bold; color: #333;
}

/* --- BOTÕES --- */
.btn-purple {
    width: 100%; padding: 12px; background: #6a1b9a; color: #fff; border: none;
    border-radius: 4px; font-weight: bold; text-transform: uppercase; cursor: pointer;
    transition: 0.3s; margin-top: 10px;
}
.btn-purple:hover { background: #8e24aa; }
.btn-purple:disabled { background: #ccc; cursor: not-allowed; }

.btn-gray {
    width: 100%; padding: 10px; background: #ddd; color: #555; border: none;
    border-radius: 4px; font-weight: bold; font-size: 11px; cursor: pointer; margin-top: 10px;
}

/* --- PAINEL GERAL --- */
.panel-wrapper {
    width: 1100px; min-height: 700px; max-height: 90vh; background: #fff;
    border-radius: 15px; display: flex; padding: 20px; gap: 20px;
    box-shadow: 0 0 50px rgba(0,0,0,0.5); position: relative;
}

/* Sidebar */
.panel-sidebar { width: 260px; display: flex; flex-direction: column; gap: 15px; }
.user-card { background: #f4f4f4; border: 1px solid #ddd; border-radius: 8px; padding: 15px; text-align: center; }
.user-header {
    background: #ddd; padding: 5px; border-radius: 4px; font-weight: bold; color: #333;
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px;
}
.balance-box { background: #fff; border: 1px solid #ddd; padding: 10px; border-radius: 4px; margin-bottom: 10px; }
.balance-text { color: #27ae60; font-weight: bold; font-size: 14px; }
.menu-list { list-style: none; padding: 0; margin: 0; }
.menu-item {
    padding: 12px 15px; background: #f4f4f4; border-bottom: 1px solid #ddd;
    color: #333; font-weight: bold; cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 10px;
}
.menu-item:first-child { border-radius: 8px 8px 0 0; }
.menu-item:last-child { border-radius: 0 0 8px 8px; border-bottom: none; }
.menu-item:hover { background: #e0e0e0; }
.menu-item.active { background: #5e0b75; color: #fff; border-left: 5px solid #8e24aa; }

/* Conteúdo */
.panel-content { flex: 1; display: flex; flex-direction: column; gap: 20px; overflow-y: auto; padding-right: 5px; }
.content-header {
    background: #f9f9f9; padding: 10px 20px; border-radius: 8px; font-weight: bold; color: #5e0b75;
    border-left: 4px solid #5e0b75; display: flex; align-items: center; gap: 10px;
}

/* Grids e Box de Info */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.info-box { border: 1px solid #eee; border-radius: 8px; overflow: hidden; background: #fff; }
.box-title {
    background: #5e0b75; color: #fff; padding: 10px 15px; font-weight: bold; font-size: 13px;
    display: flex; align-items: center; gap: 8px;
}
.data-row {
    display: flex; justify-content: space-between; padding: 10px 15px; background: #f9f9f9;
    border-bottom: 1px solid #eee; font-size: 12px; color: #333;
}
.data-row:nth-child(even) { background: #fff; }

/* --- ESTILOS DO SHOP --- */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 15px; }
.shop-card {
    background: #f9f9f9; border: 1px solid #ddd; border-radius: 8px; padding: 15px;
    text-align: center; transition: 0.3s; position: relative;
}
.shop-card:hover { border-color: #6a1b9a; transform: translateY(-5px); background: #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.item-icon {
    width: 60px; height: 60px; margin: 0 auto 10px; border-radius: 50%; background: #eee;
    display: flex; align-items: center; justify-content: center; font-size: 24px; color: #6a1b9a; overflow: hidden;
}
.item-name { font-weight: bold; font-size: 13px; color: #333; margin-bottom: 5px; }
.item-desc { font-size: 11px; color: #666; height: 30px; overflow: hidden; margin-bottom: 10px; }
.item-price { color: #27ae60; font-weight: bold; margin-bottom: 10px; }

/* --- ADMIN FORM --- */
.admin-box { background: #f4f4f4; border: 1px dashed #6a1b9a; padding: 15px; border-radius: 8px; margin-bottom: 20px; }
.admin-input { width: 48%; padding: 8px; margin: 5px 0; border: 1px solid #ccc; border-radius: 4px; }

/* --- CHARACTERS --- */
.char-list { display: flex; gap: 10px; padding: 15px; background: #eee; border-radius: 8px; margin-bottom: 15px; overflow-x: auto; }
.char-thumb { width: 50px; height: 50px; background: #ccc; border-radius: 4px; overflow: hidden; cursor: pointer; border: 2px solid transparent; flex-shrink: 0; }
.char-thumb.active { border-color: #6a1b9a; box-shadow: 0 0 5px #6a1b9a; }
.char-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* UTILS */
.hidden { display: none; }
.msg-alert { padding: 10px; margin-bottom: 10px; border-radius: 4px; text-align: center; width: 100%; font-size: 12px; }
.error { background: #ffebee; color: #c62828; }
.success { background: #e8f5e9; color: #2e7d32; }
.flags { position: absolute; top: -35px; right: 0; background: #fff; padding: 5px 10px; border-radius: 4px; }