:root {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1d1f1d;
  background-color: #f7f3ec;
  line-height: 1.5;
}

* {
  box-sizing: border-box;
}

a {
  color: inherit;
}

a.active {
  color: #267a4d;
}

body {
  margin: 0;
  background: #f7f3ec;
}

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

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 4vw;
  background: #ffffff;
  border-bottom: 1px solid #e1dccc;
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav {
  display: flex;
  gap: 1rem;
}

nav a {
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  color: #4b4d49;
  font-weight: 500;
}

nav a.active {
  background: #eaf7ef;
  color: #1f6a40;
}

.auth-box {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.auth-box button,
.auth-box a {
  border: none;
  background: #267a4d;
  color: white;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

.auth-box a {
  background: transparent;
  color: #267a4d;
}

.app-main {
  flex: 1;
  padding: 2rem 4vw 4rem;
}

.app-footer {
  padding: 1.5rem;
  text-align: center;
  background: #ffffff;
  border-top: 1px solid #e1dccc;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.hero {
  padding: 2rem;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 15px 30px -24px rgba(16, 62, 32, 0.6);
}

.btn {
  background: #267a4d;
  color: white;
  border: none;
  padding: 0.7rem 1.1rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}

.btn.ghost {
  background: transparent;
  border: 1px solid #cfc8b8;
  color: #3b3f3b;
}

.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 18px 30px -24px rgba(0, 0, 0, 0.4);
}

.card h2,
.card h3 {
  margin-top: 0;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

input,
select,
textarea {
  padding: 0.7rem;
  border-radius: 10px;
  border: 1px solid #d7d0c0;
  font-size: 1rem;
}

.litter-card {
  background: #fff;
  padding: 1.2rem;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 18px 30px -24px rgba(0, 0, 0, 0.4);
}

.litter-description {
  min-height: 4rem;
}

.dogs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.dog-card {
  padding: 0.8rem;
  border: 1px solid #ede7d8;
  border-radius: 12px;
  background: #fdfcf8;
}

.dog-photo {
  aspect-ratio: 4/3;
  border-radius: 10px;
  overflow: hidden;
  background: #e9e3d3;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
}

.dog-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment {
  padding: 1rem;
  border-bottom: 1px solid #f0ebe0;
}

.centered {
  display: flex;
  justify-content: center;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.comment-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #f0ebe0;
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.table {
  margin-top: 1rem;
}

.table-head,
.table-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  padding: 0.6rem 0;
}

.table-head {
  border-bottom: 1px solid #e5ddcb;
  font-weight: 600;
}

.error {
  color: #b22020;
  font-weight: 600;
}

@media (max-width: 768px) {
  .app-header {
    flex-direction: column;
    gap: 1rem;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .auth-box {
    flex-wrap: wrap;
    justify-content: center;
  }
}
