/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Arial", sans-serif;
}

body {
  background-color: #e8f4ff; /* Light blue background */
  color: #1a202c; /* Darker text for better contrast */
  line-height: 1.6;
}

/* Navbar */
.navbar {
  background-color: #2c7be5; /* Bright blue navbar */
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-links {
  display: flex;
  justify-content: space-around;
  max-width: 800px;
  margin: 0 auto;
}

.nav-links a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background-color 0.3s, transform 0.2s;
}

.nav-links a:hover {
  background-color: #1e5db8; /* Slightly darker blue */
  transform: scale(1.1); /* Add hover scaling */
}

/* Content */
.content {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

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

.card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

h1,
h2 {
  color: #1a202c; /* Darker text for contrast */
  margin-bottom: 1rem;
}

/* Contact Form */
.contact-form {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1rem;
}

input,
textarea {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.5rem;
  border: 1px solid #cbd5e0;
  border-radius: 4px;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #2c7be5; /* Bright blue border focus */
  box-shadow: 0 0 4px rgba(44, 123, 229, 0.5);
}

button {
  background-color: #2c7be5;
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

button:hover {
  background-color: #1e5db8; /* Slightly darker blue */
  transform: scale(1.05); /* Add hover scaling */
}

/* Hidden Sections */
.hidden {
  display: none;
}

/* Blog Styles */
.blog-form {
  margin-bottom: 2rem;
}

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

.blog-post {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.blog-post:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.blog-post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.blog-post-meta {
  color: #4a5568;
  font-size: 0.9rem;
}

.blog-post-content {
  margin-top: 1rem;
  line-height: 1.8;
}

/* Auth Styles */
.auth-form {
  max-width: 400px;
  margin: 0 auto;
}

#authLinks {
  display: flex;
  gap: 1rem;
}

.auth-link {
  color: white;
  text-decoration: none;
}

/* Admin Panel Styles */
.admin-dashboard {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.admin-section {
  margin-bottom: 2rem;
}

.list-container {
  margin-top: 1rem;
}

.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.list-item:last-child {
  border-bottom: none;
}

.user-role {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  background-color: #dbeafe; /* Light blue for roles */
  font-size: 0.875rem;
}

.admin-role {
  background-color: #2c7be5;
  color: white;
}

.action-buttons {
  display: flex;
  gap: 0.5rem;
}

.delete-btn {
  background-color: #f56565;
}

.edit-btn {
  background-color: #4299e1;
}

/* Resource Styles */
.resource-item {
  padding: 1rem;
  background: #ebf8ff; /* Light blue background for resources */
  border-radius: 6px;
  border: 1px solid #bee3f8; /* Border for resource cards */
}

.resource-item h3 {
  color: #1a202c;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.resource-item ul,
.resource-item ol {
  list-style-position: inside;
  margin-bottom: 1rem;
}

.resource-item li {
  margin-bottom: 0.5rem;
  color: #2c5282; /* Dark blue for list items */
}

.expandable .expanded-content {
  display: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.expandable.expanded .expanded-content {
  display: block;
}

.expand-btn {
  width: 100%;
  padding: 0.5rem;
  background-color: #2c7be5;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  margin-top: 1rem;
}

.expand-btn:hover {
  background-color: #1e5db8;
  transform: scale(1.05);
}

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

.resource-category {
  margin-bottom: 2rem;
}
