/* General body styling */
body {
  font-family: 'Roboto', sans-serif;
  background-color: #f5f5f5;
  margin: 0;
  padding: 0;
  position: relative;
  overflow: auto;
}

/* Background video */
#background-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}


/* Header Styling */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 50px; /* Add spacing and padding for the header */
  color: white; /* White text color for contrast */
  height:110px;
}

#header #logo {
  background: none;
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  padding: 0;
  margin: 0;
}

#logout-btn {
  background-color: #f44336;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 20px;
  margin: 10px 10px 10px 0;
}

#logout-btn:hover {
  background-color: #d32f2f;
}

/* Login Form */
#login-form {
  padding: 40px;
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  box-sizing: border-box; /* Ensures padding is included in width calculation */
  margin-top: 110px;  /* Adjust this value to move the form lower on the page */
  color: white;
}

/* Login Form Input Fields Styling */
#login-form input[type="email"],
#login-form input[type="password"] {
  width: 100%; /* Ensure inputs take up full width */
  padding: 12px 25px; /* Adjust padding to match the search bar */
  margin: 8px 0;
  border-radius: 30px; /* Rounded corners for inputs */
  border: none;
  background-color: rgba(255, 255, 255, 0.1); /* Light transparent background */
  color: white; /* White text */
  font-size: 18px; /* Match font size with the search bar */
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.7); /* Soft shadow like search bar */
  outline: none; /* Remove default outline */
  transition: all 0.3s ease; /* Smooth transition effect */
  box-sizing: border-box; /* Prevents padding from affecting the width */
}

#login-form input[type="email"]::placeholder,
#login-form input[type="password"]::placeholder {
  color: #ddd; /* Light placeholder color */
  font-weight: 300;
}

/* Focused Input Fields */
#login-form input[type="email"]:focus,
#login-form input[type="password"]:focus {
  background-color: rgba(255, 255, 255, 0.2); /* Light background on focus */
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.9); /* Glow effect on focus */
  border-color: #5C6BC0; /* Focused border color */
}

/* Button Styling */
#login-form button {
  background-color: #ffffff; /* Button background color */
  color: rgb(0, 0, 0);
  border: none;
  padding: 12px 24px;
  border-radius: 30px; /* Rounded button corners */
  font-size: 16px;
  cursor: pointer;
  width: 100%; /* Full width button */
  margin-top: 10px;
  transition: all 0.3s ease; /* Smooth transition effect */
}

#login-form button:hover {
  background-color: #cccccc; /* Button hover effect */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); /* Subtle shadow on hover */
}


/* Create Event Section */
#create-event-section {
  max-width: 800px;
  margin: 50px auto;
  background-color: #ffffff;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#create-event-section h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #212121;
  text-align: center;  /* Center align the heading */
}

#create-event-form input,
#create-event-form textarea,
#create-event-form select {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 16px;
  box-sizing: border-box; /* Ensures padding does not affect the width */
  font-family: 'Roboto', sans-serif;
}

/* Create Event Form Button Styling */
#create-event-form button {
  background-color: #000000; /* Button background color */
  color: rgb(255, 255, 255);  /* Black text color */
  border: none;
  padding: 12px 24px;
  border-radius: 30px;  /* Rounded button corners */
  font-size: 16px;
  cursor: pointer;
  width: 100%;  /* Full width button */
  margin-top: 10px;
  transition: all 0.3s ease;  /* Smooth transition effect */
}

/* Button Hover Effect */
#create-event-form button:hover {
  background-color: #474747;  /* Light grey on hover */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);  /* Subtle shadow on hover */
}


/* Event Cards Section */
.event-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 40px;
  justify-items: center;
  width: 100%;
  margin-top: 50px;
  padding: 0 195px;
  box-sizing: border-box;
  column-gap: 10px;
}




.event-card {
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 330px;
  height: 525px;
  text-align: center;
  display: flex;
  flex-direction: column;
  cursor: default;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card.red {
  border: 2px solid #f44336;
}

.event-card.green {
  border: 2px solid #4CAF50;
}

.event-card:hover {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(-5px);
}

.event-card img {
  width: 100%;
  height: 220px;
  max-height: 185px;
  object-fit: cover;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

.card-details {
  padding: 10px;
  text-align: center;
}

.card-details h3 {
  font-size: 22px;
  color: #212121;
  margin-top: 0;
}

.card-details .date,
.card-details .venue,
.card-details .country {
  font-size: 16px;
  color: #757575;
  margin: 5px 0;
}

.card-details .description {
  font-size: 15px;
  color: #757575;
  margin: 15px 0;
  max-height: 70px;
  min-height: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-top: 10px;
  padding: 0 25px;
  line-height: 24px;
  word-wrap: break-word;
}

.card-details .rsvp {
  background-color: #5C6BC0;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 30px;
  cursor: pointer;
  width: 90%;
  font-size: 16px;
  margin-top: 20px;
  text-decoration: none;
}

.card-details .rsvp:hover {
  background-color: #0071e3;
}

/* Pending and Approved Events Sections */
#pending-events-container,
#approved-events-container {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 40px;
  justify-items: center;
  width: 100%;
  margin-top: 50px;
  padding: 0 195px; /* Add padding to the sides of the event grid */
  box-sizing: border-box;
  column-gap: 10px;
}

h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #ffffff;
  text-align: center; /* Centers the text within the container */
  width: 100%; /* Ensures the h3 element takes up the full width */
  display: block; /* Makes sure h3 behaves as a block element, occupying full width */
}


#pending-events-container .event-card,
#approved-events-container .event-card {
  margin-bottom: 20px;
}

/* Buttons for approval, deletion*/
.approve-btn,
.delete-btn{
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 30px;
  cursor: pointer;
  width: 40%;
  font-size: 16px;
  margin: 10px 10px 10px 0;
}

.delete-btn {
  background-color: #F44336;
}


.approve-btn:hover {
  background-color: #388E3C;
}

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


.approve-btn:active,
.delete-btn:active {
  transform: scale(0.98);
}

.approve-btn:focus,
.delete-btn:focus {
  outline: none;
  box-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.centered-message {
  text-align: center;
  font-size: 18px;
  color: #555;
  padding: 20px;
}

label {
  font-family: 'Roboto', sans-serif;  /* Set font to Roboto */
  font-size: 16px;                    /* Size for the labels */
  font-weight: 500;                   /* Medium weight for a clean, professional look */
  color: #333;                        /* Dark text for readability */
  margin-bottom: 5px;                 /* Space below the label */
  position: relative;                 /* Allow movement using positioning */
  display: block;                     /* Ensures label appears on its own line */
  transition: all 0.3s ease;          /* Smooth transition for position changes */
  margin-left: 2px;
}

/* Styling for Submission Info Message */
.submission-info {
  font-size: 0.9em;
  color: #555; /* Subtle and professional gray */
  margin-top: 10px; /* Adds spacing above the message */
  text-align: center; /* Centers the text */
  line-height: 1.4;
  font-style: italic; /* Optional for a softer tone */
}
