/* Import Google Fonts for header text */
@import url("https://fonts.googleapis.com/css2?family=Edu+SA+Hand:wght@400..700&display=swap");

/* Global reset to remove default margins, paddings, and borders */
* {
  padding: 0;
  margin: 0;
  border: none;
}

/* Main body layout and background image */
body {
  display: flex;
  flex-direction: column;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("../images/lake_sunset.6fff7371531b.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  margin: 0;
  padding: 0;
  font-family: sans-serif;
}

/* Main container with top padding to clear the fixed navbar */
main {
  flex: 1;
  background-color: transparent;
  padding-top: 80px;
}

/* Headers use the imported Google font */
h1,
h2 {
  font-family: "Edu SA Hand", cursive;
}

/* ------------------- NAVBAR ------------------- */

/* Navbar base color */
.navbar {
  background-color: black;
}

/* Navbar links and branding */
.navbar .nav-link {
  color: orange;
}

.navbar .navbar-brand {
  color: orange;
}

/* Navbar toggle button styling (for mobile) */
.navbar-toggler {
  border-color: orange;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml..."); /* Custom orange hamburger icon */
}

/* ------------------- FOOTER ------------------- */

/* Fixed bottom footer */
.main_footer {
  background-color: black;
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 56px;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Footer layout */
.footer_content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  width: 100%;
}

/* Centered footer icons */
.footer_nav {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  gap: 30px;
}

.footer_nav li a {
  color: orange;
  font-size: 1.5rem;
  text-decoration: none;
}

.footer_nav li a:hover {
  color: white;
}

/* ------------------- HOME PAGE ------------------- */

/* Main container for home and other pages */
.custom_container {
  display: flex;
  flex-direction: column;
  gap: 100px;
  align-items: center;
}

/* Generic card layout */
.card_content {
  background-color: transparent;
  color: white;
  padding: 3rem 2rem;
  width: 100%;
  max-width: 700px;
  margin: 2rem auto;
  margin-top: 50px;
  text-align: center;
}

.card_content h1,
.card_content h2 {
  margin-bottom: 2rem;
}

/* Subtitle text styling */
.sub_text {
  padding-top: 25px;
}

.sub_text > h2 {
  font-size: 25px;
}

/* Remove bullet points from card content lists */
.card_content ul {
  margin-top: 1.5rem;
  padding-left: 0;
  list-style: none;
}

/* Button spacing inside card */
.card_content .btn {
  margin-top: 1rem;
}

/* ------------------- BUTTONS ------------------- */

/* Orange outlined button with white text */
.btn-orange {
  border: 3px solid orange !important;
  color: white !important;
}

.btn-orange:hover {
  background-color: orange !important;
  border-color: darkorange !important;
}

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

.login-wrapper {
  min-height: calc(100vh - 56px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.login-card {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 3rem 2rem;
  border-radius: 12px;
  color: white;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.login-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-family: "Segoe UI", sans-serif;
}

.login-sub {
  margin-bottom: 2rem;
  font-style: italic;
  color: #f0f0f0;
}

/* ------------------- FLASH MESSAGES ------------------- */

/* Container for Django's flash messages */
.custom-messages {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: 90%;
  max-width: 700px;
}

/* Style for each flash message */
.custom-alert {
  background-color: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 1rem 1.5rem;
  margin-bottom: 10px;
  border-left: 5px solid orange;
  border-radius: 8px;
  font-size: 1.1rem;
  text-align: center;
  opacity: 1;
  transition: opacity 0.5s ease-out;
}

/* ------------------- DASHBOARD ------------------- */

.dashboard {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
  padding: 4rem 1rem;
}

/* Individual stat blocks */
.dashboard-section {
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 12px;
  padding: 2rem;
  width: 90%;
  max-width: 600px;
  text-align: center;
  color: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.dashboard-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.dashboard-section p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

/* ------------------- SESSION LIST ------------------- */

/* Session history list */
.session-list {
  list-style: none;
  padding: 0;
  text-align: left;
}

.session-list li {
  padding: 0.75rem;
  background-color: rgba(255, 255, 255, 0.05);
  margin-bottom: 0.5rem;
  border-left: 4px solid orange;
  border-radius: 6px;
}

/* ------------------- SIGNUP FORM ------------------- */

.form-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
  margin-bottom: 120px;
}

.card-content {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 2rem;
  border-radius: 1rem;
  width: 100%;
  max-width: 450px;
  text-align: center;
  color: white;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.form-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.form-subtitle {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #ddd;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: bold;
}

.form-group input {
  width: 100%;
  padding: 0.5rem;
  border-radius: 6px;
  border: none;
}

.helptext-wrapper {
  font-size: 0.8rem;
  color: #aaa;
  margin-bottom: 1.5rem;
}

/* ------------------- CATCH FORM ------------------- */

/* Style for each dynamically added catch */
.faded-catch {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 0.5rem 1rem;
  border-left: 4px solid orange;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Delete button in dynamic catch */
.faded-catch button.remove-catch {
  background: none;
  border: none;
  color: orange;
  font-size: 1.2rem;
  cursor: pointer;
}

.faded-catch button.remove-catch:hover {
  color: red;
}
