:root {
    --bg-main: #0f172a;
    --bg-card: #dfdfdf;
    --accent: #22d3eebf;
    --accent-soft: #81e6f4;
    --text-primary: #0f172a;
    --text-secondary: #475569;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  width: 100%;
  min-height: 100vh;
}

.nav {
  position: fixed;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 10px 40px;
  top: 25px;
  z-index: 100;
}

.nav img {
    width: 50px;
  height: 50px;
  border-radius: 50%;
}

.nav_logo {
  margin-left: 20px;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.35));
}

.nav ul {
  display: flex;
  justify-content: space-around;
  width: 40%;
  height: 50px;
  margin: 0;
  padding: 0px;
  background: linear-gradient(to bottom, #ffffff 0%, #f2f2f29a 100%);
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.2);
  border-width: 2px;
  border-radius: 20px;
  box-shadow:
    10px 10px 10px rgba(0, 0, 0, 0.08),
    20px 30px 25px rgba(0, 0, 0, 0.12);
}

.nav ul li {
  list-style: none;
  cursor: pointer;
}

.nav ul li a {
  display: flex;
  align-items: center;
  height: 100%;
  text-decoration: none;
  font-size: 15px;
  font-family: "Poppins", sans-serif;
  padding: 0px 20px;
  color: #000;
  transition:
    color 0.2s ease-in-out,
    transform 0.3s ease-in-out,
    background 0.3s ease-in-out;
  font-weight: 600;
  border-radius: 15px;
}

.nav ul li a:hover {
  transform: scale(1.1);
  color: #ffffff;
  background: #000;
  opacity: 0.9;
}

.home {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.main_bg {
  position: fixed;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(
    circle at top left,
    #ffffff 0%,
    #f3f4f6 18%,
    #111827 60%
  );
  z-index: -100;
}

.home::before,
.home::after {
  content: "";
  position: fixed;
  background: url("/img/Grouply_Logo.png");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.06;
  filter: blur(1px);
}

.home::before {
  width: 500px;
  height: 500px;
  top: -150px;
  left: -150px;
  transform: rotate(-25deg);
}

.home::after {
  width: 400px;
  height: 400px;
  bottom: -120px;
  right: -120px;
  transform: rotate(15deg);
}

footer {
  margin-top: auto;
}

.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 20px 0px 10px 0px;
}

.footer_container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 5px 10px;
  border-bottom: 0.5px solid #ffffff;
}

.footer_head {
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav_logo.footer_logo {
  width: 20px;
  height: 20px;
  margin: 0px 10px 0px 0px;
}

.footer_title,
.footer_description {
  font-size: 12px;
  color: #ffffff;
  font-weight: 600;
}

/*Drop down*/
.profile_menu {
  position: relative;
  display: flex;
  align-items: center;
  padding-bottom: 10px;
}

.pfp_image {
  margin-right: 20px;
  filter: drop-shadow(0 0 4px rgb(255, 255, 255));
  border-style: solid;
  border-width: 2px;
  border-color: var(--bg-card);
  cursor: pointer;
}

.dropdown {
  position: absolute;
  top: 70px;
  right: 20px;
  background-color: white;
  border-radius: 10%;
  min-width: 150px;
  max-height: 0;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  flex-direction: column;
  display: flex;
  overflow: hidden;
  z-index: 100;
  transition: max-height 0.2s ease-in-out, padding 0.3s ease-in-out;
}

.dropdown a {
  padding: 10px 20px;
  text-decoration: none;
  color: black;
  font-weight: 600;
  font-size: 14px;
}

.dropdown a:hover {
    background-color: var(--accent-soft);
}

.profile_menu:hover .dropdown {
  display: flex;
    max-height: 200px;
    padding: 8px 0px;
}

/*Log in Pop up*/
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modalContent {
  position: relative;
  width: 400px;
  padding: 30px;
  background-color: white;
  border: 2px solid black;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.closeBtn {
  position: absolute;
  background-color: red;
  color: white;
  height: 28px;
  width: 28px;
  padding: 1px 2px;
  border-radius: 10%;
  display: flex;
  justify-content: center;
  font-size: 20px;
    cursor: pointer;
}

.closeBtn:hover {
  background-color: rgb(201, 2, 2);
}

.modal_title {
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form_elements {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form_elements label {
  font-weight: 700;
  font-size: 14px;
}

.form_elements input {
  padding: 10px 15px;
  border-radius: 10px;
  border: 1.5px solid #ccc;
}

.form_elements input:focus {
  border-color: var(--accent);
  outline: none;
}

.login_btn {
  margin-top: 10px;
  align-self: center;
  padding: 10px 25px;
  border-radius: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  background: var(--accent-soft);
}

.login_btn:hover {
  background: var(--text-primary);
  color: var(--bg-card);
}

.form_hint {
  font-size: 13px;
  text-align: center;
}

.form_hint a {
  font-weight: 600;
  text-decoration: underline;
}

/* Profile Modal Enhancements */
.profile_pfp_container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.profile_pfp_preview {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.profile_pfp_preview:hover {
  transform: scale(1.05);
  border-color: var(--text-primary);
}

.profile_pfp_preview::after {
  content: "📷";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  text-align: center;
  padding: 8px;
  font-size: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.profile_pfp_preview:hover::after {
  opacity: 1;
}

.profile_pfp_preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload_hint {
  font-size: 12px;
  color: #666;
  font-family: "Poppins", sans-serif;
  margin: 0;
}

.profile_actions {
  display: flex;
  gap: 15px;
  margin: 20px 0;
  width: 100%;
}

.profile_action_btn {
  flex: 1;
  background-color: var(--bg-main);
  color: var(--bg-card);
  border: 2px solid #22d3ee30;;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  cursor: pointer;
  padding: 12px 20px;
  transition: all 0.3s ease;
}

.profile_action_btn:hover {
  background-color: var(--accent);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.profileModalContent {
  background: var(--bg-card);
  padding: 40px 30px;
  border-radius: 15px;
  width: 450px;
  max-width: 90%;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Dropdown Menu States */
.dropdown a {
  display: block;
  padding: 10px 15px;
  color: var(--text-primary);
  text-decoration: none;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.dropdown a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Modal form elements consistency */
#changeEmailModal .form_elements,
#changePasswordModal .form_elements {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 15px;
  font-family: "Poppins", sans-serif;
}

#changeEmailModal .form_elements label,
#changePasswordModal .form_elements label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

#changeEmailModal .form_elements input,
#changePasswordModal .form_elements input {
  padding: 10px 15px;
  font-size: 14px;
  border: 1.5px solid #ccc;
  border-radius: 10px;
  outline: none;
  font-family: "Poppins", sans-serif;
}

#changeEmailModal .form_elements input:focus,
#changePasswordModal .form_elements input:focus {
  border-color: var(--accent);
}

/* Add this to your style.css file */

.logout_btn {
  display: flex;
  justify-self: center;
  align-self: center;
  padding: 10px 20px;

  background: linear-gradient(
    to bottom,
    rgba(255, 0, 0, 1),
    rgba(255, 0, 0, 0.7)
  );
  color: var(--text-primary);
  
  border-style: solid;
  border-width: 2px;
  border-color: rgba(255, 255, 255, 0.2);
  border-radius: 10px;

  filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.6));
  box-shadow:
    5px 10px 10px rgba(0, 0, 0, 0.08),
    10px 20px 25px rgba(0, 0, 0, 0.12);

  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.2s ease, color 0.2s ease;
}

.logout_btn:hover {
  transform: scale(1.1);
  background-color: var(--text-primary);
  color: var(--bg-card);
}