/* --- Centered Modal/Window (e.g., Login/Signup) --- */
.center-window {
  background: var(--window-bg);           /* Use theme background */
  border-radius: var(--border-radius);    /* Rounded corners */
  box-shadow: var(--box-shadow);          /* Subtle shadow */
  width: 340px;
  margin: 60px auto 0 auto;               /* Center horizontally */
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.center-window button {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  border: none;
  border-radius: var(--border-radius);
  background: var(--primary-color);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.center-window button.signup {
  background: #357ab8;                    /* Alternate color for signup */
}

.center-window button:hover {
  opacity: 0.92;
}

.center-window p {
  margin: 0;
  color: #555;
  font-size: 1rem;
}

/* --- Login Form Styles --- */
.login-container {
  background: var(--form-bg);             /* Customizable background */
  padding: 2rem 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  width: 320px;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin: 2rem auto 0 auto;
}

.login-container h2 {
  margin: 0 0 1rem 0;
  color: var(--primary-color);
  text-align: center;
  font-weight: 600;
}

.login-container input[type="text"],
.login-container input[type="password"] {
  padding: var(--input-padding);
  border: 1px solid #d1d9e6;
  border-radius: var(--border-radius);
  background: var(--input-bg);
  font-size: 1rem;
  outline: none;
  transition: border 0.2s;
}

.login-container input:focus {
  border-color: var(--primary-color);
}

.login-container button {
  padding: var(--input-padding);
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.login-container button:hover {
  background: #357ab8;
}

.login-container .footer {
  text-align: center;
  font-size: 0.9rem;
  color: #888;
}

/* --- Button Row (e.g., Login/Signup Switch) --- */
.button-row {
  display: flex;
  gap: 1.5rem;
  width: 100%;
  justify-content: center;
}
.button-row a {
  flex: 1;
  text-align: center;
  text-decoration: none;
}

/* --- Signup Form Styles --- */
.sign-up-container {
  background: var(--window-bg, #fff);
  border-radius: var(--border-radius, 12px);
  box-shadow: var(--box-shadow, 0 4px 24px rgba(0,0,0,0.10));
  width: 340px;
  margin: 60px auto 0 auto;
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.sign-up-container form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}
.sign-up-container label {
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.sign-up-container input[type="text"],
.sign-up-container input[type="email"],
.sign-up-container input[type="password"],
.sign-up-container input[type="date"] {
  padding: 0.75em;
  border: 1px solid #d1d9e6;
  border-radius: 8px;
  background: #f0f3f7;
  font-size: 1rem;
}
.sign-up-container button {
  margin-top: 1rem;
  width: 100%;
}
.sign-up-container p {
  text-align: center;
  margin-top: 1.5rem;
  color: #555;
}
.sign-up-container a {
  color: var(--primary-color);
}

/* --- Feed Post Form Styles --- */
.feed-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
  position: relative;
}

.feed-form textarea {
  resize: vertical;
  min-height: 70px;
  max-height: 220px;
  padding: 1.1rem 1.2rem;
  border-radius: 12px;
  border: 1.5px solid #eaf3fb;
  font-size: 1.08rem;
  background: #f9fafb;
  color: #222;
  box-shadow: 0 2px 8px rgba(74,144,226,0.07);
  transition: border 0.2s, box-shadow 0.2s;
  outline: none;
  margin-bottom: 0.2rem;
}

.feed-form textarea:focus {
  border-color: #4a90e2;
  background: #fff;
  box-shadow: 0 4px 16px rgba(74,144,226,0.13);
}

.feed-form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.2rem;
}

/* --- Image Upload Button for Feed --- */
.feed-image-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #eaf3fb;
  color: #4a90e2;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  border: none;
}

.feed-image-label:hover {
  background: #4a90e2;
  color: #fff;
}

/* --- Post Button for Feed --- */
.feed-post-btn {
  background: #4a90e2;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feed-post-btn:hover {
  background: #357abd;
}

/* --- Image Preview for Feed Post --- */
.feed-image-preview {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.5rem;
  background: #f4f6f8;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  max-width: 220px;
  position: relative;
}

.feed-image-preview img {
  max-width: 60px;
  max-height: 60px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #d1d9e6;
}

/* --- Remove Image Button --- */
#removeImageBtn {
  background: #e74c3c;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.5rem;
  transition: background 0.2s;
}

#removeImageBtn:hover {
  background: #c0392b;
}

/* --- Profile Edit Form Styles --- */
.profile-form label {
  font-weight: 600;
  color: #4a90e2;
  margin-top: 1rem;
  margin-bottom: 0.3rem;
  display: block;
}
.profile-form input[type="text"],
.profile-form input[type="email"],
.profile-form input[type="date"] {
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  border: 1px solid #d1d9e6;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.profile-form input[type="file"] {
  margin-bottom: 1rem;
}
.profile-form button {
  background: #4a90e2;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.9rem 2.2rem;
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 1.5rem;
  cursor: pointer;
  transition: background 0.2s;
}
.profile-form button:hover {
  background: #357abd;
}
#profileMsg {
  margin-top: 1rem;
  font-weight: 600;
  text-align: center;
}