/*
 * Basic styling for the Zendra dating app
 *
 * This CSS provides a dark, neon‑inspired theme reminiscent of popular
 * dating apps. It aims to keep the UI elegant and easy to read. The
 * styles here are intentionally simple; feel free to extend them to
 * match your brand. To apply these styles, include
 * <link rel="stylesheet" href="assets/css/style.css"> in your HTML.
 */

body {
  background-color: #0d0d0d;
  color: #f5f5f5;
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

a {
  color: #ff007f;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

header {
  background-color: #121212;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
header h1 {
  font-size: 1.5rem;
  margin: 0;
  color: #ff007f;
}
nav a {
  margin-left: 1rem;
  color: #00bfff;
}

main {
  padding: 2rem;
}

/* Profile browsing */
.profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}
.profile-card {
  background-color: #1e1e1e;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
  cursor: pointer;
}
.profile-card:hover {
  transform: translateY(-5px);
}
.profile-card img.avatar {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}
.profile-card h3 {
  margin: 0.5rem 0;
  font-size: 1.2rem;
  color: #ff007f;
}
.profile-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Admin dashboard */
.dashboard-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.settings-section,
.reports-section,
.users-section {
  background-color: #1e1e1e;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}
.settings-section h2,
.reports-section h2,
.users-section h2 {
  margin-top: 0;
  color: #ff007f;
}
.settings-section label {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}
.settings-section input[type='checkbox'] {
  margin-right: 0.5rem;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}
th,
td {
  border-bottom: 1px solid #333;
  padding: 0.5rem;
  text-align: left;
  font-size: 0.9rem;
}
th {
  color: #ff007f;
}
.btn-primary,
.btn-secondary,
.btn-danger,
.btn-warning {
  padding: 0.4rem 0.8rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 0.5rem;
  font-size: 0.8rem;
}
.btn-primary {
  background-color: #00bfff;
  color: #fff;
}
.btn-secondary {
  background-color: #555;
  color: #fff;
}
.btn-danger {
  background-color: #ff007f;
  color: #fff;
}
.btn-warning {
  background-color: #ff8800;
  color: #fff;
}

/* User search */
form#user-search-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
#user-search-query {
  padding: 0.4rem;
  border-radius: 4px;
  border: 1px solid #555;
  background-color: #0d0d0d;
  color: #fff;
}
#user-details .user-card {
  background-color: #1e1e1e;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}
.actions button {
  margin-top: 0.5rem;
}

/* Simple forms */
form.auth-form {
  max-width: 400px;
  margin: 2rem auto;
  background-color: #1e1e1e;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}
form.auth-form h2 {
  margin-top: 0;
  color: #ff007f;
}
form.auth-form label {
  display: block;
  margin-bottom: 0.5rem;
}
form.auth-form input {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border-radius: 4px;
  border: 1px solid #555;
  background-color: #0d0d0d;
  color: #fff;
}
form.auth-form button {
  width: 100%;
  padding: 0.6rem;
  border: none;
  border-radius: 4px;
  background-color: #00bfff;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}
form.auth-form button:hover {
  background-color: #0099cc;
}

/* Chat page styles */
.chat-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 1rem;
}

#chat-header {
  margin-bottom: 1rem;
}

.messages {
  height: 60vh;
  overflow-y: auto;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.5rem;
  background-color: #1a1a1a;
}

.message {
  margin-bottom: 0.5rem;
  display: block;
}

.message.sent {
  text-align: right;
}

.message.received {
  text-align: left;
}

.message .author {
  font-weight: bold;
  margin-right: 0.3rem;
}

.message .time {
  color: #888;
  font-size: 0.8em;
  margin-left: 0.3rem;
}

.message-form {
  display: flex;
  gap: 0.5rem;
}

/* Status messages for profile page */
.status-message {
  margin-top: 0.5rem;
}

.status-message.error {
  color: #e53935;
}

.status-message.success {
  color: #43a047;
}
