/* dashboard.css - Arquitetura Visual Equipe Gaditas */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;500;700;900&display=swap');

:root { 
  --primary: #cc0000; 
  --bg: #0a0a0a; 
  --card: #161616; 
  --card-hover: #1c1c1c;
  --green: #00ff88; 
  --blue: #00a2ff; 
  --yellow: #ffc107; 
  --text: #ffffff;
  --text-muted: #888888;
  --border: #222;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Montserrat', sans-serif; }
body { background-color: var(--bg); color: var(--text); display: flex; min-height: 100vh; overflow-x: hidden; }

/* --- SIDEBAR FIXA PADRONIZADA --- */
.sidebar { 
  width: 260px; 
  background: #111; 
  border-right: 1px solid #333; 
  display: flex; 
  flex-direction: column; 
  position: fixed; 
  top: 0; 
  left: 0;
  height: 100vh; 
  z-index: 1000;
}

.sidebar-logo {
  text-align: center; padding: 30px 20px; text-transform: uppercase; font-size: 20px; font-weight: 900; letter-spacing: 1px;
}
.sidebar-logo span { color: var(--primary); }

.menu-label {
  color: #444;
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 20px 25px 5px 25px;
  user-select: none;
}

.menu { display: flex; flex-direction: column; }
.menu a { 
  display: flex; align-items: center; gap: 15px; padding: 12px 25px; 
  color: var(--text-muted); text-decoration: none; border-left: 4px solid transparent; 
  transition: 0.3s ease; font-size: 13px; font-weight: 500; text-transform: uppercase;
}
.menu a i { font-size: 18px; }

.menu a:hover, .menu a.ativa { 
  background: #1a1a1a; 
  border-left-color: var(--primary); 
  color: var(--text); 
}

.menu-bottom { margin-top: auto; padding-bottom: 20px; border-top: 1px solid #222; }

/* --- ÁREA DE CONTEÚDO --- */
.conteudo, .conteudo-principal { 
  flex: 1; 
  margin-left: 260px; 
  padding: 40px; 
  display: flex; 
  flex-direction: column; 
}

.header-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.header-top h1 { font-size: 24px; font-weight: 700; }
.header-top h1 span { color: var(--primary); font-weight: 900; }
.data-hoje { color: var(--text-muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }

/* --- GRIDS E CARDS --- */
.grid-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 30px; }
.stat-card { 
  background: var(--card); padding: 25px; border-radius: 12px; border: 1px solid var(--border);
  border-bottom: 4px solid #333; transition: var(--transition); 
}
.stat-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.5); }
.stat-card h3 { font-size: 11px; text-transform: uppercase; color: var(--text-muted); letter-spacing: 1px; font-weight: 700; }
.stat-card p { font-size: 28px; font-weight: 900; margin-top: 10px; }

/* --- PAINEL E ACESSO RÁPIDO (REFATORADO) --- */
.dashboard-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr; /* Gráfico maior que a lateral */
  gap: 25px;
}

.panel {
  background: var(--card);
  padding: 25px;
  border-radius: 15px;
  border: 1px solid var(--border);
}

.panel-title {
  font-size: 14px;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.grid-atalhos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.btn-atalho {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 10px;
  background: #0f0f0f;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  transition: var(--transition);
}

.btn-atalho:hover {
  border-color: var(--primary);
  background: var(--card-hover);
  transform: translateY(-5px);
}

.icon-box {
  width: 50px;
  height: 50px;
  background: rgba(204, 0, 0, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  transition: var(--transition);
}

.btn-atalho i { font-size: 24px; color: var(--primary); }
.btn-atalho span { color: var(--text-muted); font-size: 12px; font-weight: 600; text-transform: uppercase; }

.btn-atalho:hover .icon-box { background: var(--primary); }
.btn-atalho:hover i { color: #fff; }
.btn-atalho:hover span { color: #fff; }

/* --- RANKING REESTILIZADO --- */
.ranking-wrapper { margin-top: 15px; }

.ranking-item { 
  display: flex; 
  justify-content: space-between; 
  align-items: center;
  padding: 15px; 
  background: #1a1a1a;
  border-radius: 8px;
  margin-bottom: 10px; 
  font-size: 13px; 
  font-weight: 600;
  border-left: 4px solid var(--primary);
}

.ranking-item span { color: var(--text); font-weight: 700; }
.ranking-item strong { color: var(--green); font-weight: 900; }

/* Responsividade */
@media (max-width: 1100px) {
  .dashboard-main { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .sidebar { width: 70px; }
  .sidebar-logo, .menu-label, .menu a span { display: none; }
  .conteudo, .conteudo-principal { margin-left: 70px; }
}