:root {
  --primary-color: #1351B4;
  --secondary-color: #f8f9fa;
  --text-color: #333;
  --border-color: #ddd;
  --success-color: #d4edda;
  --success-text: #155724;
  --info-color: #e7f1ff;
  --info-text: #004085;
  --max-content-width: 40cm;
}

/* Estilos básicos */
body {
  font-family: 'Raleway', Arial, sans-serif;
  margin: 0;
  padding: 0;
  color: var(--text-color);
}

.template-base {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0 15px;
  width: 100%;
  box-sizing: border-box;
}

/* Header */
.br-header {
  background-color: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 10px 0;
}

.header-top {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-logo-img {
  height: 80px;
}

.header-text {
  text-align: center;
  flex-grow: 1;
}

.header-text h1 {
  color: var(--primary-color);
  margin: 0 0 5px 0;
  font-size: 1.8rem;
}

.header-text h2 {
  color: var(--primary-color);
  margin: 0 0 10px 0;
  font-size: 1.4rem;
}

.header-text p {
  margin: 0;
  color: #666;
  line-height: 1.4;
}

/* Botão do menu */
.br-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.br-button:hover {
  background-color: #0c3d8a;
}

/* Menu lateral */
.br-menu {
  position: fixed;
  top: 0;
  left: -300px;
  width: 280px;
  height: 100vh;
  background: white;
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
  transition: left 0.3s ease;
  z-index: 1000;
  overflow-y: auto;
}

.menu-content {
  padding: 15px;
}

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.menu-header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.menu-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #666;
}

.menu-section {
  margin-bottom: 20px;
}

.menu-section h3 {
  padding: 10px 15px;
  margin: 0;
  font-size: 1rem;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  color: var(--text-color);
  text-decoration: none;
  transition: background-color 0.2s;
  gap: 10px;
}

.menu-item:hover {
  background-color: #f5f5f5;
}

/* Overlay do menu */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  display: none;
}

/* Conteúdo principal */
.page-container {
  display: flex;
  flex: 1;
  position: relative;
}

.main-content {
  margin-top: 20px;
  padding: 20px;
  width: 100%;
  box-sizing: border-box;
  max-width: var(--max-content-width);
  margin-left: auto;
  margin-right: auto;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.welcome-box, .notices-box {
  min-width: 0; /* Prevent grid blowout */
}

/* Alert boxes */
.br-alert {
  padding: 15px;
  border-radius: 4px;
  display: flex;
  gap: 10px;
  height: 100%;
}

.br-alert.info {
  background-color: var(--info-color);
  color: var(--info-text);
}

.br-alert.success {
  background-color: var(--success-color);
  color: var(--success-text);
}

.content-section {
  background-color: #fff;
  padding: 20px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.last-update {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 15px;
  text-align: right;
}

/* Footer */
.br-footer {
  background-color: var(--secondary-color);
  padding: 20px 0;
  margin-top: auto;
  text-align: center;
  font-size: 0.9rem;
}

/* Estado ativo do menu */
.menu-active .br-menu {
  left: 0;
}

.menu-active .menu-overlay {
  display: block;
}

/* Responsividade */
@media (max-width: 768px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
  
  .header-top {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  .header-logo {
    flex-direction: column;
  }
  
  .header-logo-img {
    height: 60px;
  }
  
  .br-menu {
    width: -10%;
  }
}