:root {
  --primary-green: #2e7d32;
  --light-green: #e8f5e9;
  --accent-green: #66bb6a;
  --bg-color: #f1f8e9;
  --text-dark: #1b5e20;
  --card-bg: rgba(255, 255, 255, 0.9);
  --glass-bg: rgba(255, 255, 255, 0.75);
  --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

body {
  font-family: 'Montserrat', sans-serif; /* Assuming Outfit is available or fallback */
  background-color: var(--bg-color);
  margin: 0;
  padding: 0;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3 {
  color: var(--text-dark);
}

.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #a5d6a7 0%, #e8f5e9 100%);
}

.auth-box {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 400px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.auth-box h1 {
  margin-bottom: 0.5rem;
  font-size: 2rem;
}

.form-group {
  margin-bottom: 1.2rem;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
  color: var(--text-dark);
}

.form-group input {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #c8e6c9;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
  box-sizing: border-box; /* Fix padding issue */
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.2);
}

.btn-primary {
  width: 100%;
  padding: 0.9rem;
  background: var(--primary-green);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.btn-primary:hover {
  background: #1b5e20;
  transform: translateY(-2px);
}

.link-text {
  margin-top: 1rem;
  font-size: 0.9rem;
}

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

/* Dashboard Layout */
.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  width: 95%;
}

.sidebar {
  background: var(--primary-green);
  color: white;
  padding: 2.5rem;
  box-shadow: var(--shadow);
  position: fixed;
  top: 0;
  left: -380px;
  width: 280px;
  height: 100vh;
  z-index: 2000;
  transition: left 0.3s ease;
  border-radius: 0 20px 20px 0;
}

.sidebar.active {
    left: 0;
}

.sidebar h2 {
  text-align: center;
    color: white;
    margin-top: 0;
}

.nav-links {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
}

.nav-links li {
  margin-bottom: 10px;
}

.nav-links li a {
  display: block;
  padding: 1rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.2s;
}

.nav-links li a:hover, .nav-links li a.active {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.main-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  text-align: center;
  border: 1px solid #e0f2f1;
}

.stat-card h3 {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-card .value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-green);
  margin: 0.5rem 0;
}

.content-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.event-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.event-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border: 1px solid #eee;
  border-radius: 12px;
  transition: all 0.2s;
}

.event-item:hover {
  border-color: var(--accent-green);
  background: #f9fff9;
}

.event-info h4 {
  margin: 0 0 0.3rem 0;
  font-size: 1.1rem;
}

.event-info p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

.btn-small {
  padding: 0.5rem 1rem;
  background: var(--primary-green);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn-small:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Admin Styles */
.user-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.user-table th, .user-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.user-table th {
    color: var(--text-dark);
}

.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal.active {
    display: flex;
}
.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
}
.close-btn {
    float: right;
    cursor: pointer;
    font-size: 1.5rem;
}
/* Hamburger Menu for Dashboards */
.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.2rem 1.2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-dark);
    position: sticky;
    top: 1rem;
    z-index: 1000;
    margin: 0 auto;
    width: 95%;
    max-width: 1200px;
    border-radius: 40px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.dash-hamburger {
    background: var(--primary-green);
    border: none;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    width: 45px;
    height: 45px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.dash-hamburger:hover {
    transform: scale(1.05);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    z-index: 1500;
}

.sidebar-overlay.active {
    display: block;
}

.dash-header h2{
  text-align: center;
  width: 100%;
  font-size: 2rem;
}

@media (max-width: 1024px) {
    .dashboard-container {
        padding: 1.5rem;
    }
    .dash-header {
        width: calc(100% - 2rem);
        margin-left: 10px;
    }
}

.welcome-section h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.stat-card {
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
