:root {
  --bg: #ffffff; 
  --panel: #f6f8fa; 
  --accent: #0969da; 
  --accent-hover: #1f6feb;
  --danger: #d1242f; 
  --danger-hover: #a40e26;
  --warn: #b78103;
  --warn-hover: #9a6700;
  --ok: #1a7f37; 
  --muted: #57606a; 
  --text: #24292f;
  --border: #d0d7de;
  
  --radius: 12px;
  --font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 32px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-family);
  line-height: 1.5;
}

.container {
  max-width: 980px;
  margin: 0 auto;
}

/* Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.header-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-image {
  height: 74px;
  width: auto;
  display: block;
}

.page-title {
  margin: 0;
  font-size: 1.8rem;
  color: var(--text);
}

.user-email {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.btn-logout {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: transparent;
  color: var(--danger);
  border: 1px solid var(--danger);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-logout:hover {
  background: var(--danger);
  color: white;
}

.btn-logout svg {
  flex-shrink: 0;
}

/* Painéis */
.main-panel, .panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}

/* Tipografia */
.section-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.placeholder-text {
  color: var(--muted);
  font-style: italic;
}

/* Responsividade Global */
@media (max-width: 768px) {
  body {
    padding: 16px;
  }
  
  .app-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .header-right {
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid var(--border);
  }
  
  .page-title {
    font-size: 1.5rem;
  }
  
  .logo-image {
    height: 60px;
  }
  
  .main-panel, .panel {
    padding: 12px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 12px;
  }
  
  .header-right {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn-logout {
    justify-content: center;
  }
  
  .page-title {
    font-size: 1.3rem;
  }
  
  .logo-image {
    height: 50px;
  }
  
  .main-panel, .panel {
    padding: 10px;
  }
}
