* {
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  user-select: none;
}
body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  /* display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh; */
  background: #222222;
  color: white;
}
.card {
  background: #434242;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 400px;
  text-align: center;
  transition: all 0.3s ease;
  color: white;
  position: fixed;
  height: auto;
  overflow: scroll;
  left: 65px;
  top: 10px;
  z-index: 1000;
  overflow: hidden;
}

#user-info img {
  width: 100px;
  height: 100px;
  border-radius: 100%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid #ddd;
}

/* h1 {
  margin-bottom: 1.5rem;
  color: white;
} */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #0b57d0;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
  margin-top: 1rem;
}

.btn:hover {
  background: #3367d6;
}

#logout {
  background: #e74c3c;
}

#logout:hover {
  background: #c0392b;
}

.hidden {
  display: none !important;
}

.user-details p {
  margin: 0.3rem 0;
}
.user-details p strong {
  color: #0b57d0;
}
.user-details p span {
  color: #ddd;
}
.tasks {
  margin-top: 1rem;
  text-align: left;
  color: #ddd;
}

.tasks div {
  background: #2a2a2a;
  padding: 0.5rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}
.tasks div strong {
  color: #0b57d0;
}
.tasks div span {
  color: #ddd;
}
.tasks div.completed {
  text-decoration: line-through;
  color: #aaa;
}
.tasks div.completed strong {
  color: #aaa;
}
.tasks div.completed span {
  color: #aaa;
}
.tasks div.completed:hover {
  background: #2a2a2a;
}
/* Sidebar styles */

.sidebar {
  /* position: fixed;
    top: 0;
    left: 0; */
  height: 100vh;
  width: 60px;
  background-color: #2b2a2a;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 1rem;
}
/*resposive sidebar*/

.nav-icon {
  width: 40px;
  height: 40px;
  margin: 1rem 0;
  background-color: #2c2c2c;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s, opacity 0.3s;
}

.material-icons {
  color: #fff;
  font-size: 24px;
}
/* Notes styles */
.notes-container {
  /* display: flex;
    flex-direction: column;
    gap: 10px; */
  background-color: #1e1e1e;
  padding: 20px;
  border-radius: 12px;
  width: calc(100vw - 60px);
  height: 100vh;
  color: white;
  margin-left: 60px;
}

.note-title,
.note-content {
  background: transparent;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px;
  font-size: 1rem;
  width: 100%;
  outline: none;
}
.note-title {
  height: 50px;
  margin-bottom: 10px;
  font-weight: bold;
  font-size: larger;
}

.note-content {
  height: calc(100vh - 60px - 50px);
  overflow: scroll;
}
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #777;
}
::-webkit-scrollbar-track {
  background: #2a2a2a;
}
/* Preloader styles */
#preloader {
  position: fixed;
  inset: 0;
  background: #121212;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 999999999;
  transition: opacity 0.4s ease;
}

.loader-content h1 {
  margin-top: 12px;
  color: white;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  font-size: 4rem;
}

.credit {
  /* position: absolute;
    bottom: 20px;
    right: 20px; */
  color: #777;
  font-size: 2rem;
}

/* Chat styles */
.chat-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100vh;
  background-color: #1e1e1e;
  color: white;
  font-family: sans-serif;
  border-radius: 12px;
  overflow: hidden;
  margin-left: 60px;
  height: 100vh;
}

.chat-header {
  padding: 16px;
  background-color: #272727;
  font-weight: bold;
  font-size: 1.2rem;
  border-bottom: 1px solid #333;
}

.chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.message {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 8px;
  line-height: 1.4;
  text-wrap: wrap;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.user {
  align-self: flex-end;
  background-color: #3a3a3a;
  margin-right: 7%;
}

.bot {
  align-self: flex-start;
  background-color: #2c2c2c;
  width: 70%;
  margin-left: 7%;
}
.bot img {
  border-radius: 20px;
}

.chat-input {
  display: flex;
  border-top: 1px solid #333;
  width: 70%;
  margin-left: calc(35% - 250px);
  border-radius: 20px;
  position: fixed;
  bottom: 80px;
  z-index: 100;
}

.chat-input .input {
  flex: 1;
  padding: 10px;
  border: none;
  background: #363535;
  color: white;
  font-size: 15px;
  border-radius: 6px;
  outline: none;
  z-index: 100;
  width: 50%;
  left: calc(50vw - 25%);
  height: 50px;
}

.chat-input button {
  background: #4a4aff;
  border: none;
  color: white;
  padding: 10px 16px;
  margin-left: 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}
.chat-input button:hover {
  background: #6a6aff;
}
.prompt {
  position: relative;
  bottom: 10px;
  display: flex;
  --flex-flow: nowrap;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid #333;
  height: auto;
  overflow-x: scroll;
  flex-direction: row;
  transform: translateY(35px);
}
.prompt p {
  background-color: #3a3a3a;
  padding: 15px;
  flex-basis: 400px;
  display: flex;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.2s;
  width: auto;
  font-size: 15px;
  flex-grow: 1;
  text-wrap: nowrap;
  width: auto;
  white-space: nowrap;
}

.prompt p:hover {
  background-color: #4a4aff;
}
.prompt p:active {
  background-color: #6a6aff;
}
.notes-container {
  --display: none;
  position: fixed;
  top: 0;
  left: 0;
}
.cardBeforeAuth {
  position: fixed;
  left: calc(50vw - 17%);
  top: 100px;
}
.card {
  margin-left: 10px;
}

.note-content:empty::before {
  content: attr(data-placeholder);
}

@media only screen and (max-width: 600px) {
  .cardBeforeAuth {
    position: fixed;
    left: 15px;
    top: 100px;
  }

  .nav-icon {
    width: 40px;
    height: 40px;
  }
  .nav-icon .material-icons {
    font-size: 30px;
  }
  .chat-container {
    height: 75vh;
    margin-left: 0;
  }
  .card {
    left: 20px;
  }
  .chat-input {
    width: 90%;
    /* left: calc(80vw - 48%); */
    bottom: 15%;
    right: 7%;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .chat-input .input {
    --margin-bottom: 10px;
    border-radius: 20px;
    width: 0%;
  }
  .prompt {
    font-size: 12px;
    position: fixed;
    bottom: 7%;
    width: 100%;
  }
  .prompt p {
    font-size: 13px;
    font-weight: 500;
    padding: 10px;
  }
  .notes-container {
    height: 90vh;
    margin-left: 0;
    width: 100%;
    padding: 0px;
    box-sizing: border-box;
  }
  .sidebar {
    width: 50px;
    height: 50px;
    flex-direction: row;
    width: 100vw;
    gap: 30px;
    padding: 0;
    align-items: center;
    --top: calc(100vh - 50px);
    justify-content: center;
    z-index: 1000;
    position: fixed;
    bottom: 0px;
  }
  .chat-input button {
    background: #4a4aff;
    border: none;
    color: white;
    margin-left: 8px;
    font-size: 20px;
    border-radius: 50%;
    /* position: fixed;
      bottom: 100px;
      left: calc(100% - 18%); */
  }

  .bot {
    margin-left: 1px;
  }
  .user {
    margin-right: 1px;
  }
  .message {
    width: 90vw;
  }

  .nav-icon:active {
    background-color: #333;
    opacity: 0.7;
    transform: scale(1.2, 1.2);
  }
  /* .card {
      position: fixed;
      top: 40%;
      height: 50%;
      left: calc(50vw - 50%);
      padding: 5px;
    } */
  /* .credit {
      position: absolute;
      bottom: 20px;
      left: calc(25% - 1rem);
      color: #777;
      font-size: 2rem;
    } */
  #preloader {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .credit {
    position: none;

    align-self: center;
  }
}
.chat-container {
  position: fixed;
  top: 0;
  width: 100%;
}
.card {
  background: rgba(43, 42, 42, 0.5);

  backdrop-filter: blur(10px);
}

.welcome {
  font-size: 4rem;
  color: #ddd;
  margin-top: 0.5rem;
}
.tagline {
  font-size: 1.2rem;
  color: #ddd;
  margin-top: 0.5rem;
}
.container {
  background-color: #2b2a2a;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100vw;
  --transform: scale(10, 10);
  display: none;
}
/* .card,
  .cardBeforeAuth,
  #auth-card {
    width: 90vw;
  } */
.nav-icon:hover {
  background-color: #333;
  opacity: 0.7;
  transform: scale(1.2, 1.2);
}
.hide {
  display: none;
}
.bot {
  user-select: text;
}
/*Highlight menu*/
.menu {
  position: absolute;
  background-color: #fec20c;
  padding: 5px 10px;
  border-radius: 10px;
  color: white;
  font-size: 14px;
  display: none;
  z-index: 1000;
  width: 25px;
  height: 25px;
}
.menu:hover,
.menu:active {
  background-color: #f0b000;
  cursor: pointer;
}
/*Task Style*/
.taskall {
  width: 100%;
  height: 100%;
  position: fixed;
  left: 60px;
  top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: scroll;
  z-index: 100;
  --display: none;
}

.taskContainer {
  background-color: #1e1e1e;
  padding: 20px 30px;
  border-radius: 10px;
  --box-shadow: 0 0 10px #00000080;
  width: 100%;
  max-width: 500px;
  max-height: 80%;
  color: white;
  z-index: 100;
  overflow: scroll;
}
.tuneContainer {
  width: auto;
  height: auto;
  background-color: #4b4b4b;
  border-radius: 20px;
  position: fixed;
  bottom: 60px;
  right: 5px;
  z-index: 10;
  padding: 20px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  color: white;
  box-shadow: 0 0 10px #00000080;
}
.tuneContainer button {
  background-color: #ff4a4a;
  border: none;
  color: white;
  padding: 10px 16px;
  margin-left: 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}
@media only screen and (max-width: 600px) {
  .taskall {
    left: 0;
    top: 10px;
  }
}
.taskContainer h1 {
  text-align: center;
  margin-bottom: 20px;
  color: #ffffff;
}
#taskInput {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 6px;
  margin-bottom: 10px;
  background-color: #2c2c2c;
  color: #e0e0e0;
}

.addTaskBtn {
  width: 100%;
  padding: 10px;
  background-color: #4a4aff;
  border: none;
  border-radius: 6px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.addTaskBtn:hover {
  background-color: #3535d0;
}

#taskList ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

#taskList li {
  background-color: #2c2c2c;
  margin: 8px 0;
  padding: 10px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: move;
}

#taskList .delete-btn {
  background-color: #cf6679;
  border: none;
  color: white;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  width: fit-content;
}

#taskList .delete-btn:hover {
  background-color: #b00020;
}

.allWelcome {
  position: fixed;
  overflow: scroll;
}
header {
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  width: 100%;
  box-sizing: border-box;
  font-size: 1.5rem;
}

header nav a {
  margin-left: 1rem;
  text-decoration: none;
  color: #111;
  font-weight: 500;
  font-size: 1rem;
}

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 3rem 2rem;
  gap: 2rem;
  float: center;
}

.hero-text {
  max-width: 500px;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.2rem;
  color: #555;
}

.hero-buttons {
  margin-top: 1.5rem;
}

.hero-buttons button {
  padding: 0.8rem 1.5rem;
  margin-right: 1rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
}

.primary-btn {
  background-color: #2f6ff2;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  padding: 0.6rem 1.1rem;
  cursor: pointer;
}

.secondary-btn {
  background-color: #f3f4f6;
  color: #111;
}

.hero-img {
  flex: 1;
  min-width: 200px;
}

.hero-img img {
  max-width: 90%;
  float: center;
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-buttons button {
    margin-bottom: 1rem;
  }
}
.container,
.cardBeforeAuth {
  display: none;
}
