/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #f0f4f8, #e3f2fd);
  min-height: 100vh;
  padding-top: 80px;
  padding-bottom: 40px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

header {
  background-color: #070707;
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.logo img {
  height: 40px;
  object-fit: contain;
}

nav {
  display: flex;
  gap: 20px;
}
nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}
nav a:hover {
  background-color: rgba(255,255,255,0.1);
}
nav a.active {
  border-bottom: 2px solid #e0f7fa;
}

.container {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  width: 100%;
}

h1, h2 {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 20px;
}

/* Estilo para grupos de input */
.input-group {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
}
.input-group label {
  margin-bottom: 4px;
  font-size: 14px;
  color: #333;
}
.input-group input,
.input-group select {
  padding: 10px 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  transition: border-color 0.3s ease, box-shadow 0.2s ease;
}
.input-group input:focus,
.input-group select:focus {
  border-color: #3498db;
  box-shadow: 0 0 5px rgba(52,152,219,0.4);
}

/* Botão Adicionar */
button.adicionar {
  margin-top: 15px;
  padding: 12px;
  font-size: 16px;
  border-radius: 6px;
  background-color: #28a745;
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s ease;
  width: 100%;
}
button.adicionar:hover {
  background-color: #218838;
}
button.adicionar:active {
  transform: translateY(1px);
}

/* Lista de compromissos */
ul#listaCompromissos {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}
ul#listaCompromissos li {
  background-color: #f9f9f9;
  border: 1px solid #dfe6e9;
  border-radius: 8px;
  padding: 12px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
/* Exibição conforme solicitado: data-hora, título, cidade, botões em linhas separadas */
ul#listaCompromissos li .data-hora {
  font-weight: bold;
  color: #34495e;
}
ul#listaCompromissos li .titulo {
  color: #2c3e50;
  font-size: 16px;
}
ul#listaCompromissos li .cidade {
  color: #555;
  font-size: 14px;
}
ul#listaCompromissos li button {
  padding: 16px 12px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease, transform 0.1s ease;
  width: 100%;
  margin: 0;
}
ul#listaCompromissos li button:active {
  transform: translateY(1px);
}
li button.editar, li button.excluir {
  border-radius: 8px;
}
li button.editar {
  background-color: #f39c12;
  color: white;
}
li button.editar:hover {
  background-color: #d35400;
}
li button.excluir {
  background-color: #dc3545;
  color: white;
}
li button.excluir:hover {
  background-color: #c82333;
}

/* Botão hamburger */
.menu-btn {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  display: block;
}

/* Menu oculto ou visível */
.menu {
  position: absolute;
  top: 60px;
  right: 20px;
  background-color: #070707;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.menu.hidden {
  display: none;
}
.menu a {
  color: white;
  text-decoration: none;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: background-color 0.3s;
}
.menu a:last-child {
  border-bottom: none;
}
.menu a:hover,
.menu a.active {
  background-color: rgba(255,255,255,0.1);
}
