/* ==============================================
   GLOBAL STYLES
   ============================================== */

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1a1a1a;
  background-color: #ffffff;
}

h1, h2, h3 {
  font-weight: 700;
}

/* ==============================================
   NAVIGATION
   ============================================== */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  background-color: #ffffff;
  border-bottom: 2px solid #e5e7eb;
}

.navbar-brand {
  font-size: 1.25rem;
  font-weight: 700;
}

.navbar-nav {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-link {
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
  transition: color 0.2s;
  padding: 0.5rem 1rem;
}

.nav-link:hover {
  color: #4169aa;
}

.nav-link.active {
  color: #4169aa;
  border-bottom: 2px solid #4169aa;
  padding-bottom: 0.25rem;
}

.nav-link-admin {
  color: #4169aa;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border: 2px solid #4169aa;
  border-radius: 6px;
  transition: all 0.2s;
}

.nav-link-admin:hover {
  background: #4169aa;
  color: white;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  background-color: #ffffff;
  border-bottom: 2px solid #e5e7eb;
  gap: 2rem; /* Add gap between sections */
}

.navbar-brand {
  flex-shrink: 0;
}

.navbar-brand h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.navbar-nav {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-grow: 1; /* This pushes Login to the right */
  justify-content: center; /* Centers the nav links */
}

.navbar-actions {
  flex-shrink: 0;
}

/* ==============================================
   OFFICER CONTACTS
   ============================================== */

.officer-contacts h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #1a1a2e;
}

.officer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.officer-card {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 1.25rem;
  background: #fff;
}

.officer-rank {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  background: #00629b;
  padding: 0.2em 0.6em;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.officer-name {
  margin: 0.5rem 0;
  font-size: 1.25rem;
  color: #1f2937;
}

.officer-details {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0 0;
}

.officer-details li {
  margin: 0.25rem 0;
}

.officer-details a {
  color: #4169aa;
  text-decoration: none;
}

.officer-details a:hover {
  text-decoration: underline;
}

/* ==============================================
   EVENTS CALENDAR
   ============================================== */

.events-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem;
  min-height: calc(100vh - 200px);
}

.events-header {
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 3px solid #4169aa;
}

.events-header h1 {
  font-size: 2rem;
  margin: 0;
  font-weight: 900;
  color: #1a1a1a;
  letter-spacing: 0.5px;
}

.events-subtitle {
  margin: 0.5rem 0 0 0;
  color: #4169aa;
  font-size: 1rem;
  font-weight: 500;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.event-card {
  background: white;
  border: 1px solid #d1d5db;
  border-left: 4px solid #4169aa;
  border-radius: 8px;
  padding: 2rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.event-card:hover,
.event-card:focus {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(65, 105, 170, 0.15);
  border-left-color: #500000;
  outline: none;
}

.event-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
  color: #1a1a1a;
  letter-spacing: 0.5px;
}

.event-card-date {
  font-size: 0.875rem;
  color: #4169aa;
  margin: 0 0 1.5rem 0;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.event-card-meta {
  margin-bottom: 1.5rem;
}

.event-card-time,
.event-card-location {
  margin: 0.5rem 0;
  color: #1a1a1a;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.event-card-description {
  color: #4b5563;
  margin: 0;
  line-height: 1.6;
  font-size: 0.95rem;
}

.no-events {
  text-align: center;
  padding: 4rem 2rem;
  background: #f0f4fa;
  border: 3px dashed #4169aa40;
  border-radius: 12px;
}

.no-events p {
  font-size: 1.125rem;
  color: #6b7280;
  margin: 0.5rem 0;
}

.no-events p:first-child {
  font-weight: 600;
  color: #1a1a1a;
}

/* ==============================================
   ADMIN LOGIN PAGE
   ============================================== */

.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9fafb;
  padding: 2rem;
}

.login-card {
  background: white;
  border: 3px solid #1a1a1a;
  border-radius: 12px;
  padding: 3rem;
  max-width: 450px;
  width: 100%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.login-card h1 {
  font-size: 2rem;
  margin: 0 0 1rem 0;
  color: #1a1a1a;
  font-weight: 700;
  text-align: center;
}

.login-description {
  color: #4b5563;
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
}

.google-signin-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #4169aa;
  border: 2px solid #4169aa;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.google-signin-btn:hover {
  background: #2f4f8f;
  border-color: #2f4f8f;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(65, 105, 170, 0.3);
}

.back-link {
  color: #4169aa;
  text-decoration: none;
  font-size: 0.95rem;
  display: block;
  text-align: center;
  transition: color 0.2s;
}

.back-link:hover {
  text-decoration: underline;
}

/* ==============================================
   ADMIN DASHBOARD
   ============================================== */

.dashboard-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem;
  background-color: #f9fafb;
  min-height: 100vh;
}

.dashboard-header {
  background: #ffffff;
  border: 3px solid #1a1a1a;
  border-radius: 12px;
  padding: 3rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.dashboard-header h1 {
  margin: 0 0 0.5rem 0;
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
}

.admin-email {
  font-size: 1.1rem;
  color: #4b5563;
  font-weight: 500;
}

.admin-controls {
  background: #fff;
  border: 3px solid #1a1a1a;
  border-radius: 12px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.admin-controls h2 {
  margin-top: 0;
  color: #1a1a1a;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.admin-controls ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.admin-controls li {
  padding: 1.25rem 0;
  border-bottom: 2px solid #e5e7eb;
  font-size: 1.05rem;
  color: #1a1a1a;
  font-weight: 500;
}

.admin-controls li:last-child {
  border-bottom: none;
}

.dashboard-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.dashboard-actions a {
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
}

.btn-signout {
  background-color: #dc3545;
  color: white;
}

.btn-signout:hover {
  background-color: #c82333;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.btn-public {
  background-color: #4169aa;
  color: white;
}

.btn-public:hover {
  background-color: #2f4f8f;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(65, 105, 170, 0.3);
}

/* ==============================================
   FOOTER
   ============================================== */

.site-footer {
  text-align: center;
  padding: 2rem;
  background: #f9fafb;
  border-top: 2px solid #e5e7eb;
  margin-top: 4rem;
}

.site-footer p {
  margin: 0;
  color: #6b7280;
  font-size: 0.875rem;
}

/* ==============================================
   RSVP BUTTONS
   ============================================== */

.rsvp-buttons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.btn-rsvp {
  flex: 1;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid #4169aa;
  background: white;
  color: #4169aa;
  transition: all 0.2s;
}

.btn-rsvp:hover {
  background: #4169aa;
  color: white;
}

.btn-rsvp-active {
  flex: 1;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
}