@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500;600&display=swap');
:root {
  --primary: #0f2a5e; --primary-light: #1a3f8f; --accent: #00c2cb;
  --success: #10b981; --danger: #ef4444; --warning: #f59e0b;
  --bg: #f0f4f8; --card: #ffffff; --text: #1e293b; --muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 4px 20px rgba(15,42,94,0.08);
  --shadow-lg: 0 8px 40px rgba(15,42,94,0.15);
}
* { box-sizing: border-box; }
body { margin: 0; padding: 0; font-family: 'DM Sans', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; }
h1,h2,h3,h4 { font-family: 'Syne', sans-serif; }

/* TELA DE LOGIN */
#loginScreen { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary) 0%, #0a1f4e 50%, #0d2b68 100%); position: relative; overflow: hidden; }
#loginScreen::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 50%, rgba(0,194,203,0.15) 0%, transparent 60%), radial-gradient(ellipse at 80% 20%, rgba(255,107,53,0.1) 0%, transparent 50%); }
.login-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); backdrop-filter: blur(20px); padding: 48px 40px; border-radius: 20px; width: 100%; max-width: 400px; position: relative; z-index: 1; box-shadow: 0 20px 60px rgba(0,0,0,0.4); text-align: center; }
.login-icon-img { display: block; margin: 0 auto 12px; max-width: 80px; max-height: 80px; }
.login-logo h2 { color: #fff; font-size: 22px; margin-bottom: 32px; }
.login-field { margin-bottom: 16px; text-align: left; }
.login-field label { display: block; color: rgba(255,255,255,0.7); font-size: 12px; font-weight: 600; text-transform: uppercase; margin-bottom: 6px; }
.login-field input { width: 100%; padding: 12px 14px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 10px; color: #fff; font-size: 15px; outline: none; font-family: 'DM Sans', sans-serif; }
.login-field input:focus { border-color: var(--accent); }
.btn-login { width: 100%; padding: 14px; background: linear-gradient(135deg, var(--accent) 0%, #00a8b0 100%); color: var(--primary); border: none; border-radius: 10px; font-family: 'Syne', sans-serif; font-size: 15px; font-weight: 700; cursor: pointer; margin-top: 8px; transition: all 0.2s; }
.btn-login:hover { filter: brightness(1.1); transform: translateY(-1px); }
.login-error { background: rgba(239,68,68,0.2); color: #fca5a5; padding: 10px; border-radius: 8px; font-size: 13px; margin-bottom: 16px; border: 1px solid rgba(239,68,68,0.3); }

/* HEADER (DASHBOARD) */
.sge-header { background: var(--primary); color: #fff; padding: 6px 24px; height: 64px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 2px 20px rgba(15,42,94,0.3); position: sticky; top: 0; z-index: 100; gap: 12px; }
.sge-header-left, .sge-header-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.sge-header-center { display: flex; align-items: center; gap: 10px; flex: 1; justify-content: center; min-width: 0; }
.sge-header-title { font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 700; color: #fff; white-space: nowrap; }
.sge-user-name { font-weight: 600; font-size: 13px; color: #fff; }
.sge-badge { padding: 3px 10px; border-radius: 20px; font-size: 10px; font-weight: 700; text-transform: uppercase; background: rgba(0,194,203,0.2); color: var(--accent); border: 1px solid rgba(0,194,203,0.3); }
.btn-logout { padding: 7px 14px; border-radius: 8px; cursor: pointer; font-size: 12px; font-weight: 600; background: rgba(239,68,68,0.2); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; text-decoration: none; transition: all 0.2s; }
.btn-logout:hover { background: rgba(239,68,68,0.4); color: #fff; }

/* DASHBOARD CONTEÚDO */
.container { padding: 32px; width: 100%; max-width: 1200px; margin: 0 auto; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; margin-top: 32px; }
.section-header:first-child { margin-top: 0; }
.section-title { font-family: 'Syne', sans-serif; font-size: 18px; color: var(--primary); font-weight: 700; margin: 0; display: flex; align-items: center; gap: 8px; }
.section-title::before { content: ''; display: block; width: 4px; height: 20px; background: var(--accent); border-radius: 4px; }

/* GRID DE MÓDULOS */
.setores-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.setor-btn { padding: 24px 20px; background: var(--card); border: 2px solid var(--border); border-radius: 16px; cursor: pointer; font-family: 'Syne', sans-serif; font-weight: 600; font-size: 15px; color: var(--primary); text-align: center; box-shadow: var(--shadow); transition: all 0.2s; text-decoration: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.setor-btn:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--primary); }
.setor-btn .icon { font-size: 32px; line-height: 1; }
.setor-btn .subtitle { font-family: 'DM Sans', sans-serif; font-size: 12px; color: var(--muted); font-weight: 400; margin-top: -8px; }

@media (max-width: 700px) {
  .container { padding: 16px; }
  .sge-header-title { font-size: 14px; }
  .sge-user-name { display: none; }
  .setores-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}