/* Reset básico com variáveis CSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Variáveis para cores e tamanhos */
:root {
  --primary-dark: #1a3c5a;
  --primary-light: #2e6d97;
  --background-start: #f0f4f8; /* Suavizado para um tom mais claro e moderno */
  --background-end: #f7fafc;
  --text-dark: #2c3e50;
  --shadow-light: rgba(0, 0, 0, 0.05); /* Sombra mais sutil */
  --shadow-dark: rgba(0, 0, 0, 0.1);
  --white: #ffffff;
  --border-radius: 8px; /* Reduzido para um visual mais limpo */
  --transition: all 0.3s ease;
}

/* Estilização do corpo */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to bottom, var(--background-start), var(--background-end));
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Cabeçalho */
header {
  background: var(--primary-dark); /* Cor sólida para minimalismo */
  height: 120px; /* Reduzido para um visual mais compacto */
  padding: 1rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 10px var(--shadow-dark); /* Sombra mais suave */
}

header .logo-image {
  height: clamp(100px, 15vw, 150px); /* Tamanho ajustado para modernidade */
  object-fit: contain;
  filter: drop-shadow(0 1px 3px var(--shadow-dark)); /* Sombra mais sutil */
}

/* Main */
main {
  display: grid;
  place-items: center;
  padding: 1.5rem;
  min-height: calc(100vh - 120px);
}

/* Container de conteúdo (80% da tela) */
.content-container {
  width: 80%;
  height: 100%;
  display: flex;
  gap: 1.5rem; /* Aumentei o espaço para melhor separação */
}

/* Seção do calendário (tamanho exato do calendário, sem fundo) */
.calendar-section {
  width: 250px;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

/* Seção da agenda (ajustada proporcionalmente) */
.agenda-section {
  width: calc(100% - 280px - 1.5rem);
  height: 100%;
  padding: 0; /* Removido padding interno para consistência */
  background: transparent;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Título da agenda */
.agenda-section h2 {
  text-align: center;
  font-size: 1.5rem;
  color: var(--primary-dark);
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: none; /* Removido uppercase para minimalismo */
}

/* Lista de agendamentos */
.agenda-list {
  list-style: none;
  padding: 0;
  flex-grow: 1;
  overflow-y: auto;
}

.agenda-list li {
  background: var(--white);
  padding: 0.75rem 1rem; /* Alinhado com o .agenda-item */
  margin-bottom: 0.5rem;
  border-radius: var(--border-radius);
  border-left: 3px solid var(--primary-light);
  box-shadow: 0 1px 3px var(--shadow-light);
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Responsividade */
@media (max-width: 768px) {
  header {
    height: 100px;
    padding: 0.75rem 0;
  }

  header .logo-image {
    height: clamp(80px, 20vw, 120px);
  }

  main {
    padding: 1rem;
    min-height: calc(100vh - 100px);
  }

  .content-container {
    width: 90%;
    flex-direction: column;
    gap: 1rem;
  }

  .calendar-section {
    width: 100%;
  }

  .agenda-section {
    width: 100%;
    padding: 0;
  }

  .agenda-section h2 {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .agenda-list li {
    padding: 0.5rem 0.75rem;
    border-left-width: 2px;
  }

  .agenda-section h2 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
  }
}