@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Maven+Pro:wght@400..900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

html,
body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  height: 100%;
  color: black;
  background: #eceff1;
}

body {
  display: none;
}

button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 50px;
  border: none;
  background: linear-gradient(74deg, #00ff40 0%, #15a5ff 100%);
  color: white;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button span {
  font-size: 24px;
  line-height: 1;
  font-weight: 400;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 242, 96, 0.4);
}

#message {
  background: white;
  max-width: 360px;
  margin: 100px auto 16px;
  padding: 32px 24px;
  border-radius: 3px;
}
#message h2 {
  color: #1eff00;
  font-weight: bold;
  font-size: 16px;
  margin: 0 0 8px;
}
#message h1 {
  font-size: 22px;
  font-weight: 300;
  color: rgba(0, 0, 0, 0.6);
  margin: 0 0 16px;
}
#message p {
  line-height: 140%;
  margin: 16px 0 24px;
  font-size: 14px;
}
#message a {
  display: block;
  text-align: center;
  background: #039be5;
  text-transform: uppercase;
  text-decoration: none;
  color: white;
  padding: 16px;
  border-radius: 4px;
}
#message,
#message a {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}
#load {
  color: rgba(0, 0, 0, 0.4);
  text-align: center;
  font-size: 13px;
}
@media (max-width: 600px) {
  body,
  #message {
    margin-top: 0;
    background: white;
    box-shadow: none;
  }
}

/* --- NAVBAR LAYOUT --- */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0px 20px;
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  z-index: 2;
  height: 60px;
}

/* --- LOGO CONTAINER --- */
.logo-container {
  font-family: "Inter", sans-serif;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-name {
  font-size: 24px;
  font-weight: bold;
  color: #353535;
}

/* --- SEARCH WRAPPER & INPUT --- */
.search-wrapper {
  flex-grow: 1;
  max-width: 550px;
  height: 40px;
  border: 1px solid #e0e0e0;
  border-radius: 25px;
  background-color: #efefef;
  display: flex;
  align-items: center;
  position: relative;
  margin: 0 30px;
  font-family: "Maven Pro", sans-serif;
}

.search-input {
  border: none;
  outline: none;
  flex-grow: 1;
  background: transparent;
  padding: 0 20px;
  height: 100%;
}

/* --- SEARCH BUTTON --- */
.search-btn {
  position: absolute;
  right: 1px;
  top: 1.5px;
  height: 38px;
  width: 38px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-btn img {
  height: 20px;
  filter: brightness(0) invert(1);
}

/* --- CREATE BUTTON --- */
.create-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 25px;
  border-radius: 50px;
  border: none;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.create-btn span {
  font-size: 20px;
  font-weight: 300;
}

@media (max-width: 768px) {
  .brand-name {
    display: none;
  }

  .logo-container {
    width: 100%;
    justify-content: flex-start;
  }

  .search-wrapper {
    max-width: 100%;
    margin: 0px;
  }

  .create-btn {
    display: none;
  }
}

/* --- SIDEBAR BASE STYLES --- */
.sidebar {
  position: relative;
  top: 0;
  left: 0;
  z-index: 200;

  width: 280px;
  height: 100%;

  background-color: transparent;

  display: flex;
  flex-direction: column;

  transform: translateX(0);
  transition: transform 0.3s ease-out;
}

@media (max-width: 768px) {
  .sidebar:not(.is-open) {
    transform: translateX(-100%);
    margin-left: -280px;
  }
}

/* --- NAVIGATION STYLES (TOP OPTIONS) --- */
.sidebar-nav {
  flex-grow: 1;
  padding: 8px 0;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 15px 25px;
  margin-right: 15px;
  margin-top: 15px;
  text-decoration: none;
  color: #353535;
  font-size: 20px;
  font-weight: 500;
  transition: background-color 0.2s, color 0.2s;
  cursor: pointer;
}

.nav-icon {
  margin-right: 15px;
  font-size: 1.2rem;
  display: flex;
  color: #353535;
}

.nav-item svg {
  width: 22.5px;
  height: 22.5px;
}

.nav-item:hover:not(.active) {
  background-color: #fff7dd;
  border-radius: 0 50px 50px 0;
}

/* --- ACTIVE STATE ADJUSTMENT (Yellow Rounded Pill) --- */
.nav-item.active {
  background-color: #fff7dd;
  color: #353535;
  border-radius: 0 50px 50px 0;
  border: 1px solid rgba(53, 53, 53, 0.4);
  border-left: none;
}

/* --- FOOTER STYLES (REMOVED) --- */
/* --- BACKDROP FOR MODAL EFFECT --- */
.sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% - 60px);
  margin-top: 60px;
  background-color: rgba(0, 0, 0, 0.5);

  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

/* On Mobile, when the sidebar is open, show the backdrop */
@media (max-width: 768px) {
  .sidebar {
    background-color: #ffffff;
  }

  .sidebar.is-open ~ .sidebar-backdrop {
    visibility: visible;
    opacity: 1;
  }
}

/* --- FAB BUTTON STYLES --- */
.fab-toggle {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 100; /* High z-index to sit on top of content */

  width: 56px;
  height: 56px;
  border-radius: 50%;

  /* Your Theme Colors */
  background-color: #353535;
  color: #fff7dd;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);

  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s;
}

.fab-toggle:hover {
  transform: scale(1.05); /* Slight pop effect */
  background-color: #000;
}

.fab-toggle svg {
  width: 28px;
  height: 28px;
}

/* Hide the FAB on large screens (since sidebar is always visible there) */
@media (min-width: 769px) {
  .fab-toggle {
    display: none;
  }
}
