* {
  font-family: "Poppins", sans-serif;
  font-size: 20px;
}

body {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center; 
  align-items: center; 
  height: 100vh; 
  background-size: cover; 
  background-position: center; 
  background-repeat: no-repeat; 
  overflow: hidden;
}

#main-container {
  display: flex;
  align-items: center; 
  justify-content: flex-start; 
  gap: 20px; 
  width: 100vw; 
  height: 100vh; 
  box-sizing: border-box;
  background-color: transparent;
}

#side-bar {
  border: 1px groove #a6a2a2;
  border-radius: 8px;
  width: 300px;
  height: 100%; 
  flex-shrink: 0;
  background-color: transparent; 
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  animation: slideIn 1s ease-out; 
}

@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

#side-bar-img {
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.history-list {
  list-style: none;
  padding: 0;
  margin: 10px 0;
  width: 80%;
  text-align: center;
  border: none;
  background-color: rgba(255, 255, 255, 0.623);
  border-radius: 8px;
  box-sizing: border-box;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
  flex-grow: 1;
  justify-content: center;
  align-items: center;

  max-height: 400px;
  overflow-y: auto; 
  list-style-type: none; 
  padding: 0;
  margin: 0;
}

.history-list li {
  padding: 10px;
}

#delete-btn {
  position: absolute;
  bottom: 30px;
  width: 50%;
  border: none;
  background-color: #f44336;
  color: white;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
}

#delete-btn i {
  margin-right: 5px;
}

#delete-btn:hover {
  background-color: #d32f2f;
}

#main-content {
  border: 1px groove #a6a2a2;
  border-radius: 35px;
  box-shadow: 25px 25px rgba(0, 0, 0, 0.1);
  background-color: #ffc8dde3;
  width: 60%;
  height: 80%;
  margin: auto; 
  display: flex;
  justify-content: center; 
  align-items: center; 
  position: relative;
  backdrop-filter: blur(10px); 
  background-color: rgba(255, 255, 255, 0.4); 
  border-radius: 10px;
  animation: fadeIn 1s ease-out; 
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: scale(0.95); 
  }
  100% {
    opacity: 1;
    transform: scale(1); 
  }
}


#about-us-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: transparent;
  border: none;
  cursor: pointer;
}

#about-us-btn i {
  font-size: 30px;
  color: #000;
}

@media (max-width: 768px) {
  #side-bar {
    display: none;
  }

  #main-content {
    margin: 0 auto; 
    width: 100%; 
    height: auto; 
  }

  #main-container {
    justify-content: center;
    gap: 0; 
  }
}

#output-cover {
  border: none;
  width: 60%;
  height: 60%;
  display: flex;
  justify-content: center; 
  align-items: center; 
  flex-direction: column; 
}

#output-bar {
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  width: 85%;
  height: 80%;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(10px); 
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2); 
  color: #333; 
  font-family: 'Poppins', sans-serif; 
  animation: fadeIn 1s ease-out; 
  padding: 20px; 
}

#output-bar {
  border: 3px solid transparent;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
  background-clip: padding-box; 
  width: 85%;
  height: 80%;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(15px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), inset 0 0 50px rgba(255, 255, 255, 0.2); 
  color: #333;
  font-family: 'Poppins', sans-serif;
  animation: pulse 3s infinite; 
  padding: 25px; 
  overflow: hidden; 
  position: relative;
}

#output-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 15px;
  background: linear-gradient(45deg, #ff9a9e, #fad0c4, #fbc2eb);
  background-size: 300% 300%; 
  z-index: -1; 
  animation: gradientMove 6s ease infinite; 
}

#output-bar p {
  font-size: 22px;
  line-height: 1.8;
  font-weight: 600;
  text-align: center;
  color: #444;
  margin: 0;
  letter-spacing: 1px;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), inset 0 0 50px rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 0 60px rgba(255, 255, 255, 0.3);
  }
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

#output-cover .flex-container {
  display: flex;
  align-items: center; 
  gap: 10px;
}

#text {
  width: 600px;
  height: 25px;
  border: 1px groove #a6a2a2;
  border-radius: 15px;
  resize: none;
  padding: 10px;
  margin-top: 20px;
}

#submit-btn {
  width: 50px;
  height: 50px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  margin-top: 26px;
}

#submit-btn i {
  font-size: 40px;
  color: #000;
}

@media (max-width: 768px) {
  #main-container {
    flex-direction: column;
  }

  #side-bar,
  #main-content {
    width: 100%;
    height: auto; 
  }

  #side-bar {
    height: 100vh; 
  }

  #output-cover {
    width: 100%; 
    height: auto;
  }

  #text {
    width: 80%; 
  }

  #submit-btn {
    width: 40px; 
    height: 40px;
  }
}

.popup-overlay {
  display: none; 
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); 
  justify-content: center; 
  align-items: center; 
  z-index: 9999;
  display: flex;
}

.popup-content {
  background-color: rgba(255, 255, 255, 0.9); 
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  max-width: 400px; 
  width: 100%;
  box-sizing: border-box;
}

.popup-content p {
  font-size: 18px;
  margin-bottom: 20px;
}

.popup-content button {
  padding: 10px 20px;
  margin: 5px;
  border: none;
  background-color: #f44336;
  color: white;
  border-radius: 8px;
  cursor: pointer;
}

.popup-content button:hover {
  background-color: #d32f2f;
}

#confirm-popup {
  display: none; 
  position: fixed; 
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.7);
  padding: 20px;
  border-radius: 10px;
  color: white;
  z-index: 1000; 
  display: flex; 
  justify-content: center; 
  align-items: center;
}

#confirm-popup .popup-content {
  background-color: white;
  color: black;
  padding: 20px;
  border-radius: 5px;
}

#confirm-popup button {
  margin: 10px;
}


