diff --git a/src/dashboard.js b/src/dashboard.js index 752c4e4..1681def 100644 --- a/src/dashboard.js +++ b/src/dashboard.js @@ -40,25 +40,46 @@ function buildHTML(data, agente, isAgentDashboard = true, diasPeriodo = null, as } .header { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); - color: white; padding: 24px 40px; - display: flex; justify-content: space-between; align-items: center; + color: white; box-shadow: 0 2px 8px rgba(74,37,112,0.3); } - .header h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; } - .header .subtitle { font-size: 13px; opacity: 0.8; margin-top: 4px; font-weight: 400; } - .header-right { display: flex; align-items: center; gap: 16px; } + .header-inner { + max-width: 1600px; + margin: 0 auto; + padding: 16px 40px; + display: flex; + justify-content: space-between; + align-items: center; + } + .header-logo { + height: 36px; + width: auto; + background: white; + padding: 6px 12px; + border-radius: 8px; + } + .header h1 { font-size: 20px; font-weight: 800; letter-spacing: -0.5px; } + .header .subtitle { font-size: 12px; opacity: 0.8; margin-top: 2px; font-weight: 400; } + .header-right { display: flex; align-items: center; gap: 12px; } .header .badge { background: rgba(255,255,255,0.15); backdrop-filter: blur(10px); - padding: 8px 16px; border-radius: 24px; font-size: 12px; font-weight: 600; + padding: 6px 14px; border-radius: 20px; font-size: 11px; font-weight: 600; border: 1px solid rgba(255,255,255,0.2); } .header .live-dot { display: inline-block; width: 8px; height: 8px; background: #4ADE80; border-radius: 50%; margin-right: 6px; animation: pulse 2s infinite; } + .header .app-name-badge { + background: rgba(255,255,255,0.2); + padding: 6px 14px; + border-radius: 6px; + font-size: 14px; + font-weight: 800; + } .btn-logout { background: rgba(255,255,255,0.15); color: white; border: 1px solid rgba(255,255,255,0.3); - padding: 8px 16px; border-radius: 8px; font-size: 12px; font-weight: 600; + padding: 8px 16px; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; text-decoration: none; font-family: inherit; transition: all 0.15s; } .btn-logout:hover { background: rgba(255,255,255,0.25); } @@ -410,7 +431,7 @@ function buildHTML(data, agente, isAgentDashboard = true, diasPeriodo = null, as .chart-card { min-height: 320px; } .container { padding: 20px; } .filters { padding: 12px 20px; flex-wrap: wrap; } - .header { padding: 20px; flex-direction: column; gap: 12px; } + .header-inner { padding: 16px 20px; flex-direction: column; gap: 12px; } } @media (max-width: 600px) { .kpi-grid { grid-template-columns: 1fr; } @@ -428,29 +449,31 @@ ${isEmulating ? ` ` : ''}
-
+