@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

/* Core Layout */
body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background-color: rgba(255, 107, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

main {
  flex: 1;
  padding: 2rem;
  max-width: 1200px;
  margin: 1rem auto;
  width: 100%;
}

.container {
  background: #fff;
  border-radius: 16px;
  margin: 0.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 1200px;
}

/* Header */
.app-header {
  background-color: #ff6b00;
  display: flex;
  align-items: center;            /* Vertically center all child items */
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  font-family: 'Poppins', sans-serif;
  color: white;
  height: 70px;                   /* Optional: define consistent height */
  box-sizing: border-box;
}

.header-left,
.header-center,
.header-right {
  display: flex;
  align-items: center;            /* Ensure internal content is also centered */
}



.header-left img {
  height: 60px;
}

.header-center {
  display: flex;
  gap: 1.5rem;
}

.header-center .nav-link {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
}

.header-center .nav-link:hover {
  text-decoration: underline;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.icon-link {
  font-size: 1.2rem;
  color: white;
  text-decoration: none;
}

.logout-btn {
  background-color: #ffffff;
  color: #ff6b00;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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


/* Buttons */
.btn,
.header-btn,
nav button {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  background-color: #ff6b00;
  color: white;
  transition: background-color 0.3s ease;
}

.btn-primary:hover,
.header-btn:hover,
nav button:hover {
  background-color: #e65c00;
}

button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* Forms */
form {
  display: flex;
  flex-direction: column;
}

input[type="email"],
input[type="password"],
input[type="text"],
input[type="number"],
#chat-input {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  box-sizing: border-box;
}

/* Date and time picker */
.flatpickr-calendar {
  border: 1px solid #ff6b00;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day:hover {
  background: #ff6b00;
  color: white;
}

/* Profile Pic */
#profile-pic-container {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #ccc;
  position: relative;
}
#profile-pic {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
#edit-pic-btn {
  position: absolute; bottom: 5px; right: 5px;
  padding: 4px 10px; font-size: 12px;
}

#profile-modal {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center;
  z-index: 1000;
}
.modal-content {
  background: #fff; padding: 20px; border-radius: 10px; position: relative; text-align: center;
}
#close-modal { position: absolute; top: 10px; right: 16px; cursor: pointer; font-size: 24px;}


/* Typography */
h2 {
  text-align: center;
  color: #333;
  margin-bottom: 1.5rem;
}

/* Links */
a {
  color: #ff6b00;
  text-align: center;
  margin-top: 1rem;
  text-decoration: none;
  font-size: 0.9rem;
}

a:hover {
  text-decoration: underline;
}

/* Hero */
.hero {
  text-align: center;
  padding: 4rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.hero h2 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  color: #444;
  margin-bottom: 2rem;
}

.hero a button {
  font-size: 1.1rem;
  padding: 0.75rem 1.5rem;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.close {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 1.4rem;
  cursor: pointer;
}

.close:hover {
  color: #333;
}

/* Event Feed */
.header-buttons button {
  margin-left: 2em;
  padding: 0.5em 1em;
  border: none;
  border-radius: 6px;
  background: white;
  color: #f97316;
  font-weight: bold;
  cursor: pointer;
}

.filters {
  margin: 1em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.filters select {
  margin: 1em;
  padding: 0.5em;
  font-size: 1em;
}

.event-feed {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.event-card {
  border: 2px solid;
  border-radius: 10px;
  padding: 1em;
  background: #fff;
}

.event-card.orange {
  border-color: #f97316;
}

.event-card.green {
  border-color: #22c55e;
}

.event-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.event-icon {
  font-size: 1.5em;
}

.event-time {
  font-size: 0.9em;
  color: #444;
}

.event-interest {
  font-size: 0.85em;
  color: #777;
  margin-top: 0.3em;
}

.event-location {
  font-size: 0.85em;
  color: #888;
  margin-top: 0.25em;
}

/* Popups */
.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

.popup-box {
  background: #fff;
  padding: 2em;
  border-radius: 10px;
  text-align: center;
  width: 300px;
  position: relative;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

.popup-box h3 {
  margin-top: 0.2em;
}

.attendee-icon {
  font-size: 1.8em;
  margin: 0.2em;
  cursor: pointer;
}

.close-btn {
  position: absolute;
  top: 0.5em;
  right: 0.5em;
  background: transparent;
  border: none;
  font-size: 1.2em;
  cursor: pointer;
}

/* Chat */
.chat-layout {
  display: flex;
  gap: 1em;
}

.chat-sidebar {
  width: 30%;
  background: #f3f4f6;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1em;
}

.chat-main {
  width: 70%;
  display: flex;
  flex-direction: column;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
}

#chat-thread {
  flex: 1;
  padding: 1em;
  overflow-y: auto;
  max-height: 300px;
}

#chat-form {
  display: flex;
  padding: 0.5em;
  gap: 0.5em;
}

.message {
  margin: 0.5em 0;
  padding: 0.5em;
  border-radius: 6px;
}

.message.sent {
  background-color: #f97316;
  color: white;
  text-align: right;
}

.message.received {
  background-color: #e5e7eb;
  text-align: left;
}
