/* dashboard.css - estilos específicos para o dashboard escuro */
:root{
  --bg:#000000;
  --panel:#191C24;
  --card:#191C24;
  --muted:#9aa0a6;
  --accent:#e53935;
}
body{background:var(--bg);color:#e6e6e6; font-family: Tahoma, Arial, sans-serif;}

/* fixed logout link at top-right */
.logout-fixed{
  position:fixed;
  top:12px;
  right:16px;
  color:var(--accent);
  text-decoration:none;
  font-weight:600;
  z-index:1200;
  background:transparent;
}

.logout-fixed:hover{opacity:0.95}

/* top navigation removed - styles cleaned */

/* sidebar */
.sidebar-custom{position:fixed;left:0;top:0;bottom:0;width:300px;background:var(--panel);padding:20px}
.sidebar-custom a{color:#bfc6c9;display:block;padding:10px 12px;border-radius:0;margin-bottom:0;text-decoration:none;border-bottom:1px solid rgba(255,255,255,0.03)}
.sidebar-custom a:last-child{border-bottom:none}
.sidebar-custom a:hover{background:rgba(255,255,255,0.02);color:#fff}
.sidebar-custom a.active{background:#15181b;color:var(--accent);box-shadow:inset 4px 0 0 var(--accent)}

/* main area */
.main-wrap{margin-left:320px;padding:28px}
.dark-card{background:var(--panel);border-radius:10px;padding:20px;color:#e6e6e6;box-shadow:0 6px 18px rgba(0,0,0,0.6)}
.stat-card{flex:1;min-width:160px}
.stat-card .value{font-size:1.4rem;font-weight:800}
.stat-card .label{color:var(--muted);font-size:12px}

.cards-row{display:flex;gap:18px;margin-bottom:20px}
.top-stats .card{background:var(--panel);padding:18px;border-radius:8px;flex:1}

.table thead th{color:#c7c7c7}
.table td,.table th{border-top:0}
.badge-accent{background:var(--accent);color:#fff}

/* top cards style (GameDollars/GamePoints/Moedas) */
.top-stats{display:flex;gap:18px;margin-bottom:12px}
.top-card{flex:1;background:var(--card);border-radius:10px;padding:14px;box-shadow:0 6px 20px rgba(0,0,0,0.6);}
.top-card-body{gap:12px}
.top-card-icon{width:56px;height:56px;border-radius:8px;background:rgba(229,57,53,0.12);display:flex;align-items:center;justify-content:center;font-size:22px;margin-right:12px}
.top-card-icon img{width:36px;height:36px;display:block}
.top-card-icon i{font-size:22px;line-height:1;color:#e53935;display:flex;align-items:center;justify-content:center;width:36px;height:36px}
.top-card .label{color:#9aa0a6;font-size:12px;margin-bottom:6px}
.top-card .value{font-size:1.45rem;font-weight:800}

/* compact character cards inside .cards-row */
.cards-row{gap:12px;margin-top:12px}
.cards-row .top-card{padding:8px;border-radius:8px}
.cards-row .top-card-body{gap:8px}
.cards-row .top-card-icon{width:44px;height:44px;margin-right:10px}
.cards-row .top-card-icon img,.cards-row .top-card-icon i{width:24px;height:24px}
.cards-row .top-card .label{font-size:12px}
.cards-row .top-card .value{font-size:1rem;font-weight:700}

/* card header */
.card-header{display:flex;justify-content:space-between;align-items:center;padding-bottom:8px;margin-bottom:12px;border-bottom:1px solid rgba(255,255,255,0.03)}
.card-header strong{font-size:1rem}
.card-header a{color:var(--accent);font-size:0.95rem}

/* Ranks style */
.rank-container{display:flex;gap:20px;margin-top:18px}
.rank-column{flex:1;background:var(--card);padding:12px;border-radius:10px}
.rank-list{display:flex;flex-direction:column;gap:8px}
.rank-item{display:flex;align-items:center;gap:12px;padding:8px;border-radius:8px;background:rgba(255,255,255,0.02)}
.rank-img img{width:48px;height:48px;object-fit:contain;border-radius:6px}
.rank-text .label{font-weight:700}
.rank-text .small{font-size:12px;color:var(--muted)}
.rank-value{margin-left:auto;font-weight:800}

.rep-icon{width:50px;height:50px;object-fit:contain;vertical-align:middle;margin-right:8px}

@media (max-width:991px){
  .rank-container{flex-direction:column}
}

/* Colorização por tipo */
.rank-column.villains .label,
.rank-column.villains .rank-value { color: #ef5350; }
.rank-column.heroes .label,
.rank-column.heroes .rank-value { color: #66bb6a; }

/* responsividade simples */
@media (max-width:991px){
  .sidebar-custom{position:relative;top:0;width:100%;height:auto;padding:12px}
  .main-wrap{margin-left:0;padding:12px}
  .top-nav .search-input{width:180px}
}

/* ===== styles moved from dashboard.php ===== */
.sidebar-custom a{color:#bfc6c9;display:block;padding:10px 12px;border-radius:8px}
:root{--bg:#000000;--card:#191C24;--muted:#9aa0a6;--accent:#e53935}
body{background:var(--bg);color:#e6e6e6}
.sidebar-custom{position:fixed;left:0;top:0;bottom:0;width:300px;background:var(--panel);padding:24px}
.sidebar-custom a.active{background:var(--card);color:var(--accent)}
.main-wrap{margin-left:320px;padding:24px}
.dark-card{background:var(--card);border-radius:8px;padding:18px;color:#e6e6e6}
.stat-card{flex:1;min-width:140px}
.stat-card .value{font-size:1.25rem;font-weight:700}
.topbar{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:18px}
/* top-card-icon default styling (icons) */
.top-card-icon{display:inline-block}
/* Layout usando grid (row/col) para dividir imagem (esq) e textos (dir) */
.top-card-body .row{align-items:flex-start}
.top-card-icon-hero{width:100px;height:150px;overflow:hidden;flex-shrink:0}
.top-card-icon-hero img{width:100%;height:100%;object-fit:contain;display:block}
/* garantir textos alinhados ao topo da coluna */
.char-info{text-align:left;margin:0;padding:0}
.char-actions{text-align:right;margin:0;padding:0}
/* responsivo: empilha em telas pequenas */
@media (max-width:576px){
  .top-card-icon-hero{width:80px;height:120px}
  .top-card-body .row{flex-direction:column}
  .char-actions{text-align:left;margin-top:8px}
}

/* Characters grid */
.chars-grid{display:flex;flex-wrap:wrap;gap:14px;margin-top:10px}
.char-card{background:linear-gradient(180deg, #15181b, #0f1316);border-radius:12px;padding:12px;width:456px;height:160px;display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box}
.char-card .top-card-icon-hero{width:auto;height:calc(100% - 24px);max-width:70px;margin-right:16px;border-radius:8px;background:rgba(255,255,255,0.02);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.char-card .top-card-icon-hero img{height:50%;width:auto;display:block;object-fit:contain;max-height:100%}
.char-card .label{font-weight:800;font-size:15px}
.char-card .char-info div{font-size:13px}
.char-card:hover{box-shadow:0 12px 32px rgba(0,0,0,0.6);transform:translateY(-3px);transition:all .16s ease}
.card-header{display:flex;justify-content:space-between;align-items:center;padding-bottom:8px;margin-bottom:12px;border-bottom:1px solid rgba(255,255,255,0.03)}
.card-header a{color:var(--accent);text-decoration:none}

/* footer ajustado para tema escuro */
.site-footer{background:transparent}
.site-footer .small{color:var(--muted)}

/* Inventory cards */
.inventory-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:16px}
.inv-card{background:linear-gradient(180deg,#15181b,#0f1316);border-radius:12px;padding:12px;display:flex;flex-direction:column;align-items:center;box-shadow:0 6px 18px rgba(0,0,0,0.6);box-sizing:border-box;min-height:240px;max-height:340px;overflow:hidden}
.inv-img-wrap{position:relative;width:120px;height:100px;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,0.02);border-radius:8px;overflow:hidden;flex:0 0 auto}
.inv-img{max-width:100%;max-height:100%;object-fit:contain;display:block}
.inv-dds{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:#222;color:#fff}
.inv-qty{position:absolute;top:8px;right:8px;background:var(--accent);color:#fff;padding:4px 8px;border-radius:12px;font-weight:800}
.inv-title{margin-top:8px;color:#fff;font-weight:700;font-size:13px;text-align:center;min-height:40px;line-height:1.1;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;padding:0 6px}

/* sell button on inventory cards */
.inv-sell-btn{margin-top:10px;width:80%;padding:8px 12px;border-radius:8px;border:0;background:linear-gradient(90deg,var(--accent),#b71c1c);color:#fff;font-weight:700;cursor:pointer;box-shadow:0 6px 14px rgba(229,57,53,0.18)}
.item-name-red{color:#e74c3c}
.inv-sell-btn:hover{background:linear-gradient(90deg,#ffb347,#ffcc33);color:#000;filter:none;transform:translateY(-1px)}
.inv-sell-btn:active{transform:translateY(0);filter:brightness(0.95)}

/* info link/button on inventory cards */
.inv-card .info-link{background:transparent;border:0;color:#f1c40f;padding:0;margin-top:6px;cursor:pointer;font-size:0.95rem}
.inv-card .info-link:hover{text-decoration:underline}

/* modal close button styled as yellow text */
.modal-close{background:transparent;border:0;color:#f1c40f;padding:6px 8px;cursor:pointer}
.modal-close:hover{text-decoration:underline}

/* BlackMarket price colors */
.price-gc{color:#d4af37;font-weight:700} /* dourado */
.price-gd{color:#87cefa;font-weight:700} /* azul claro */
.unit-price{font-size:13px}
.total-price{font-size:13px;margin-top:4px}
.inv-card .btn{margin-top:8px}
/* garantir que a área de preço/botão fique colada no final do card para alinhar os botões */
.inv-card > div:last-child{margin-top:auto;width:100%;display:flex;flex-direction:column;align-items:center}
.inv-card .bm-buy-btn, .inv-card .btn{width:80%;max-width:160px}

/* Sales notification modal */
.sales-notif-modal{position:fixed;top:12%;left:50%;transform:translateX(-50%);z-index:2400}
.sales-notif-modal .notif-card{background:var(--card);padding:12px;border-radius:8px;box-shadow:0 12px 36px rgba(0,0,0,0.6);color:#e6e6e6;max-width:520px}
.sales-notif-modal .notif-card ul{margin:8px 0 12px 18px}
.sales-notif-modal .notif-card li{margin-bottom:6px}
