/* ========== Global Styles ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Poppins', sans-serif;
  background-color: #f4f4f4;
  transition: background-color 0.3s ease;
  margin-left: 200px;
}
a {
  text-decoration: none;
}

/* ========== Preloader ========== */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white url('assets/icons/loader.gif') center center no-repeat;
  z-index: 9999;
}

/* ========== Login Section ========== */
#login-section {
  text-align: center;
  margin-top: 100px;
}
#login-section input {
  padding: 10px;
  margin: 5px;
  width: 220px;
  border: 1px solid #ccc;
  border-radius: 6px;
}
#login-section button {
  padding: 10px 20px;
  background-color: #1f2a38;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
#login-section button:hover {
  background-color: #2c3e50;
}

/* ========== Notification Bar ========== */
#notification-bar {
  background-color: #ffeb3b;
  color: #333;
  padding: 10px;
  text-align: center;
  font-weight: bold;
}

/* === Sidebar Styles === */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 200px;
  height: 100%;
  background-color: #1f2a38;
  padding-top: 20px;
  z-index: 1000;
  overflow-y: auto;
}

.menu-title {
  color: #ffcc00;
  font-size: 0.9rem;
  text-transform: uppercase;
  padding: 15px 20px 5px;
  font-weight: bold;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar ul {
  list-style: none;
  padding: 0 0 10px 0;
  margin: 0;
}

.sidebar ul li a {
  display: block;
  padding: 12px 20px;
  color: white;
  font-weight: 500;
  text-decoration: none;
  transition: 0.3s;
}

.sidebar ul li a:hover {
  background-color: #ffcc00;
  color: #1f2a38;
} 



/* ========== Members Section (Matched with Testimonial/Contact) ========== */
.members-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: #fafafa;
  padding: 2rem;
  text-align: center;
  border-radius: 8px;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.members-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
  color: inherit;
  transition: color 0.3s ease;
}
.members-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.member-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.member-item:hover {
  transform: translateY(-2px);
}
.member-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 8px;
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
}
.member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.add-avatar {
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ccc;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.plus-icon {
  color: #555555;
  font-size: 24px;
  font-weight: 300;
}
.member-info {
  max-width: 80px;
}
.member-name {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
  line-height: 1.2;
  color: inherit;
  transition: color 0.3s ease;
}
.member-access {
  font-size: 12px;
  line-height: 1.2;
  color: #666;
  transition: color 0.3s ease;
}
.add-member-btn:hover .add-avatar {
  border-color: #999999;
  background-color: #e0e0e0;
}
.add-member-btn:hover .plus-icon {
  color: #333333;
}
.member-item:hover .member-avatar {
  border-color: #4a9eff;
}
/* Dark Mode for Members Section */
body.dark-mode .members-container {
  background-color: #1e1e1e;
  color: #f0f0f0;
}
body.dark-mode .members-title,
body.dark-mode .member-name,
body.dark-mode .member-access {
  color: #f0f0f0;
}
body.dark-mode .add-avatar {
  background-color: #2a2a2a;
  border-color: #444444;
}
body.dark-mode .plus-icon {
  color: #bbbbbb;
}
body.dark-mode .add-member-btn:hover .add-avatar {
  background-color: #333333;
  border-color: #666666;
}
body.dark-mode .add-member-btn:hover .plus-icon {
  color: #dddddd;
}

/* ========== Hero Banner ========== */
.hero {
  background: url('assets/images/banner.jpg') center/cover no-repeat;
  color: white;
  padding: 80px 20px;
  text-align: center;
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}
.hero a {
  padding: 10px 20px;
  background: #ffcc00;
  color: #1f2a38;
  border-radius: 5px;
  font-weight: bold;
}

/* ========== Features Grid ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}
.feature {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  text-align: center;
  padding: 1rem;
}
.feature img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.feature h3 {
  margin-bottom: 10px;
}


/* ========== Testimonial Section ========== */
.testimonial {
  background-color: #fdfdfd;
  padding: 2rem;
  text-align: center;
}

/* ========== Contact Section ========== */
.contact {
  background-color: #fafafa;
  padding: 2rem;
  text-align: center;
}

/* ========== Footer ========== */
footer {
  background-color: #1f2a38;
  color: white;
  text-align: center;
  padding: 1rem;
}
footer img {
  margin: 0 5px;
  vertical-align: middle;
}

/* ========== Dark Mode ========== */
body.dark-mode {
  background-color: #1f1f1f;
  color: #f0f0f0;
}
body.dark-mode .feature {
  background-color: #2c2c2c;
}
body.dark-mode nav {
  background-color: #111;
}
body.dark-mode footer {
  background-color: #111;
}
body.dark-mode .hero {
  background-blend-mode: multiply;
  background-color: rgba(0,0,0,0.5);
}
body.dark-mode .section-title,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode p,
body.dark-mode a,
body.dark-mode li {
  color: #f0f0f0;
}
body.dark-mode .feature p,
body.dark-mode .contact-section p,
body.dark-mode .testimonial-section p {
  color: #e0e0e0;
}
body.dark-mode .section-title {
  color: #ffcc00;
}
body, .feature, .section-title, p {
  transition: color 0.3s ease, background-color 0.3s ease;
}

/* ====== Dark Mode Toggle Switch Style in Sidebar ====== */
.dark-mode-toggle {
  display: flex;
  align-items: center;
  justify-content: start;
  padding: 12px 20px;
  color: white;
  font-size: 14px;
  gap: 10px;
  cursor: pointer;
}
.dark-mode-toggle input {
  display: none;
}
.dark-mode-toggle .slider {
  position: relative;
  width: 40px;
  height: 20px;
  background-color: #ccc;
  border-radius: 20px;
  transition: background-color 0.3s;
}
.dark-mode-toggle .slider::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.3s;
}
.dark-mode-toggle input:checked + .slider {
  background-color: #4fc3f7;
}
.dark-mode-toggle input:checked + .slider::before {
  transform: translateX(20px);
}

/* ========== Dark Mode Fix for Sections ========== */
body.dark-mode .testimonial {
  background-color: #1e1e1e;
  color: #f0f0f0;
}
body.dark-mode .contact {
  background-color: #1e1e1e;
  color: #f0f0f0;
}
