/* Container */
.appg-dashboard {
  font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 40px auto;
  max-width: 1200px;
  display: flex;
  gap: 20px;
  min-height: 600px;

  border: 1px solid #d1d5db;
  border-radius: 16px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.1);
  background: #3A3881;
  padding: 20px;
}

/* Sidebar Tabs */
.appg-tabs {
  flex: 0 0 240px;
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
  background: #f3f4f6;
  border-radius: 16px;

  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.appg-tabs .sidebar-title {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  padding: 18px;
  border-bottom: 2px solid #e5e7eb;
  color: #2a2c3d;
  background: #ffffff;
  border-radius: 16px 16px 0 0;
}

.appg-tabs li {
  padding: 16px 20px;
  cursor: pointer;
  color: #333;
  font-weight: 600;
  border-left: 4px solid transparent;
  transition: all 0.3s ease;
}
.appg-tabs li:hover {
  background: #e5e7eb;
}
.appg-tabs li.active {
  background: #ffffff;
  border-left: 4px solid #4d5ca4;
  color: #4d5ca4;
}

/* Tab Content Area */
.appg-tab-content {
  flex: 1;
  background: #ffffff;
  padding: 30px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 6px 25px rgba(0,0,0,0.08);
  animation: fadeSlide 0.4s ease;
  display: none;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.appg-tab-content h2 {
  margin-top: 0;
  font-size: 22px;
  font-weight: 700;
  color: #2a2c3d;
  margin-bottom: 20px;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 10px;
}

/* Officers & Members Listings */
.appg-listing {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.appg-listing-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #f9fafb;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  transition: background 0.25s ease;
}
.appg-listing-item:hover {
  background: #f1f3f8;
}

.appg-listing-item.with-photo img {
  border-radius: 50%;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 3px solid #4d5ca4;
  flex-shrink: 0;
}
.appg-listing-item.no-photo img {
  display: none;
}

.appg-listing-item .info h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 4px;
  color: #2a2c3d;
}
.appg-listing-item .info p {
  margin: 2px 0;
  font-size: 14px;
  color: #555;
}

/* Contact */
.appg-contact p {
  font-size: 15px;
  margin: 0 0 12px;
  color: #333;
}

/* -----------------
   Buttons (unified)
----------------- */
.appg-button {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  background: #4d5ca4;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  display: inline-block;
  text-align: center;
}

.appg-button:hover {
  background: #3c4985;
  transform: translateY(-1px);
}

.load-more.appg-button {
  display: block;
  margin: 20px auto 0;
  background: #4d5ca4;
}

/* -----------------
   Responsive tweaks
----------------- */
@media (max-width: 992px) {
  .appg-dashboard {
    flex-direction: column;
    padding: 15px;
  }

  /* Sidebar moves on top */
  .appg-tabs {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: none;
    margin-bottom: 15px;
    background: #fff;
  }

  .appg-tabs .sidebar-title {
    flex: 1 0 100%;
    border-radius: 12px 12px 0 0;
    font-size: 18px;
    padding: 12px;
  }

  .appg-tabs li {
    flex: 1;
    text-align: center;
    padding: 12px 10px;
    font-size: 14px;
    border-left: none;
    border-bottom: 3px solid transparent;
  }
  .appg-tabs li.active {
    border-left: none;
    border-bottom: 3px solid #4d5ca4;
  }
}

@media (max-width: 600px) {
  .appg-dashboard {
    padding: 10px;
  }

  .appg-tab-content {
    padding: 20px;
  }

  .appg-listing-item {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .appg-listing-item.with-photo img {
    width: 56px;
    height: 56px;
  }
  .appg-listing-item .info h3 {
    font-size: 16px;
  }
  .appg-listing-item .info p {
    font-size: 13px;
  }

  .load-more.appg-button {
    width: 100%;
    font-size: 14px;
    padding: 10px;
  }
}