/* ===== Global Styles ===== */
:root {
    --primary-color: #1877F2; /* Social Blue */
    --secondary-color: #25D366; /* Social Green */
    --red-color: #cc0000; /* Red for errors or cancellations */
    --light-gray: #F0F2F5;
    --dark-gray: #1C1E21;
    --white: #FFFFFF;
    --text-color: #1C1E21;
    --border-color: #DDDFE2;
    --gray: #666;
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light-gray);
    color: var(--text-color);
    line-height: 1.6;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 14px;
}

/* Primary Button (Blue) */
.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #166FE5; /* Darker blue */
    transform: scale(1.05);
}

/* Secondary Button (Grey) */
.btn-secondary {
    background-color: var(--secondary-color); /* Social Green */
    color: var(--white);
    border: none;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

/* Logout Button (Red) */
.btn-logout {
    background-color: var(--red-color);
    color: var(--white);
}

.btn-logout:hover {
    background-color: #a00000;
}

/* ===== Header ===== */
header {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 24px;
    font-weight: bold;
}

.logo i {
    margin-right: 10px;
    font-size: 28px;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--secondary-color);
}

/* ===== Search Bar ===== */
.search-container {
    flex-grow: 1;
    max-width: 500px;
    margin: 0 20px;
}

.search-container form {
    display: flex;
    align-items: center;
    background-color: var(--white);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
}

.search-container form:focus-within {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.search-container input[type="text"] {
    width: 100%;
    padding: 12px 20px;
    border: none;
    font-size: 16px;
    color: var(--dark-gray);
    background-color: transparent;
    outline: none;
}

.search-container input[type="text"]::placeholder {
    color: #999;
}

.search-container button {
    padding: 12px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s; 
	width: 150px;
}

.search-container button:hover {
    background-color: #166FE5;
    transform: scale(1.05);
}

.search-container button i {
    margin-right: 8px;
}



/* ===== Cards ===== */
.card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.card h2, .card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* ===== Forms ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-gray);
}

#location,
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

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

.form-group small {
    display: block;
    color: var(--gray);
    font-size: 12px;
    margin-top: 5px;
}

/* ===== Events Grid ===== */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* ===== Event Card ===== */
.event-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.event-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    flex-shrink: 0;
}

.event-card-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-card-content h3 {
    margin: 0 0 10px 0;
    color: var(--dark-gray);
    font-size: 18px;
}

.event-card-content p {
    margin: 8px 0;
    color: var(--gray);
    font-size: 14px;
}

/* ===== Event Meta ===== */
.event-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--light-gray);
    width: 100%;
    flex-shrink: 0;
}

.event-meta span {
    color: var(--gray);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.event-meta .btn {
    margin-left: 10px;
}

/* ===== Cancelled and Past Events ===== */
.event-card[style*="opacity"]:not(.past-event)::after {
    content: "Cancelled";
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(204, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    z-index: 1;
}

.event-card[style*="opacity"].past-event::after {
    content: "Past Event";
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(102, 102, 102, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    z-index: 1;
}

.event-card.private-event::after {
    content: "Private";
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(255, 165, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    z-index: 1;
}

/* ===== Dashboard ===== */
.dashboard-section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.dashboard-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.dashboard-section h2 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-gray);
}

.dashboard-section h2 i {
    font-size: 20px;
}

/* ===== Footer ===== */
footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 30px 0;
    margin-top: 50px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: var(--white);
    font-size: 24px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--secondary-color);
}

.copyright {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== Utility Classes ===== */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* Language Selector Styling */
.language-selector {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.language-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.language-button:hover {
    background-color: var(--light-gray);
}

.language-dropdown {
    display: none; /* Hide by default */
    position: absolute;
    right: 0;
    top: 100%;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    min-width: 150px;
}

/* Show dropdown on hover over the language selector */
.language-selector:hover .language-dropdown {
    display: block;
}

.language-dropdown .language-option {
    display: block;
    width: 100%;
    padding: 8px 12px;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    transition: background-color 0.3s;
}

.language-dropdown .language-option:hover {
    background-color: var(--light-gray);
}



/* ==========================================
   LEFT VERTICAL SIDEBAR MENU - CSS
   ========================================== */

:root {
  --sidebar-rail-width: 68px;
  --sidebar-expanded-width: 240px;
  --sidebar-bg: #0f172a;
  --sidebar-border: #1e293b;
  --sidebar-text: #94a3b8;
  --sidebar-text-active: #ffffff;
  --sidebar-accent: #1877f2;
  --sidebar-accent-soft: rgba(24, 119, 242, 0.15);
  --sidebar-hover-bg: rgba(255, 255, 255, 0.05);
}

/* 1. Base Sidebar Layout */
.sidebar-nav {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: var(--sidebar-rail-width);
  background-color: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  overflow-x: hidden;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
}

/* Expand on Hover (Desktop) or when locked via .expanded class */
.sidebar-nav:hover,
.sidebar-nav.expanded {
  width: var(--sidebar-expanded-width);
}

/* 2. Header & Toggle Button */
.sidebar-header {
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid var(--sidebar-border);
  gap: 16px;
  flex-shrink: 0;
}

.sidebar-toggle-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: var(--sidebar-text);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.sidebar-toggle-btn:hover {
  background: var(--sidebar-hover-bg);
  color: var(--sidebar-text-active);
}

.sidebar-brand-title {
  color: var(--sidebar-text-active);
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.sidebar-nav:hover .sidebar-brand-title,
.sidebar-nav.expanded .sidebar-brand-title {
  opacity: 1;
}

/* 3. Navigation Links List */
.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 10px;
  flex: 1;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 46px;
  border-radius: 10px;
  color: var(--sidebar-text);
  text-decoration: none;
  padding: 0 12px;
  gap: 16px;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.nav-label {
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.sidebar-nav:hover .nav-label,
.sidebar-nav.expanded .nav-label {
  opacity: 1;
}

/* Hover & Active Highlight States */
.nav-item:hover {
  background: var(--sidebar-hover-bg);
  color: var(--sidebar-text-active);
}

.nav-item.active {
  background: var(--sidebar-accent-soft);
  color: var(--sidebar-accent);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 8px;
  bottom: 8px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--sidebar-accent);
}

/* 4. Tooltips (Visible only when sidebar is collapsed) */
.nav-item::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 14px);
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.sidebar-nav:not(:hover):not(.expanded) .nav-item:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* 5. Mobile Drawer Overrides (< 768px) */
@media (max-width: 767px) {
  .sidebar-nav {
    transform: translateX(-100%);
    width: var(--sidebar-expanded-width) !important;
  }

  .sidebar-nav.mobile-open {
    transform: translateX(0);
  }

  .sidebar-nav .nav-label,
  .sidebar-nav .sidebar-brand-title {
    opacity: 1 !important;
  }

  .nav-item::after {
    display: none !important; /* Hide tooltips on mobile */
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .sidebar-backdrop.active {
    opacity: 1;
    pointer-events: auto;
  }
}

/* ===== Dashboard Links ===== */
.dashboard-links {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.dashboard-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    font-weight: 500;
    font-size: 16px;
}

.dashboard-links a:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dashboard-links a i {
    font-size: 18px;
}

/* ===== Classic Minimalist Sidebar ===== */
.classic-minimalist-sidebar {
    display: flex;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.classic-minimalist-sidebar .left-column {
    flex: 2;
    padding: 25px;
}

.classic-minimalist-sidebar .right-column {
    flex: 1;
    padding: 25px;
    border-left: 1px solid var(--border-color);
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.classic-minimalist-sidebar h2 {
    margin-top: 0;
    color: var(--dark-gray);
    font-size: 1.5em;
}

.classic-minimalist-sidebar .details p {
    margin: 12px 0;
    color: var(--text-color);
    line-height: 1.6;
}

.classic-minimalist-sidebar .status {
    color: var(--secondary-color);
    font-weight: bold;
    margin: 12px 0;
    align-self: flex-start;
}

.classic-minimalist-sidebar button {
    background-color: var(--red-color);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 15px;
    font-weight: bold;
    align-self: flex-start;
}

.classic-minimalist-sidebar button:hover {
    background-color: #a00000;
}

/* ===== Participant Card ===== */
.card.participant {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.card.participant:hover {
    background-color: var(--light-gray);
    transform: translateX(5px);
}

.card.participant i {
    margin-right: 10px;
    color: var(--primary-color);
}

.card.participant span {
    font-weight: 500;
    color: var(--text-color);
}

/* ===== Default Images Radio Button ===== */
.default-images {
    display: flex;
    gap: 10px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.default-images label {
    display: block;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
}

.default-images img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.default-images input[type="radio"]:checked + img {
    border: 2px solid var(--red-color);
}

.default-images input[type="radio"]:checked ~ label:hover {
    border: 2px solid var(--red-color);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(204, 0, 0, 0.5);
}

.default-images input[type="radio"]:checked ~ label:hover img {
    border-radius: 4px;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        margin-top: 15px;
        justify-content: center;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
        margin-top: 20px;
    }

    .search-container {
        margin: 10px 0;
        max-width: 100%;
        width: 100%;
        order: 3;
    }

    .search-container form {
        width: 100%;
        max-width: 500px;
    }

    .dashboard-links {
        flex-direction: column;
        gap: 10px;
    }

    .dashboard-links a {
        width: 100%;
        justify-content: center;
    }

    .fab-btn span {
        display: none;
    }
}

/* Hero Section Styling */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('');
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-bottom: 30px;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-align: center;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    text-align: center;
}

/* Hero Buttons Container */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Cancelled and Past Event Labels */
.event-card.cancelled-event[style*="opacity"]::after,
.event-card.past-event[style*="opacity"]::after {
    content: attr(data-label); /* Use the data-label attribute for dynamic content */
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    z-index: 1;
}

.event-card.cancelled-event[style*="opacity"]::after {
    content: "Cancelled";
    background-color: rgba(204, 0, 0, 0.8); /* Red background */
    color: white;
}

.event-card.past-event[style*="opacity"]::after {
    content: "Past Event";
    background-color: rgba(102, 102, 102, 0.8); /* Grey background */
    color: white;
}

/* Align language selector and login/logout button */
.nav-actions {
    display: flex;
    align-items: center; /* Vertically center items */
    gap: 10px; /* Add spacing between elements */
}

.language-selector {
    display: flex;
    align-items: center;
}

.language-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    padding: 5px;
    display: flex;
    align-items: center;
}

.language-dropdown {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1;
    min-width: 150px;
}

.language-dropdown .language-option {
    display: block;
    width: 100%;
    padding: 8px 12px;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
}

.language-dropdown .language-option:hover {
    background-color: var(--light-gray);
}

.language-selector:hover .language-dropdown {
    display: block;
}

/* Ensure login/logout buttons are aligned with the language selector */
nav ul {
    display: flex;
    align-items: center; /* Vertically center items */
    gap: 10px; /* Add spacing between items */
}

nav ul li {
    margin-left: 0; /* Remove default margin */
}

nav ul li a {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Full-Image Modal Styling */
.full-image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    cursor: pointer;
}

.full-image-container {
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.full-image-container img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
	cursor: pointer;
}

/* Full-Image Modal Styling */
.full-image-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.9);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2000;
	cursor: pointer;
}

.full-image-container {
	max-width: 90%;
	max-height: 90%;
	text-align: center;
}

.full-image-container img {
	max-width: 100%;
	max-height: 80vh;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Discussion Board Styling */
.discussion-board {
	margin-top: 40px;
	background-color: #f9f9f9;
	border-radius: 8px;
	padding: 20px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.discussion-board h2 {
	margin-bottom: 20px;
	color: #1877F2;
	font-size: 24px;
}

.discussion-messages {
	max-height: 400px;
	overflow-y: auto;
	margin-bottom: 20px;
	padding: 10px;
	background-color: white;
	border-radius: 6px;
}

.discussion-message {
	margin-bottom: 15px;
	padding: 10px;
	border-bottom: 1px solid #eee;
}

.discussion-message:last-child {
	border-bottom: none;
}

.discussion-message .message-header {
	display: flex;
	justify-content: space-between;
	margin-bottom: 5px;
	font-size: 14px;
	color: #666;
}

.discussion-message .message-text {
	font-size: 16px;
	line-height: 1.5;
}

.discussion-form {
	display: flex;
	gap: 10px;
}

.discussion-form textarea {
	flex: 1;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 6px;
	resize: vertical;
	min-height: 50px;
	font-family: inherit;
}

.discussion-form button {
	padding: 10px 20px;
	background-color: #1877F2;
	color: white;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-weight: bold;
	transition: background-color 0.3s;
}

.discussion-form button:hover {
	background-color: #166FE5;
}

.not-registered {
	color: #cc0000;
	font-style: italic;
	margin-bottom: 20px;
}

/* Rating Section Styling */
.rating-section {
    margin-top: 30px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.rating-section h3 {
    margin-bottom: 15px;
    color: #1877F2;
    font-size: 20px;
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.rating-stars {
    display: flex;
    gap: 5px;
    font-size: 20px;
}

.rating-text {
    font-size: 16px;
    color: #666;
}

.rating-form {
    margin-top: 20px;
}

.rating-form h4 {
    margin-bottom: 10px;
    font-size: 16px;
    color: #333;
}

.star-rating {
    display: flex;
    gap: 5px;
    font-size: 24px;
}

.rating-star {
    transition: color 0.2s;
}

.rating-star:hover {
    color: #FFD700 !important;
}

/* Star Rating Styling */
.star-rating {
    display: flex;
    gap: 5px;
    font-size: 24px;
    cursor: pointer;
}

.rating-star {
    color: #ccc;
    transition: color 0.2s;
}

/* Hover effect: Highlight all stars up to and including the hovered star */
.star-rating:hover .rating-star {
    color: #FFD700;
}

.star-rating .rating-star:hover ~ .rating-star {
    color: #ccc;
}

/* Icon scaling and coloring */
.threads-icon {
  width: 32px;
  height: 32px;
  fill: white; /* Default Threads color */
  transition: transform 0.2s ease, fill 0.2s ease;
}

/* Google Maps Top Control Input Field */
#map{
	width:100%;
	height:350px;
	border:1px solid black;
}
/* Container wrapper to group controls together */
#map-control-panel {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    margin-left: 10px;
    max-width: calc(100% - 20px); /* Prevents spilling out of map boundary */
}

/* Compact input field */
#map-control-panel input[type="text"] {
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    font-size: 13px;
    height: 36px;
    padding: 0 10px;
    width: 200px; /* Controlled width so buttons fit */
    box-sizing: border-box;
    outline: none;
}

#map-control-panel input[type="text"]:focus {
    border-color: #1a73e8;
}

/* Compact button base styles */
#map-control-panel .button {
    border: none;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    height: 36px;
    padding: 0 10px;
    white-space: nowrap; /* Stops text from wrapping or cutting off */
    box-sizing: border-box;
}

/* Primary Button (Geocode) */
.button-primary {
    background-color: #1a73e8;
    color: #ffffff;
}

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

/* Secondary Button (Clear) */
.button-secondary {
    background-color: #ffffff;
    color: #3c4043;
    border: 1px solid #dadce0;
}

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

/* Beautiful Form Styling */
.beautiful-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.beautiful-form .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.beautiful-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 16px;
}

.beautiful-form label i {
    margin-right: 8px;
    color: #1877F2;
}

.beautiful-form input[type="text"],
.beautiful-form input[type="number"],
.beautiful-form input[type="datetime-local"],
.beautiful-form textarea,
.beautiful-form input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.beautiful-form input[type="text"]:focus,
.beautiful-form input[type="number"]:focus,
.beautiful-form input[type="datetime-local"]:focus,
.beautiful-form textarea:focus {
    outline: none;
    border-color: #1877F2;
    box-shadow: 0 0 0 2px rgba(24, 119, 242, 0.2);
}

.beautiful-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* Checkbox Styling */
.beautiful-form .checkbox-group {
    margin-bottom: 20px;
}

.beautiful-form .checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
    padding: 8px 0;
}

.beautiful-form .checkbox-label input[type="checkbox"] {
    opacity: 0;
    position: absolute;
}

.beautiful-form .checkbox-custom {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border: 2px solid #1877F2;
    border-radius: 4px;
    position: relative;
    transition: background-color 0.3s, border-color 0.3s;
}

.beautiful-form .checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background-color: #1877F2;
    border-color: #1877F2;
}

.beautiful-form .checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '\\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
}

.beautiful-form .label-text {
    display: flex;
    align-items: center;
}

/* File Input Styling */
.beautiful-form .file-input-container {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.beautiful-form .file-input {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.beautiful-form .file-input-label {
    display: block;
    padding: 12px;
    background-color: #f9f9f9;
    color: #333;
    border: 1px dashed #ddd;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
}

.beautiful-form .file-input-label:hover {
    background-color: #f0f0f0;
    border-color: #1877F2;
}

.beautiful-form .file-input-label i {
    margin-right: 8px;
    color: #1877F2;
}

/* Button Styling */
.beautiful-form .auth-buttons {
    display: flex;
    justify-content: flex-end;
    margin-top: 30px;
}

.beautiful-form .btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.beautiful-form .btn-primary {
    background-color: #1877F2;
    color: white;
}

.beautiful-form .btn-primary:hover {
    background-color: #166FE5;
    transform: translateY(-2px);
}

.beautiful-form .btn-primary i {
    color: white;
}

/* ==========================================
   ACTIVE LINK STYLES
   ========================================== */

/* 1. Sidebar Active Link */
.nav-item {
    position: relative; /* Required for the left indicator bar */
}

.nav-item.active {
    background: var(--sidebar-accent-soft); /* Subtle blue background */
    color: var(--sidebar-accent);           /* Primary accent text color */
    font-weight: 600;
}

.nav-item.active .nav-icon {
    color: var(--sidebar-accent);
}

/* Vertical indicator bar on the left edge of active item */
.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: var(--sidebar-accent);
}

/* 2. Top Header Active Link */
nav ul li a.active {
    color: var(--primary-color);
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 4px;
}

/* ===== Harmonized Sidebar Variables (Light Theme) ===== */
:root {
    --sidebar-rail-width: 68px;
    --sidebar-expanded-width: 240px;
    
    /* Harmonized Palette */
    --sidebar-bg: var(--white);                    /* #FFFFFF - matches header/cards */
    --sidebar-border: var(--border-color);        /* #DDDFE2 - matches main borders */
    --sidebar-text: var(--gray);                  /* #65676B - matches muted text */
    --sidebar-text-active: var(--primary-color);  /* #1877F2 - Social Blue */
    --sidebar-accent: var(--primary-color);       /* #1877F2 */
    --sidebar-accent-soft: rgba(24, 119, 242, 0.1); /* 10% opacity blue tint */
    --sidebar-hover-bg: var(--light-gray);        /* #F0F2F5 - matches body background */
}

.container {
    max-width: 1200px; /* Your desired max width */
    width: 100%;
    margin: 0 auto;    /* Centers horizontally in remaining space */
    padding: 20px;
}

/* ==========================================
   ADD THIS AT THE END OF YOUR GLOBAL STYLES
   ========================================== */

/* ===== Mobile Menu Toggle Button ===== */
.mobile-menu-toggle {
    display: none !important;
}

/* ==========================================
   MOBILE RESPONSIVE STYLES (max-width: 767px)
   ========================================== */
@media (max-width: 767px) {
    
    /* ===== Mobile Menu Toggle ===== */
    .mobile-menu-toggle {
        display: flex !important;
        background: none;
        border: none;
        font-size: 20px;
        color: var(--dark-gray);
        cursor: pointer;
        padding: 4px 6px;
        order: 0;
        flex-shrink: 0;
    }
    
    /* ===== Header ===== */
    header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 999;
        padding: 6px 0;
        background-color: var(--white);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
    
    .header-container {
        flex-direction: row;
        flex-wrap: nowrap;
        padding: 0 10px;
        gap: 6px;
        align-items: center;
        justify-content: space-between;
    }
    
    .logo {
        font-size: 16px;
        flex-shrink: 0;
    }
    
    .logo i {
        font-size: 18px;
        margin-right: 4px;
    }
    
    /* Hide desktop navigation */
    nav ul {
        display: none !important;
    }
    
    /* ===== Search Bar ===== */
    .search-container {
        flex: 1;
        margin: 0 4px;
        max-width: 100%;
        order: 2;
        min-width: 0;
    }
    
    .search-container form {
        border-radius: 20px;
        background-color: var(--light-gray);
        box-shadow: none;
        border: 1px solid var(--border-color);
        height: 34px;
    }
    
    .search-container input[type="text"] {
        padding: 4px 10px;
        font-size: 13px;
        height: 34px;
        background-color: transparent;
    }
    
    .search-container input[type="text"]::placeholder {
        font-size: 12px;
    }
    
    .search-container button {
        padding: 4px 10px;
        font-size: 12px;
        width: auto;
        min-width: 44px;
        height: 34px;
        border-radius: 0 20px 20px 0;
    }
    
    .search-container button span {
        display: none;
    }
    
    .search-container button i {
        margin-right: 0;
        font-size: 13px;
    }
    
    /* ===== Language Selector ===== */
    .language-selector {
        order: 3;
        flex-shrink: 0;
    }
    
    .language-button {
        font-size: 16px;
        width: 32px;
        height: 32px;
        padding: 0;
    }
    
    .language-dropdown {
        right: -10px;
        min-width: 120px;
    }
    
    .language-dropdown .language-option {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    /* ===== Logout Button ===== */
    .btn-logout {
        padding: 4px 8px;
        font-size: 12px;
        order: 4;
        flex-shrink: 0;
        min-width: 32px;
        justify-content: center;
    }
    
    .btn-logout span {
        display: none;
    }
    
    .btn-logout i {
        font-size: 15px;
        margin: 0;
    }
    
    .nav-actions {
        gap: 4px;
    }
    
    /* ===== Body ===== */
    body {
        padding-top: 60px;
    }
    
    /* ===== Main Content ===== */
    .main-wrapper {
        margin-left: 0 !important;
        padding: 0;
        min-height: 100vh;
    }
    
    .main-wrapper header {
        display: none !important;
    }
    
    .main-wrapper .container {
        padding: 10px;
        margin: 0;
        max-width: 100%;
    }
    
    main {
        padding: 8px 0 !important;
    }
    
    /* ===== Sidebar (Mobile Drawer) ===== */
    .sidebar-nav {
        position: fixed;
        top: 0;
        left: 0;
        transform: translateX(-100%);
        width: 280px !important;
        height: 100vh;
        background-color: var(--white);
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.15);
        z-index: 1001;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        border-right: 1px solid var(--border-color);
    }
    
    .sidebar-nav.mobile-open {
        transform: translateX(0);
    }
    
    .sidebar-nav .sidebar-brand-title {
        opacity: 1 !important;
        color: var(--primary-color);
        font-size: 17px;
    }
    
    .sidebar-nav .nav-label {
        opacity: 1 !important;
        font-size: 14px;
    }
    
    /* Sidebar nav items */
    .sidebar-nav .sidebar-header {
        padding: 12px 16px;
        border-bottom: 1px solid var(--border-color);
        background-color: var(--white);
        position: sticky;
        top: 0;
        z-index: 2;
        height: 56px;
    }
    
    .sidebar-nav .sidebar-toggle-btn {
        color: var(--dark-gray);
    }
    
    .sidebar-nav .nav-item {
        padding: 10px 14px;
        border-radius: 8px;
        color: var(--dark-gray);
        gap: 12px;
        height: auto;
        min-height: 44px;
    }
    
    .sidebar-nav .nav-item .nav-icon {
        font-size: 17px;
        width: 28px;
        color: var(--gray);
    }
    
    .sidebar-nav .nav-item.active {
        background: var(--sidebar-accent-soft);
        color: var(--sidebar-accent);
    }
    
    .sidebar-nav .nav-item.active .nav-icon {
        color: var(--sidebar-accent);
    }
    
    .sidebar-nav .nav-item.active::before {
        left: -12px;
        top: 4px;
        bottom: 4px;
    }
    
    /* Hide tooltips on mobile */
    .sidebar-nav .nav-item::after {
        display: none !important;
    }
    
    /* Sidebar backdrop */
    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 1000;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    
    .sidebar-backdrop.active {
        opacity: 1;
        pointer-events: auto;
    }
    
    /* ===== Events Grid ===== */
    .events-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .event-card img {
        height: 160px;
    }
    
    .event-card-content {
        padding: 12px;
    }
    
    .event-card-content h3 {
        font-size: 16px;
    }
    
    .event-card-content p {
        font-size: 13px;
    }
    
    /* ===== Forms ===== */
    .beautiful-form {
        padding: 14px;
        margin: 0;
        border-radius: 8px;
        max-width: 100%;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
    
    .beautiful-form .form-group {
        margin-bottom: 14px;
    }
    
    .beautiful-form label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .beautiful-form input[type="text"],
    .beautiful-form input[type="number"],
    .beautiful-form input[type="datetime-local"],
    .beautiful-form textarea {
        padding: 8px 10px;
        font-size: 14px;
        border-radius: 6px;
    }
    
    .beautiful-form .auth-buttons {
        flex-direction: column;
        margin-top: 20px;
    }
    
    .beautiful-form .btn {
        width: 100%;
        justify-content: center;
        padding: 12px;
        font-size: 14px;
    }
    
    .beautiful-form .checkbox-label {
        font-size: 14px;
    }
    
    /* ===== Dashboard ===== */
    .dashboard-section {
        padding: 14px;
        margin-bottom: 16px;
        border-radius: 8px;
    }
    
    .dashboard-section h2 {
        font-size: 18px;
        margin-bottom: 14px;
        padding-bottom: 8px;
    }
    
    .dashboard-links {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .dashboard-links a {
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
        font-size: 14px;
    }
    
    /* ===== Footer ===== */
    footer {
        padding: 20px 0;
        margin-top: 30px;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 14px;
        padding: 0 16px;
    }
    
    .footer-links {
        flex-direction: row;
        justify-content: center;
        gap: 16px;
        flex-wrap: wrap;
    }
    
    .footer-links a {
        margin-bottom: 0;
        font-size: 13px;
    }
    
    .social-icons {
        justify-content: center;
        gap: 16px;
        margin-top: 0;
    }
    
    .social-icons a {
        font-size: 20px;
    }
    
    .copyright {
        margin-top: 14px;
        padding-top: 14px;
    }
    
    .copyright p {
        font-size: 11px;
        padding: 0 16px;
    }
    
    /* ===== Hero ===== */
    .hero {
        height: 280px;
        margin-bottom: 16px;
    }
    
    .hero h1 {
        font-size: 28px;
        margin-bottom: 12px;
    }
    
    .hero p {
        font-size: 15px;
        margin-bottom: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .hero-buttons .btn {
        width: 80%;
        justify-content: center;
    }
    
    /* ===== Maps ===== */
    #map {
        height: 200px !important;
        border-radius: 6px;
    }
    
    #map-control-panel {
        flex-wrap: wrap;
        gap: 6px;
        margin-left: 0;
        max-width: 100%;
        margin-top: 8px;
    }
    
    #map-control-panel input[type="text"] {
        width: 100%;
        height: 38px;
        font-size: 13px;
        padding: 0 8px;
    }
    
    #map-control-panel .button {
        flex: 1;
        min-width: 60px;
        height: 38px;
        font-size: 12px;
        padding: 0 8px;
    }
    
    /* ===== Discussion Board ===== */
    .discussion-board {
        padding: 14px;
        margin-top: 16px;
    }
    
    .discussion-board h2 {
        font-size: 18px;
        margin-bottom: 14px;
    }
    
    .discussion-messages {
        max-height: 250px;
        padding: 8px;
    }
    
    .discussion-message {
        padding: 8px;
    }
    
    .discussion-message .message-header {
        font-size: 11px;
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .discussion-message .message-text {
        font-size: 13px;
    }
    
    .discussion-form {
        flex-direction: column;
        gap: 8px;
    }
    
    .discussion-form textarea {
        min-height: 50px;
        font-size: 13px;
        padding: 8px;
    }
    
    .discussion-form button {
        width: 100%;
        padding: 10px;
        font-size: 13px;
    }
    
    /* ===== Rating Section ===== */
    .rating-section {
        padding: 14px;
        margin-top: 16px;
    }
    
    .rating-section h3 {
        font-size: 17px;
        margin-bottom: 10px;
    }
    
    .star-rating {
        font-size: 26px;
    }
    
    /* ===== Classic Sidebar ===== */
    .classic-minimalist-sidebar {
        flex-direction: column;
        border-radius: 8px;
        margin: 0 4px;
    }
    
    .classic-minimalist-sidebar .left-column,
    .classic-minimalist-sidebar .right-column {
        padding: 14px;
        border-left: none;
        border-top: 1px solid var(--border-color);
    }
    
    .classic-minimalist-sidebar .right-column {
        border-left: none;
    }
    
    .classic-minimalist-sidebar button {
        width: 100%;
        justify-content: center;
        padding: 10px;
    }
    
    /* ===== Event Meta ===== */
    .event-meta {
        flex-wrap: wrap;
        gap: 6px;
        padding-top: 10px;
    }
    
    .event-meta span {
        font-size: 12px;
    }
    
    .event-meta .btn {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        padding: 8px 12px;
        font-size: 13px;
    }
    
    /* ===== Buttons ===== */
    .btn {
        padding: 8px 12px;
        font-size: 13px;
        gap: 6px;
    }
    
    /* ===== Cards ===== */
    .card {
        padding: 14px;
        margin-bottom: 14px;
        border-radius: 6px;
    }
    
    .card h2, .card h3 {
        font-size: 17px;
    }
    
    .card.participant {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    /* ===== Forms ===== */
    .form-group {
        margin-bottom: 14px;
    }
    
    .form-group label {
        font-size: 13px;
        margin-bottom: 4px;
    }
    
    #location,
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 8px 10px;
        font-size: 14px;
        border-radius: 4px;
    }
    
    /* ===== Default Images ===== */
    .default-images {
        gap: 6px;
    }
    
    .default-images img {
        width: 60px;
        height: 60px;
    }
    
    /* ===== Modals ===== */
    .full-image-modal {
        padding: 12px;
    }
    
    .full-image-container img {
        max-height: 70vh;
        border-radius: 4px;
    }
    
    /* ===== Utility ===== */
    .mb-20 {
        margin-bottom: 14px;
    }
    
    .mt-20 {
        margin-top: 14px;
    }
}

/* ==========================================
   SPECIAL MOBILE FIXES
   ========================================== */

/* Fix for small phones (<= 375px) */
@media (max-width: 375px) {
    .logo {
        font-size: 14px;
    }
    
    .logo i {
        font-size: 15px;
    }
    
    .search-container input[type="text"] {
        font-size: 11px;
        padding: 3px 6px;
    }
    
    .search-container button {
        font-size: 10px;
        padding: 3px 6px;
        min-width: 36px;
    }
    
    .event-card img {
        height: 120px;
    }
    
    .beautiful-form {
        padding: 10px;
    }
    
    .beautiful-form input[type="text"],
    .beautiful-form input[type="number"],
    .beautiful-form input[type="datetime-local"],
    .beautiful-form textarea {
        font-size: 13px;
        padding: 6px 8px;
    }
}

/* Prevent zoom on input focus for iOS */
@media (max-width: 767px) {
    input, select, textarea {
        font-size: 16px !important;
    }
}

/* Smooth scrolling for mobile */
@media (max-width: 767px) {
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    body {
        -webkit-tap-highlight-color: transparent;
        overflow-x: hidden;
    }
}