body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #f4f7f6;
  margin: 0;
  color: #333;
}

/* Navbar */
nav {
  background: #2d3436;
  color: white;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between; /* Logo Left, Button Right */
}
.logo {
  font-weight: bold;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Main Container */
main {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 1rem;
}

/* Utilities */
.hidden {
  display: none !important;
}
.centered-view {
  text-align: center;
} /* Centers text and inline buttons */
.error {
  color: #d63031;
  font-size: 0.9rem;
  margin-top: 10px;
}

/* Cards */
.card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
  text-align: left;
}
.login-card {
  max-width: 350px;
  margin: 50px auto;
  text-align: center;
}

/* Dashboard Grid */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
  justify-content: center;
}

/* Dashboard Header */
.dashboard-header h1 {
  margin-bottom: 0.5rem;
}
.dashboard-header p {
  margin-top: 0;
  color: #636e72;
  margin-bottom: 1.5rem;
}

/* Guestbook Specific */
.gb-header {
  margin-bottom: 2rem;
}
.gb-actions button {
  margin: 0 5px;
  font-size: 0.9rem;
}
.stream {
  margin-top: 3rem;
}

/* Inputs & Buttons */
input,
textarea {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #dfe6e9;
  border-radius: 6px;
  box-sizing: border-box;
  font-family: inherit;
}
textarea {
  resize: vertical;
  min-height: 80px;
}

button {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.1s;
}
button:active {
  transform: scale(0.98);
}

.btn-primary {
  background: #6c5ce7;
  color: white;
}
.btn-primary:hover {
  background: #5f4dd0;
}

.btn-secondary {
  background: #dfe6e9;
  color: #2d3436;
}
.btn-danger {
  background: #ff7675;
  color: white;
  font-size: 0.8rem;
  margin-top: 10px;
}
.btn-text {
  background: transparent;
  color: #b2bec3;
  text-decoration: underline;
  margin-top: 10px;
  font-size: 0.9rem;
}

/* File Upload Label */
.file-upload {
  display: block;
  margin: 10px 0 5px;
  cursor: pointer;
  color: #6c5ce7;
  font-weight: 600;
}
input[type="file"] {
  display: none;
}

/* Messages */
.msg-item {
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}
.msg-meta {
  color: #636e72;
  font-size: 0.85rem;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}
.msg-item img {
  max-width: 100%;
  border-radius: 6px;
  margin-top: 15px;
  cursor: pointer;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.modal-content {
  background: white;
  padding: 40px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  position: relative;
}
.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: #b2bec3;
}

/* Navbar */
nav {
  background: #2d3436;
  color: white;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-weight: bold;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Navbar Button Specifics */
nav button {
  background: rgba(255, 255, 255, 0.2); /* Semi-transparent white */
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 8px 16px;
  font-size: 0.9rem;
  margin: 0;
  transition: all 0.2s;
}
nav button:hover {
  background: white;
  color: #2d3436;
}

/* ... (Keep the rest of your CSS the same) ... */

/* Tweak the auth toggle to look like a link */
.toggle-auth {
  margin-top: 15px;
  color: #636e72;
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: underline;
}
.toggle-auth:hover {
  color: #6c5ce7;
}
