* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #f5f2ec;
  margin: 0;
  color: #2b2b2b;
}

.topbar {
  background: #7a3e1d;
  color: white;
  padding: 12px 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}

.topbar-logo {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
  margin-right: 4px;
  flex-shrink: 0;
  background: transparent;
}

#page-title {
  font-size: 26px;
  font-weight: bold;
  line-height: 1.2;
  color: #f3e9dd;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

h1 {
  color: #7a3e1d;
  font-size: 28px;
  margin: 0 0 20px;
}

h2 {
  color: #7a3e1d;
  font-size: 22px;
  margin: 0 0 16px;
}

label {
  display: block;
  margin-top: 18px;
  margin-bottom: 6px;
  font-weight: bold;
  color: #333;
}

input,
select,
textarea {
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
  background: white;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

button {
  width: 100%;
  padding: 16px;
  margin-top: 15px;
  border: none;
  border-radius: 10px;
  background: #2e5e3f;
  color: white;
  font-size: 17px;
  font-weight: bold;
  cursor: pointer;
}

button:hover {
  background: #234a31;
}

#form,
#log {
  margin-top: 20px;
}

#form {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.card {
  background: white;
  padding: 15px;
  margin-top: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.log-table-wrapper {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow-x: visible;
  margin-top: 20px;
}

.log-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.log-table th,
.log-table td {
  padding: 8px 6px;
  border: 1px solid #d8d2c7;
  text-align: left;
  vertical-align: top;
  font-size: 12px;
  word-break: break-word;
}

.log-table th {
  background: #7a3e1d;
  color: white;
}

.log-table tbody tr:nth-child(even) {
  background: #f8f5ef;
}

.log-table tbody tr:hover {
  background: #efe7da;
}

.log-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.log-actions button {
  width: auto;
  margin-top: 0;
  padding: 6px 8px;
  font-size: 12px;
  border-radius: 6px;
}

.empty-log {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-top: 20px;
}

@media (max-width: 700px) {
  .container {
    padding: 12px;
  }

  #page-title {
    font-size: 22px;
  }

  .topbar-logo {
    height: 40px;
  }

  .log-table th,
  .log-table td {
    padding: 6px 4px;
    font-size: 11px;
  }

  .log-actions {
    gap: 4px;
  }

  .log-actions button {
    padding: 5px 6px;
    font-size: 11px;
  }
}

/* Smaller inputs for table column filters */
.log-table thead input {
  padding: 6px 6px;
  font-size: 12px;
  height: auto;
}