/* -----------------------------------------------------
    ELLA RISES GLOBAL BRAND STYLES
----------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Montserrat:wght@300;400;500;600&family=Pacifico&display=swap');

/* -----------------------------------------------------
    BRAND VARIABLES (from Ella Rises Brand Guide)
----------------------------------------------------- */
:root {
  /* Colors - exact from brand guide */
  --blue: #99B7C6;
  --purple: #978EC4;
  --cream: #F9F5EA;
  --pink-light: #FFD8D1;
  --pink-mid: #F9AFB1;
  --sage: #9AB59D;
  --green-soft: #9AB59D;
  --green-dark: #3A3F3B;
  --gray-dark: #3A3F3B;
  --peach: #F4B092;
  --rose: #CE325B;

  /* Fonts - from brand guide */
  --font-display: "DM Serif Display", serif;
  --font-body: "Montserrat", sans-serif;
  --font-script: "Pacifico", cursive;  /* Similar to TT Milk Script */
}

/* -----------------------------------------------------
    GLOBAL RESET
----------------------------------------------------- */
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--gray-dark);
}

/* -----------------------------------------------------
    NAVBAR (Authenticated)
----------------------------------------------------- */
.navbar {
  background-color: white;
  padding: 0 40px;
  height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Navbar on landing page - no border */
.landing-body .navbar {
  border-bottom: none;
}

.navbar .nav-left {
  display: flex;
  align-items: center;
  flex: 1;
}

.navbar .nav-logo-link {
  display: flex;
  align-items: center;
}

.navbar .nav-logo-small {
  height: 50px;
  width: auto;
}

.navbar .nav-links {
  display: flex;
  gap: 8px;
  justify-content: center;
}

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

.navbar .nav-link {
  color: var(--gray-dark);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background-color 0.2s, color 0.2s;
}

.navbar .nav-link:hover {
  background-color: var(--pink-mid);
  color: white;
}

.navbar .nav-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.navbar .nav-user {
  font-size: 0.9rem;
  color: var(--gray-dark);
  font-weight: 500;
}

.navbar .nav-role-badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.navbar .nav-role-badge.manager {
  background-color: var(--pink-light);
  color: var(--green-dark);
}

.navbar .nav-login-btn {
  background-color: var(--green-soft);
  padding: 8px 20px;
  border-radius: 20px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s;
}

.navbar .nav-login-btn:hover {
  background-color: var(--green-dark);
}

.navbar .nav-logout-btn {
  background-color: var(--pink-light);
  padding: 8px 18px;
  border-radius: 8px;
  color: var(--green-dark);
  border: none;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background-color 0.2s;
}

.navbar .nav-logout-btn:hover {
  background-color: var(--rose);
  color: white;
}

/* -----------------------------------------------------
    BUTTONS
----------------------------------------------------- */
.button {
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: 0.2s;
}

.button-primary {
  background-color: var(--rose);
  color: white;
}

.button-primary:hover {
  background-color: #b22049;
}

.button-secondary {
  background-color: var(--sage);
  color: white;
}

.button-secondary:hover {
  background-color: #87a58a;
}

/* -----------------------------------------------------
    GLOBAL FORM ELEMENTS
----------------------------------------------------- */
input, select, textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  margin: 10px 0;
  font-family: var(--font-body);
  box-sizing: border-box;
}

label {
  font-weight: 600;
  margin-top: 15px;
  display: block;
}

input[type="submit"] {
  background-color: var(--pink-mid);
  color: white;
  border: none;
}

input[type="submit"]:hover {
  background-color: var(--rose);
}

/* -----------------------------------------------------
    LOGIN PAGE
----------------------------------------------------- */

.login-body {
  background-color: var(--pink-light);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 60px 20px;
}

.login-wrapper {
  width: 100%;
  max-width: 450px;
}

.login-back {
  display: inline-block;
  color: var(--green-dark);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 20px;
  transition: color 0.2s;
}

.login-back:hover {
  color: var(--sage);
}

.login-card {
  background-color: var(--cream);
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.login-logo {
  width: 120px;
  margin-bottom: 20px;
}

.login-title {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--green-dark);
  margin: 0 0 8px 0;
}

.login-subtitle {
  color: #666;
  margin: 0 0 25px 0;
  font-size: 0.95rem;
}

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

.login-label {
  text-align: left;
  display: block;
  margin: 0 0 6px 0;
  font-weight: 600;
  color: var(--gray-dark);
  font-size: 0.9rem;
}

.login-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 2px solid #e0e0e0;
  margin-bottom: 18px;
  font-family: var(--font-body);
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.login-input:focus {
  outline: none;
  border-color: var(--sage);
}

.login-button {
  width: 100%;
  padding: 14px;
  border-radius: 30px;
  border: none;
  background-color: var(--sage);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: 0.2s ease;
  margin-top: 8px;
}

.login-button:hover {
  background-color: var(--green-dark);
  transform: translateY(-2px);
}

.login-link {
  margin-top: 20px;
  font-size: 0.9rem;
  color: #666;
}

.login-link a {
  color: var(--sage);
  font-weight: 600;
  text-decoration: none;
}

.login-link a:hover {
  color: var(--green-dark);
  text-decoration: underline;
}

.login-error {
  background-color: #fee2e2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.login-error span {
  font-size: 1.1rem;
}

.error-message {
  background-color: #ffe0e0;
  color: #c00;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  text-align: center;
}

/* Registration details page */
.register-wrapper {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
}

.register-card {
  background-color: var(--cream);
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* -----------------------------------------------------
   LANDING PAGE (CLEAN + MINIMAL)
----------------------------------------------------- */

.landing-body {
  background-color: var(--cream);
  margin: 0;
  font-family: var(--font-body);
}

/* Hero section - pink background with content */
.landing-hero {
  background-color: var(--pink-light);
  display: flex;
  flex-direction: column;
}

/* Header bar - matches mission section */
.landing-header {
  background-color: var(--cream);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.landing-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.landing-logo {
  height: 50px;
  width: auto;
}

.landing-header-login {
  color: var(--green-dark);
  padding: 10px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--green-dark);
  transition: all 0.2s;
}

.landing-header-login:hover {
  background-color: var(--green-dark);
  color: white;
}

/* Logo in navbar (for other pages) */
.nav-logo-small {
  height: 50px;
  width: auto;
}


/* ---------------- HERO CONTENT ---------------- */

.landing-hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 60px 50px;
}

.landing-hero-text {
  text-align: left;
}

.landing-heading {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--green-dark);
  margin: 0 0 20px 0;
  line-height: 1.2;
}

.landing-tagline {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 30px;
}

.landing-hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.landing-btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background-color: var(--sage);
  color: white;
  font-weight: 600;
  border-radius: 30px;
  text-decoration: none;
  transition: 0.2s ease;
}

.landing-btn-primary:hover {
  background-color: var(--green-dark);
  transform: translateY(-2px);
}

.landing-btn-secondary {
  display: inline-block;
  padding: 14px 32px;
  background-color: transparent;
  color: var(--green-dark);
  font-weight: 600;
  border-radius: 30px;
  text-decoration: none;
  border: 2px solid var(--green-dark);
  transition: 0.2s ease;
}

.landing-btn-secondary:hover {
  background-color: var(--green-dark);
  color: white;
  transform: translateY(-2px);
}

.landing-hero-image img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* Responsive - stack on mobile */
@media (max-width: 900px) {
  .landing-hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 30px 20px 50px;
  }
  
  .landing-hero-text {
    text-align: center;
  }
  
  .landing-hero-buttons {
    justify-content: center;
  }
  
  .landing-hero-image img {
    max-width: 100%;
  }
}


/* Mission Section */
.landing-mission {
  background-color: var(--cream);
  padding: 50px 20px 60px;
}

.landing-mission-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.landing-mission h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--green-dark);
  margin: 0 0 18px 0;
}

.landing-mission p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #555;
  margin: 0;
}

/* Landing Footer */
.landing-footer {
  background-color: var(--green-dark);
  color: white;
  text-align: center;
  padding: 25px 20px;
}

.landing-footer .footer-social {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 12px;
}

.landing-footer .footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 2px solid white;
  border-radius: 50%;
  color: white;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.2s;
}

.landing-footer .footer-social a:hover {
  background-color: white;
  color: var(--sage);
}

.landing-footer p {
  margin: 0;
  font-size: 0.9rem;
}

/* -----------------------------------------------------
    DONATION PAGE (PUBLIC)
----------------------------------------------------- */
.donate-body {
  background-color: var(--pink-light);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.donate-wrapper {
  width: 100%;
  max-width: 500px;
}

.donate-back {
  display: inline-block;
  color: var(--green-dark);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 20px;
  transition: color 0.2s;
}

.donate-back:hover {
  color: var(--sage);
}

.donate-card {
  background-color: var(--cream);
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.donate-logo {
  width: 100px;
  margin-bottom: 20px;
}

.donate-heading {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--green-dark);
  margin: 0 0 10px 0;
}

.donate-tagline {
  font-size: 1rem;
  color: #666;
  margin-bottom: 30px;
}

.donate-form {
  text-align: left;
}

.donate-form label {
  display: block;
  font-weight: 600;
  margin: 0 0 6px 0;
  color: var(--gray-dark);
  font-size: 0.9rem;
}

.donate-form input,
.donate-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  box-sizing: border-box;
  margin-bottom: 18px;
  transition: border-color 0.2s;
}

.donate-form input:focus,
.donate-form textarea:focus {
  outline: none;
  border-color: var(--sage);
}

.donate-submit-btn {
  width: 100%;
  padding: 14px;
  margin-top: 8px;
  background-color: var(--sage);
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background-color 0.2s, transform 0.2s;
}

.donate-submit-btn:hover {
  background-color: var(--green-dark);
  transform: translateY(-2px);
}

.donate-hint {
  font-size: 0.8rem;
  color: #888;
  margin: -8px 0 15px 0;
  font-style: italic;
}

.field-hint {
  font-size: 0.75rem;
  color: #999;
  font-weight: normal;
}

.donate-note {
  margin-top: 25px;
  font-size: 0.85rem;
  color: #888;
  font-style: italic;
}

/* -----------------------------------------------------
    DASHBOARD (Logged-in Home - Navigation Hub)
----------------------------------------------------- */
.dashboard-body {
  background-color: var(--cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Dashboard Header */
.dashboard-header {
  background-color: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.dashboard-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dashboard-logo-link {
  display: flex;
  align-items: center;
}

.dashboard-logo {
  height: 45px;
  width: auto;
}

.dashboard-header-right {
  display: flex;
  align-items: center;
  gap: 25px;
}

.dashboard-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-username {
  font-weight: 500;
  color: var(--gray-dark);
}

.role-badge-header {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.role-badge-header.manager {
  background-color: var(--pink-light);
  color: var(--green-dark);
}

.role-badge-header.member {
  background-color: var(--sage);
  color: white;
}

.dashboard-logout-btn {
  background-color: var(--pink-light);
  color: var(--green-dark);
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s;
}

.dashboard-logout-btn:hover {
  background-color: var(--rose);
  color: white;
}

.dashboard-logout-btn i {
  margin-right: 6px;
}

/* Dashboard Main */
.dashboard-main {
  flex: 1;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
  width: 100%;
  box-sizing: border-box;
}

/* Welcome Section */
.dashboard-welcome-section {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 30px;
  background: linear-gradient(135deg, var(--pink-light) 0%, #ffeae6 100%);
  padding: 35px 40px;
  border-radius: 20px;
}

.dashboard-welcome-image img {
  width: 240px;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.dashboard-welcome-text h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--green-dark);
  margin: 0 0 10px 0;
}

.dashboard-welcome-text p {
  font-size: 1rem;
  color: #555;
  margin: 0;
  line-height: 1.6;
}

.analytics-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  padding: 10px 20px;
  background: var(--sage);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.analytics-link:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}

.analytics-link i {
  font-size: 1rem;
}

/* Navigation Hub Header */
.nav-hub-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

.nav-hub-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--green-dark);
  margin: 0;
  white-space: nowrap;
}

.nav-hub-divider {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, #ddd, transparent);
}

/* Navigation Hub Cards - Horizontal Layout */
.nav-hub {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.nav-hub-card {
  background-color: white;
  border-radius: 14px;
  padding: 20px 24px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid #eee;
}

.nav-hub-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  border-color: var(--pink-mid);
}

.nav-hub-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-hub-icon-wrap i {
  font-size: 1.3rem;
  color: var(--green-dark);
}

.nav-hub-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-hub-label {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--green-dark);
}

.nav-hub-desc {
  font-size: 0.85rem;
  color: #888;
  line-height: 1.4;
}

@media (max-width: 800px) {
  .nav-hub {
    grid-template-columns: 1fr;
  }
  
  .dashboard-welcome-section {
    flex-direction: column;
    text-align: center;
    padding: 30px 25px;
  }
  
  .dashboard-welcome-image img {
    width: 200px;
  }
}

@media (max-width: 500px) {
  .dashboard-header-inner {
    padding: 15px 20px;
    flex-direction: column;
    gap: 15px;
  }
  
  .nav-hub-card {
    padding: 18px 20px;
  }
}

/* -----------------------------------------------------
    CRUD PAGES (Participants, Events, etc.)
----------------------------------------------------- */
.page-container {
  max-width: 1450px;
  min-width: 900px;
  margin: 0 auto;
  padding: 40px 30px;
  flex-grow: 1;
}

.content-centered {
  max-width: 600px;
  margin: 0 auto;
}

.completed-surveys-section {
  max-width: 700px;
  margin: 30px auto 0 auto;
}

.completed-surveys-section h3 {
  margin-bottom: 15px;
}

.completed-surveys-section .table-wrapper {
  min-width: auto;
  min-height: auto;
}

.data-table.compact {
  font-size: 0.95rem;
}

.data-table.compact th,
.data-table.compact td {
  padding: 12px 15px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--green-dark);
  margin: 0;
}

.page-subtitle {
  color: #666;
  margin: 5px 0 0 0;
  font-size: 0.95rem;
}

.btn-add {
  background-color: var(--sage);
  color: white;
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s, transform 0.2s;
}

.btn-add:hover {
  background-color: var(--green-dark);
  transform: translateY(-2px);
}

/* Search Bar */
.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: white;
  border-radius: 12px;
  padding: 12px 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid #eee;
}

.search-icon {
  color: #aaa;
  font-size: 1rem;
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  font-family: var(--font-body);
  padding: 8px 0;
  margin: 0;
}

.search-bar input::placeholder {
  color: #bbb;
}

.search-count {
  font-size: 0.85rem;
  color: #888;
  white-space: nowrap;
}

.search-btn {
  padding: 8px 18px;
  background: var(--sage);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.search-btn:hover {
  background: var(--green-dark);
}

.search-clear {
  padding: 8px 14px;
  background: #f0f0f0;
  color: #666;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.85rem;
  transition: background 0.2s;
}

.search-clear:hover {
  background: #e0e0e0;
}

/* Data Table */
.table-wrapper {
  background-color: white;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  overflow: visible;
  min-height: 400px;
  width: 100%;
  min-width: 900px;
}

.data-table {
  width: 100%;
  min-width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.data-table th,
.data-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
}

.data-table td:first-child,
.data-table th:first-child {
  width: 12%;
}

.data-table td:nth-child(2),
.data-table th:nth-child(2) {
  width: 18%;
}

.data-table td:last-child,
.data-table th:last-child {
  text-align: right;
  vertical-align: middle;
}

.data-table th {
  background-color: var(--pink-light);
  font-weight: 600;
  color: var(--green-dark);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-table tr {
  border-bottom: 1px solid #eee;
}

.data-table td {
  color: #444;
}

.data-table tbody tr:hover {
  background-color: #fafafa;
}

.data-table tbody tr:last-child {
  border-bottom: none;
}

/* Action Buttons */
.actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  height: 100%;
}

.inline-form {
  display: inline-flex;
  margin: 0;
  padding: 0;
}

.btn-edit {
  background-color: var(--blue);
  color: white;
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background-color 0.2s;
}

.btn-edit:hover {
  background-color: #7a9eb0;
}

.btn-delete {
  background-color: var(--rose);
  color: white;
  padding: 6px 14px;
  border-radius: 6px;
  border: none;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background-color 0.2s;
}

.btn-delete:hover {
  background-color: #a01c40;
}

/* Empty State */
.empty-state {
  background-color: white;
  border-radius: 16px;
  padding: 60px 20px;
  text-align: center;
  color: #666;
}

.empty-state-icon {
  margin-bottom: 15px;
}

.empty-state-icon i {
  font-size: 3rem;
  color: var(--sage);
}

/* Form Card */
.form-card {
  background-color: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  max-width: 600px;
}

/* Wrapper for form pages to center both title and form */
.form-page-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.form-page-wrapper .page-header {
  justify-content: flex-start;
}

.form-page-wrapper .form-card {
  margin: 0;
}

.crud-form .form-group {
  margin-bottom: 20px;
}

.crud-form label {
  display: block;
  font-weight: 600;
  color: var(--gray-dark);
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.crud-form input,
.crud-form select,
.crud-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.2s;
  margin: 0;
}

.crud-form input:focus,
.crud-form select:focus,
.crud-form textarea:focus {
  outline: none;
  border-color: var(--sage);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.btn-cancel {
  padding: 12px 28px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  color: #666;
  background-color: #eee;
  transition: background-color 0.2s;
}

.btn-cancel:hover {
  background-color: #ddd;
}

.btn-submit {
  padding: 12px 28px;
  border-radius: 25px;
  border: none;
  font-weight: 600;
  color: white;
  background-color: var(--sage);
  font-family: var(--font-body);
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}

.btn-submit:hover {
  background-color: var(--green-dark);
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .page-header {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
}

/* -----------------------------------------------------
    PROFILE PAGE (Regular User View)
----------------------------------------------------- */
.profile-card {
  background-color: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.profile-empty {
  text-align: center;
  padding: 20px;
}

.profile-empty h2 {
  font-family: var(--font-display);
  color: var(--green-dark);
  margin: 0 0 15px 0;
}

.profile-empty p {
  color: #666;
  margin: 0 0 10px 0;
}

.profile-empty .btn-submit {
  margin-top: 20px;
  display: inline-block;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 25px;
  border-bottom: 2px solid var(--pink-light);
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--sage);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 600;
}

.profile-name h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--green-dark);
  margin: 0 0 5px 0;
}

.profile-name p {
  color: #888;
  margin: 0;
  font-size: 0.95rem;
}

.profile-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.profile-detail {
  background-color: var(--cream);
  padding: 15px 20px;
  border-radius: 12px;
}

.detail-label {
  display: block;
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-value {
  font-size: 1.05rem;
  color: var(--gray-dark);
  font-weight: 500;
}

.profile-actions {
  text-align: center;
}

/* Quick Links */
.profile-links {
  margin-top: 30px;
}

.profile-links h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--green-dark);
  margin: 0 0 20px 0;
}

.profile-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.profile-link-card {
  background-color: white;
  border-radius: 12px;
  padding: 25px 20px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.link-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.link-icon-wrap i {
  font-size: 1.4rem;
  color: var(--green-dark);
}

.link-text {
  color: var(--green-dark);
  font-weight: 600;
  font-size: 0.95rem;
}

@media (max-width: 600px) {
  .profile-details {
    grid-template-columns: 1fr;
  }
  
  .profile-links-grid {
    grid-template-columns: 1fr;
  }
  
  .profile-header {
    flex-direction: column;
    text-align: center;
  }
}

/* -----------------------------------------------------
    EVENTS PAGE
----------------------------------------------------- */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
}

.event-card {
  background-color: white;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  position: relative;
}

.event-date-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--pink-light);
  color: var(--green-dark);
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85rem;
}

.event-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--green-dark);
  margin: 0 0 10px 0;
  padding-right: 80px;
}

.event-description {
  color: #666;
  font-size: 0.95rem;
  margin: 0 0 15px 0;
}

.event-details {
  display: flex;
  gap: 15px;
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 15px;
}

.event-capacity {
  margin-bottom: 15px;
}

.capacity-bar {
  height: 8px;
  background-color: #eee;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 5px;
}

.capacity-fill {
  height: 100%;
  background-color: var(--sage);
  border-radius: 4px;
}

.event-capacity span {
  font-size: 0.85rem;
  color: #888;
}

.event-actions {
  display: flex;
  gap: 10px;
}

.btn-register {
  flex: 1;
  padding: 10px;
  background-color: var(--sage);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background-color 0.2s;
}

.btn-register:hover {
  background-color: var(--green-dark);
}

.btn-full {
  flex: 1;
  padding: 10px;
  background-color: #ccc;
  color: #666;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: not-allowed;
}

/* -----------------------------------------------------
    SURVEYS PAGE
----------------------------------------------------- */
.rating-badge {
  background-color: var(--pink-light);
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.85rem;
}

.rating-badge.recommend {
  background-color: var(--sage);
  color: white;
}

.survey-card {
  background-color: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  margin-bottom: 20px;
}

.survey-card-header {
  margin-bottom: 20px;
}

.survey-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.survey-badge.pending {
  background-color: var(--peach);
  color: white;
}

.survey-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--green-dark);
  margin: 0;
}

.survey-question {
  margin-bottom: 25px;
}

.survey-question label {
  display: block;
  font-weight: 600;
  color: var(--gray-dark);
  margin-bottom: 10px;
}

.rating-input {
  display: flex;
  gap: 8px;
}

.rating-input input[type="radio"] {
  display: none;
}

.rating-input label {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #eee;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

.rating-input input[type="radio"]:checked + label {
  background-color: var(--sage);
  color: white;
}

.rating-input label:hover {
  background-color: var(--pink-light);
}

.rating-input.wide label {
  width: 35px;
  height: 35px;
  font-size: 0.9rem;
}

.survey-view-header {
  border-bottom: 2px solid var(--pink-light);
  padding-bottom: 20px;
  margin-bottom: 25px;
}

.survey-view-header h2 {
  font-family: var(--font-display);
  color: var(--green-dark);
  margin: 0 0 8px 0;
}

.survey-view-header p {
  color: #888;
  margin: 0;
}

.survey-scores {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 25px;
}

.score-item {
  text-align: center;
  padding: 20px;
  background-color: var(--cream);
  border-radius: 12px;
}

.score-label {
  display: block;
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 8px;
}

.score-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green-dark);
}

.score-value.highlight {
  color: var(--sage);
}

.survey-comments {
  background-color: var(--cream);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 25px;
}

.survey-comments h4 {
  margin: 0 0 10px 0;
  color: var(--green-dark);
}

.survey-comments p {
  margin: 0;
  color: #555;
  font-style: italic;
}

/* -----------------------------------------------------
    MILESTONES PAGE
----------------------------------------------------- */
.milestone-icon {
  font-size: 1.5rem;
}

.milestones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.milestone-card {
  background-color: white;
  border-radius: 16px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s;
}

.milestone-card.achieved {
  border: 3px solid var(--sage);
}

.milestone-card.locked {
  opacity: 0.6;
}

.milestone-card:hover {
  transform: translateY(-4px);
}

.milestone-icon-large {
  font-size: 3rem;
  margin-bottom: 15px;
}

.milestone-icon-wrap {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
}

.milestone-icon-wrap i {
  font-size: 2rem;
  color: white;
}

.milestone-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--green-dark);
  margin: 0 0 10px 0;
}

.milestone-card p {
  color: #666;
  font-size: 0.9rem;
  margin: 0 0 15px 0;
}

.milestone-date {
  display: inline-block;
  background-color: var(--sage);
  color: white;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
}

.milestone-locked {
  color: #999;
  font-size: 0.85rem;
}

/* -----------------------------------------------------
    DONATIONS & USERS PAGE
----------------------------------------------------- */
.stats-badge {
  background-color: var(--sage);
  color: white;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 1.1rem;
}

.amount {
  font-weight: 700;
  color: var(--sage);
}

/* Supporters Page (Participant View) */
.gratitude-card {
  background: none;
  padding: 30px 40px;
  text-align: center;
  margin-bottom: 30px;
}

.gratitude-icon {
  margin-bottom: 15px;
}

.gratitude-icon i {
  font-size: 2.5rem;
  color: var(--rose);
}

.gratitude-card p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #555;
  margin: 0;
  max-width: 700px;
  margin: 0 auto;
}

/* My Donations Section */
.my-donations-section {
  background-color: var(--pink-light);
  border-radius: 16px;
  padding: 25px 30px;
  margin-bottom: 30px;
}

.my-donations-section h2 {
  font-family: var(--font-display);
  color: var(--green-dark);
  font-size: 1.3rem;
  margin: 0 0 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.my-donations-section h2 i {
  color: var(--sage);
}

.my-donations-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 15px;
}

.my-donation-card {
  background: white;
  border-radius: 12px;
  padding: 15px 20px;
  min-width: 150px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.my-donation-amount {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--green-dark);
}

.my-donation-date {
  font-size: 0.85rem;
  color: #888;
  margin-top: 4px;
}

.my-donations-thanks {
  font-style: italic;
  color: var(--green-dark);
  margin: 0;
  font-size: 0.95rem;
}

.supporters-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 40px;
}

.supporter-card {
  background-color: white;
  border-radius: 8px;
  padding: 15px 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  border: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.supporter-name {
  font-weight: 600;
  color: var(--green-dark);
  font-size: 1rem;
  margin-bottom: 0;
}

.supporter-date {
  font-size: 0.85rem;
  color: #888;
}

.supporter-date i {
  margin-right: 6px;
  color: var(--sage);
}

.donate-cta {
  text-align: center;
  padding: 30px;
  background-color: white;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.donate-cta p {
  margin: 0 0 15px 0;
  color: #666;
  font-size: 1rem;
}

.results-info {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin: 30px 0;
}

.pagination-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background-color: white;
  color: var(--green-dark);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: all 0.2s;
}

.pagination-btn:hover {
  background-color: var(--sage);
  color: white;
}

.pagination-pages {
  display: flex;
  align-items: center;
  gap: 5px;
}

.pagination-page {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  color: var(--gray-dark);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.pagination-page:hover {
  background-color: var(--pink-light);
}

.pagination-page.active {
  background-color: var(--sage);
  color: white;
}

.pagination-ellipsis {
  color: #888;
  padding: 0 5px;
}

.message-cell {
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.role-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.role-badge.manager {
  background-color: var(--purple);
  color: white;
}

.role-badge.user {
  background-color: var(--pink-light);
  color: var(--gray-dark);
}

/* -----------------------------------------------------
    FOOTER
----------------------------------------------------- */
/* Site Footer */
.site-footer {
  background-color: var(--green-dark);
  color: white;
  text-align: center;
  padding: 25px 20px;
  margin-top: auto;
}

.site-footer .footer-social {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 12px;
}

.site-footer .footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 2px solid white;
  border-radius: 50%;
  color: white;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.2s;
  background: transparent;
}

.site-footer .footer-social a:hover {
  background-color: white;
  color: var(--sage);
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
  color: white;
}
