/* Background */
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: url('../images/bg.jpg') no-repeat center center/cover;
  font-family: 'Segoe UI', sans-serif;
  color: #fff;
  
}

.overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: -1;
}

/* Glassmorphism container */
.glass-container {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 40px;
  width: 90%;
  max-width: 1200px;
  margin: 2rem auto;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  height: auto;      
}

/* Logo */
.logo img {
  max-width: 100px;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 8px rgba(0,0,0,0.5));
}

/* Inputs */
.form-group input {
  width: 100%;
  padding: 12px;
  margin: 12px 0;
  border: none;
  border-radius: 8px;
  outline: none;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.form-group input::placeholder {
  color: #eee;
}

/* Button */
/* Buttons container */
.button-group {
  display: flex;
  justify-content: center;
  gap: 10px; /* spacing between buttons */
  margin-top: 15px;
}

/* Button */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  max-width: 150px; /* optional: limits button width */
}

.btn:hover {
  background: linear-gradient(135deg, #0072ff, #00c6ff);
}

/* Secondary (viewer) button */
.btn-secondary {
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  border: none;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #0072ff, #00c6ff);
}

/*HOMEPAGE*/

/* Links */
.links {
  margin-top: 15px;
  font-size: 14px;
}

.links a {
  color: #fff;
  text-decoration: none;
}

.links a:hover {
  text-decoration: underline;
}

/* Dashboard Layout */
.dashboard {
  text-align: center;
  padding: 2rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.logout {
  margin-top: 2rem;
}

.btn-danger {
  background: rgba(255, 0, 0, 0.6);
  border: none;
  color: white;
}

/*homepage*/
/* Make dashboard container larger than login */
.glass-container.dashboard {
  width: 90%;
  max-width: 1200px;  /* keeps it centered and not too wide */
  margin: 0 auto;
  text-align: center;
}


/* Footer alignment inside dashboard */
.dashboard .footer {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #ddd;
}

/* Equal height cards with button fixed at bottom center */
.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* pushes content and button apart */
  align-items: center; /* keeps everything centered */
  text-align: center;
}

.card p {
  flex-grow: 1; /* makes description take up available space */
}

.card .btn {
  margin-top: auto; /* pushes button to bottom */
  align-self: center; /* ensures it's centered horizontally */
}


/*SP MEMBERS*/
/* SB MEMBERS PAGE */
.sb-members {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.sb-member {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 1.5rem;
  text-align: center;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sb-member:hover {
  transform: translateY(-5px);
}

.sb-member img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid rgba(255, 255, 255, 0.4);
}

.sb-member h3 {
  margin: 0.5rem 0;
  font-size: 1rem;
  font-weight: bold;
}

.sb-member p {
  margin: 0.5rem 0 1rem;
  font-size: 0.95rem;
  color: #eee;
}

/* Admin buttons */
.admin-actions {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.admin-actions .btn {
  padding: 8px 14px;
  font-size: 0.85rem;
}

/* SB MEMBER */
.member-name {
  font-size: 2rem;   /* Big and bold for names */
  font-weight: 1000;
  color: #fff;
}

.member-committee {
  font-size: 1rem;     /* Slightly smaller */
  font-weight: 500;
  font-style: italic;
  color: #ccc;
  margin-top: 0.5px;
}

.glass-container.sb-member h2{
  margin: 0.5rem 0;
  font-size: 4rem;
  font-weight: bold;
}

.glass-container.sb-member p{
  margin: 0.5rem 0;
  font-size: 1rem;
}

/* Override the broad paragraph rule just for the role line */
.glass-container.sb-member p.role-admin {
  font-size: 1rem !important;   /* adjust to taste */
  font-weight: 600;
}

.glass-container.sb-member p.role-viewer {
  font-size: 1rem !important;   /* adjust to taste */
  font-weight: 700;
}

/* (Optional) If some templates still use .viewer-role, support it too */
.glass-container.sb-member p.viewer-role {
  font-size: 1rem !important;
  font-weight: 700;
}


/* Viewer Side */
.viewer-info {
  text-align: center;
  margin-top: 10px;
}
.viewer-name {
  font-size: 1.4rem;
  font-weight: bold;
  color: #222;
}
.viewer-role {
  font-size: .5rem;
  font-style: italic;
  color: #555;
  margin-bottom: 0.5rem;
}
.viewer-committees-title {
  font-weight: bold;
  margin-top: 0.5rem;
  font-size: 0.95rem;
}
.viewer-committees {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  color: #333;
}

/* Admin Side */
.admin-form {
  margin-top: 0.5rem;
}

.back-link {
  margin-top: 2rem;
  display: inline-block;
  padding: 10px 20px;
  background: #0072ff;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
}
.back-link:hover {
  background: #005ecc;
}