/* General Reset */

body {

  font-family: Arial, sans-serif;

  background: #f4f4f4;

  margin: 0;

  padding: 0;

}



/* Site Header */

.site-header {

  background-color: #6ca0dc;

  padding: 10px 20px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  min-height: 80px;

}

.btn.small {
    font-size: 0.8em;
    padding: 4px 8px;
    margin-left: 5px;
}


.header-left img {

  height: 150px;

  max-width: 150px;

  object-fit: contain;

}



.header-right {

  display: flex;

  align-items: center;

  gap: 15px;

}



.user-controls {

  display: flex;

  align-items: center;

  gap: 10px;

}



.login-form {

  display: flex;

  align-items: center;

  gap: 8px;

}



.login-form input[type="email"],

.login-form input[type="password"] {

  padding: 5px 10px;

  border-radius: 5px;

  border: 1px solid #ccc;

  font-size: 14px;

}



/* Buttons */

.button {

  background-color: #6ca0dc;

  color: white;

  padding: 10px 20px;

  text-decoration: none;

  display: inline-block;

  border-radius: 6px;

  transition: background-color 0.3s ease;

  font-size: 14px;

  border: none;

  cursor: pointer;

}



.button:hover {

  background-color: #5b8cc6;

}



.button.logout-button,

.button.danger {

  background-color: #e74c3c;

}



.button.logout-button:hover,

.button.danger:hover {

  background-color: #c0392b;

}



.button.small {

  font-size: 13px;

  padding: 4px 10px;

  line-height: 1.2;

}



.button.small:hover {

  background-color: #5b8cc6;

}



.join-button {

  background-color: #2ecc71;

}



.join-button:hover {

  background-color: #27ae60;

}



.login-button {

  background-color: #b730ec;

}

.forgot-button {

  background-color: #D3D3D3;
  color: #36454F

}




/* Navigation */

.main-nav {

  display: flex;

  justify-content: center;

  gap: 10px;

  background-color: #5b8cd8;

  padding: 10px 0;

}



.nav-button {

  background-color: #ffffff;

  color: #1c3f94;

  text-decoration: none;

  padding: 8px 15px;

  border-radius: 5px;

  font-size: 14px;

  border: 1px solid #cbd6f3;

  transition: background-color 0.3s, color 0.3s;

}



.nav-button:hover {

  background-color: #7ea8e3;

  color: white;

}



/* Containers */

.container {

  max-width: 1200px;

  margin: 30px auto;

  padding: 20px;

  background: white;

  border-radius: 10px;

  box-shadow: 0 0 10px rgba(0,0,0,0.1);

}



.table-container {

  overflow-x: auto;

  margin-top: 20px;

}



/* Tables */

table {

  width: 100%;

  border-collapse: collapse;

  background: #fff;

  box-shadow: 0 0 5px rgba(0,0,0,0.1);

}



table thead {

  background-color: #3498db;

  color: white;

}



table th {

  background-color: #3498db;

  color: white;

  cursor: default;

}



table th:hover {

  background-color: #3498db;

  color: white;

}



th, td {

  padding: 12px 15px;

  text-align: left;

  border-bottom: 1px solid #ddd;

}



tr:hover {

  background-color: #f1f1f1;

}



/* Dashboard */

.dashboard-buttons {

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

  gap: 1rem;

  margin: 2rem 0;

}



.dashboard-button {

  display: block;

  padding: 1rem;

  background-color: #4f72d6;

  color: white;

  text-align: center;

  text-decoration: none;

  border-radius: 6px;

  font-weight: bold;

  transition: background-color 0.3s ease;

}



.dashboard-button:hover {

  background-color: #3b5cb5;

}



.dashboard-grid {

  display: flex;

  flex-wrap: wrap;

  justify-content: center;

  gap: 20px;

  margin-top: 30px;

}



.dashboard-card {

  background: #f4f4f4;

  border-radius: 10px;

  padding: 20px;

  width: 260px;

  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

  text-align: center;

}



.dashboard-card h2 {

  font-size: 18px;

  margin-bottom: 15px;

}



.dashboard-card p {

  font-size: 24px;

  margin-bottom: 10px;

}



/* Admin Forms */

.admin-form {

  display: flex;

  flex-direction: column;

  gap: 12px;

  margin: 20px auto;

  padding: 20px;

  max-width: 600px;

  background: #fff;

  border-radius: 8px;

  box-shadow: 0 2px 8px rgba(0,0,0,0.1);

}



.admin-form label {

  font-weight: bold;

  margin-bottom: 4px;

}



.admin-form input,

.admin-form select {

  padding: 8px 10px;

  border: 1px solid #ccc;

  border-radius: 5px;

  font-size: 14px;

}



.admin-form input[type="checkbox"] {

  width: auto;

  margin-right: 8px;

}



.admin-form button {

  background-color: #2ecc71;

  color: white;

  border: none;

  padding: 10px;

  font-size: 16px;

  cursor: pointer;

  border-radius: 5px;

  transition: background-color 0.3s;

}



.admin-form button:hover {

  background-color: #27ae60;

}



/* Admin Buttons */

.admin-buttons {

  display: flex;

  flex-wrap: wrap;

  justify-content: center;

  gap: 15px;

  margin-top: 20px;

}



/* Flash Messages */

.flash-message {

  position: fixed;

  top: 20px;

  left: 50%;

  transform: translateX(-50%);

  padding: 12px 24px;

  background-color: #d4edda;

  color: #155724;

  border: 1px solid #c3e6cb;

  border-radius: 6px;

  font-weight: bold;

  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);

  z-index: 9999;

  animation: fadeSlideDown 0.3s ease-out;

}



.flash-message.success {

  background-color: #d4edda;

  color: #155724;

  border-color: #c3e6cb;

}



.flash-message.error {

  background-color: #f8d7da;

  color: #721c24;

  border-color: #f5c6cb;

}



@keyframes fadeSlideDown {

  from {

    opacity: 0;

    transform: translateX(-50%) translateY(-20px);

  }

  to {

    opacity: 1;

    transform: translateX(-50%) translateY(0);

  }

}



/* Footer */

footer {

  text-align: center;

  padding: 15px;

  background: #6ca0dc;

  color: white;

  margin-top: 30px;

}

.add-member-button {

  display: flex;

  justify-content: flex-start;

  margin: 10px 0 20px 0;

}

.action-buttons {

  display: flex;

  flex-wrap: wrap;

  gap: 6px;

  justify-content: flex-start;

}



.action-buttons .button {

  margin-right: 6px;

  white-space: nowrap;

}



.action-buttons .button:last-child {

  margin-right: 0;

}

.pagination {

  margin-top: 20px;

  display: flex;

  justify-content: flex-start; /* Align left */

  gap: 10px;

}





.pagination button {

  padding: 6px 12px;

  border: none;

  background-color: #6ca0dc;

  color: white;

  border-radius: 5px;

  cursor: pointer;

}



.pagination button:hover {

  background-color: #5b8cc6;

}



.message-badge {

  background-color: #e53935;

  color: white;

  border-radius: 50%;

  padding: 2px 8px;

  font-size: 0.8em;

  margin-left: 5px;

  vertical-align: middle;

}

.messages-table {

  width: 100%;

  border-collapse: collapse;

  margin-top: 20px;

}



.messages-table th,

.messages-table td {

  border: 1px solid #ccc;

  padding: 10px;

  text-align: left;

}



.messages-table tr:nth-child(even) {

  background-color: #f9f9f9;

}



@media (max-width: 600px) {

  body {

    font-size: 16px;

  }

}

@media (max-width: 600px) {

  .button {

    padding: 14px 20px;

    font-size: 16px;

  }

}

@media (max-width: 768px) {

  .messages-table, .messages-table thead, .messages-table tbody, .messages-table th, .messages-table td, .messages-table tr {

    display: block;

  }



  .messages-table thead {

    display: none;

  }



  .messages-table tr {

    margin-bottom: 1rem;

    border: 1px solid #ccc;

    padding: 10px;

  }



  .messages-table td {

    text-align: right;

    padding-left: 50%;

    position: relative;

  }



  .messages-table td::before {

    content: attr(data-label);

    position: absolute;

    left: 10px;

    font-weight: bold;

    text-align: left;

  }

}

.highlight-role {

  background-color: #d1e0dd  !important; /*  gold */

}



.badge {

  display: inline-block;

  padding: 4px 10px;

  border-radius: 12px;

  font-size: 12px;

  font-weight: normal;

  text-align: center;

}



.badge-admin {

  background-color: #9b59b6; /* Purple */

   /* Black text */ 

}

.badge-chairperson {

  background-color: #FFD700; /* Orange */

}

.badge-vice-chairperson {

  background-color: #ccc9be; /* Darker Orange */

}

.badge-secretary {

  background-color: #CD7F32;

  color: #ffffff;/* Blue */

}

.badge-treasurer {

  background-color: #b6dc59; /* Green */

}

.badge-membership-officer {

  background-color: #ca59dc;

  color: #ffffff;/* Turquoise */

}

.badge-committee-member {

  background-color: #59dcdc; /* Yellow */

}

.badge-member {

  background-color: #353c3c;

  color: #ffffff; /* Grey */

}

th[title] {

  cursor: help;

  position: relative;

}



th[title]:hover::after {

  content: attr(title);

  position: absolute;

  bottom: -1.8em;

  left: 0;

  background: #333;

  color: #fff;

  padding: 6px 8px;

  font-size: 12px;

  border-radius: 5px;

  white-space: nowrap;

  z-index: 10;

}

.tooltip {

  position: relative;

  cursor: help;

}



.tooltip .tooltiptext {

  visibility: hidden;

  width: max-content;

  max-width: 220px;

  background-color: #333;

  color: #fff;

  text-align: left;

  border-radius: 6px;

  padding: 8px;

  position: absolute;

  z-index: 1;

  bottom: 125%; /* show above */

  left: 50%;

  transform: translateX(-50%);

  opacity: 0;

  transition: opacity 0.3s;

  font-size: 13px;

  line-height: 1.4;

}



.tooltip:hover .tooltiptext {

  visibility: visible;

  opacity: 1;

}



.add-member-button {

  margin-bottom: 15px; /* or 20px if you want more spacing */

}



table th:nth-child(4),

table td:nth-child(4) {

  min-width: auto;

  max-width: 80px;

  word-wrap: break-word;

  white-space: normal;

  overflow-wrap: break-word;

}

table {

  table-layout: auto;

  width: 100%;

}

.admin-links {

  display: flex;

  flex-wrap: wrap;

  gap: 10px;

  margin-top: 20px;

}



.admin-links a.button {

  flex: 1 1 200px;

  padding: 12px 20px;

  text-align: center;

  background-color: #5b91e5;

  color: white;

  border: none;

  border-radius: 8px;

  font-weight: bold;

  text-decoration: none;

  transition: background-color 0.3s;

}



.admin-links a.button:hover {

  background-color: #4a7cd1;

}

.user-meta-bar {

  display: flex;

  justify-content: flex-start;

  align-items: center;

  gap: 10px;

  margin-bottom: 10px;

}



.user-meta-bar .logged-in {

  font-weight: bold;

  font-size: 18px;

}



.user-controls {

  display: flex;

  flex-wrap: wrap;

  gap: 15px;

}

.modal-success {

  position: fixed;

  top: 20px;

  right: 20px;

  background: #28a745;

  color: white;

  padding: 12px 18px;

  border-radius: 8px;

  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);

  z-index: 1000;

  font-weight: bold;

  font-size: 16px;

}

th .tooltip {

    font-size: 13px;

    line-height: 1.2;

}

th {

    max-width: 100px;

    white-space: normal;

    text-align: center;

    word-break: break-word;

}



th .tooltip {

    font-size: 13px;

    line-height: 1.2;

    display: inline-block;

    max-width: 80px;

}

th, td {

  text-align: center;

  vertical-align: middle;

  padding: 8px;

  max-width: 100px;

  word-wrap: break-word;

}



th .tooltip {

  display: inline-block;

  max-width: 80px;

  white-space: normal;

  font-size: 13px;

  line-height: 1.2;

  word-break: break-word;

}

.warning {

  background-color: #cc534a;

  color: #ffffff;

  border: 1px solid #ffeeba;

  padding: 15px;

  border-radius: 8px;

  font-weight: bold;

  font-size: 17px;

  margin-bottom: 20px;

}



/* Fix button wrapping and visibility inside tables */

table td .button {

  white-space: normal;

  word-break: break-word;

  padding: 6px 10px;

  font-size: 13px;

  display: inline-block;

  max-width: 100%;

  box-sizing: border-box;

}

th {

    font-size: 0.9em; /* slightly smaller than normal */

}#

@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .header-left img {
    max-width: 160px;
    height: auto;
    margin-bottom: 10px;
  }

  .user-controls,
  .user-meta-bar {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .user-controls a.button,
  .login-form input,
  .login-form button {
    width: 90%;
    max-width: 300px;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .main-nav .nav-button {
    padding: 10px;
    font-size: 14px;
  }

  .flash-message {
    font-size: 14px;
    padding: 10px;
  }

  #privacy-popup,
  #full-privacy-modal {
    width: 90%;
    max-width: 95vw;
    font-size: 14px;
  }
}
@media (max-width: 600px) {
  .admin-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .admin-links .button {
    width: 100%;
    box-sizing: border-box;
  }

  .admin-section h2 {
    font-size: 1.4em;
  }
}
@media (max-width: 600px) {
  .admin-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .admin-links .button {
    width: 100%;
    box-sizing: border-box;
  }

  .admin-section h2 {
    font-size: 1.4em;
  }
}
/* Base Styles */
body {
    font-family: sans-serif;
    margin: 0;
}

.site-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}

.logo-container img {
    max-width: 180px;
    height: auto;
}

.user-bar {
    margin: 10px 0;
    text-align: center;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.main-nav a {
    padding: 8px 12px;
    background-color: #4f72d6;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}



.login-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.login-form input {
    padding: 6px;
    width: 80%;
    max-width: 250px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.logout-button, .join-button {
    background-color: #4f72d6;
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
}

.flash-message {
    text-align: center;
    padding: 10px;
    margin: 10px;
    font-weight: bold;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .site-header {
        align-items: flex-start;
    }

    .main-nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav a {
        width: 100%;
        text-align: left;
    }

    .login-form input {
        width: 100%;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

.vertical-layout {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

.vertical-layout .button {
  text-align: center;
  padding: 10px;
  font-size: 1em;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}


.login-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.login-form input {
  width: 100%;
  max-width: 300px;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1em;
}

.button {
  font-size: 1em;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
}

.login-button {
  background-color: #3b82f6;
  color: white;
  width: 100%;
  max-width: 300px;
  font-weight: bold;
  transition: background 0.3s;
}

.login-button:hover {
  background-color: #2563eb;
}

.secondary-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.secondary-button {
  background-color: transparent;
  color: #3b82f6;
  padding: 8px 12px;
  font-size: 0.9em;
  border: 1px solid #3b82f6;
  border-radius: 6px;
  transition: background 0.3s, color 0.3s;
}

.secondary-button:hover {
  background-color: #3b82f6;
  color: white;
}

.news-article {
    margin-bottom: 2rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 1rem;
    background: #f9f9f9;
    box-shadow: 1px 1px 4px rgba(0,0,0,0.05);
}

.news-article h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.news-article small {
    color: #666;
    display: block;
    margin-bottom: 0.75rem;
}

.news-article a {
    display: inline-block;
    margin-top: 0.5rem;
    color: #0056b3;
    text-decoration: none;
}

.news-article a:hover {
    text-decoration: underline;
}

.news-article {
    margin-bottom: 2rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 1rem;
    background: #f9f9f9;
    box-shadow: 1px 1px 4px rgba(0,0,0,0.05);
    overflow: hidden;
}

.news-article .thumbnail {
    float: right;
    max-width: 150px;
    margin-left: 1rem;
    border-radius: 4px;
}

.thumbnail {
    max-width: 150px;
    height: auto;
    border-radius: 6px;
    margin-bottom: 10px;
    display: block;
}

.thumbnail {
    max-width: 150px;
    height: auto;
    border-radius: 6px;
    margin-bottom: 10px;
    display: block;
}

.news-thumbnail-wrapper {
    margin: 1rem 0;
    text-align: center;
}

.site-header {
  background: linear-gradient(135deg, #2d5e3d, #4a7c59);
  border-bottom: 3px solid #28a745;
  box-shadow: 0 2px 8px rgba(45, 94, 61, 0.2);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  flex-wrap: nowrap;
}

.header-left,
.header-center,
.header-right {
  display: flex;
  align-items: center;
}

.header-left {
  flex: 1;
  justify-content: flex-start;
}

.header-center {
  flex: 2;
  justify-content: center;
}

.header-right {
  flex: 1;
  justify-content: flex-end;
}

.header-login-form {
  display: flex;
  gap: 10px;
  align-items: center;
}

.header-login-form input[type="email"],
.header-login-form input[type="password"] {
  border: 2px solid #e9ecef;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-login-form input:focus {
  border-color: #28a745;
  box-shadow: 0 0 8px rgba(40, 167, 69, 0.2);
  outline: none;
}

.login-button {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  font-weight: bold;
  font-size: 15px;
  padding: 10px 20px;
  border-radius: 6px;
  box-shadow: 0 3px 6px rgba(0, 123, 255, 0.3);
  border: 1px solid #ffffff;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.login-button:hover {
  background: linear-gradient(135deg, #0056b3, #004085);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.4);
}

.prominent-join-button {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  font-weight: bold;
  font-size: 16px;
  padding: 12px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
  border: 2px solid #ffffff;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: pulse 2s infinite;
}

.prominent-join-button:hover {
  background: linear-gradient(135deg, #218838, #1ba085);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(40, 167, 69, 0.4);
}

.prominent-join-button:before {
  content: "🌱 ";
  margin-right: 8px;
}

@keyframes pulse {
  0% { box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3); }
  50% { box-shadow: 0 4px 16px rgba(40, 167, 69, 0.6); }
  100% { box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3); }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 12px;
  }

  .header-left,
  .header-center,
  .header-right {
    justify-content: center;
  }

  .header-login-form {
    flex-direction: column;
    width: 100%;
    align-items: center;
  }

  .header-login-form input,
  .header-login-form button {
    width: 90%;
    max-width: 300px;
  }
}

.main-nav {
  display: none !important;
}

.container {
  margin-top: 20px;
}
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #6fa8dc;
}

.site-header {
  background-color: #6fa8dc;
  padding: 40px 20px;
  text-align: center;
}

.header-container {
  max-width: 400px;
  margin: 0 auto;
  padding: 20px;
  background-color: transparent;
  text-align: center;
}

.logo-img {
  max-width: 150px;
  height: auto;
  margin-bottom: 20px;
}

.header-login-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.header-login-form input {
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  appearance: none;       /* removes dropdown arrow on some browsers */
  -moz-appearance: none;  /* Firefox */
  -webkit-appearance: none; /* Safari/Chrome */
}

.login-button {
  padding: 12px;
  font-size: 16px;
  background-color: #388e3c;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.login-button:hover {
  background-color: #2e7d32;
}

.prominent-join-button {
  display: inline-block;
  margin-top: 20px;
  color: white;
  text-decoration: none;
  font-weight: bold;
}
