body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  color: #384756;
}

.homepage-container {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  padding: 15px;
  border: none;
  border-radius: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  height: 50px;
  width: 100%;
  top: 0;
  z-index: 5;
}   

.applogo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 10px;
  height: 50px;
  width: auto;
}

.button-container {
  width: 30%;
  max-width: 400px;
  margin: 100px auto 0 auto;  /* Center horizontally with auto margins */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

/* Ensure each form takes full width of the container */
.button-container form {
  width: 100%;
  position: relative;
  margin-bottom: 20px;
}

/* Button styling */
.annot-button,
.compare-button,
.convert-word-button,
.convert-pdf-button {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  min-width: 200px;
  height: 70px;
  border-radius: 12px;
  overflow: hidden;
  background-color: #f8fafd;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: none;
  font-size: 14px;
  font-weight: 500;
  color: #384756;
  cursor: pointer;
  padding-right: 20px;
  text-align: left;
  padding-left: 140px; /* Space for the icon */
  transition: all 0.3s ease;
}



.annot-button:hover,
.compare-button:hover,
.convert-word-button:hover,
.convert-pdf-button:hover {
  background-color: #e6f2ff;
  transform: translateX(5px);
  color: #3a7abe;
}

/* Fix for image positioning */
.annotationreport-image,
.doccompare-image {
  position: absolute;
  left: 20px; /* Fixed position from left edge */
  top: 50%;
  transform: translateY(-50%);
  height: 30px;
  width: 30px;
  z-index: 1;
  pointer-events: none; /* Ensures the image doesn't interfere with button clicks */
}

.converttopdf-image,
.converttoword-image {
  position: absolute;
  left: 20px; /* Fixed position from left edge */
  top: 50%;
  transform: translateY(-50%);
  height: 20px;
  width: 40px;
  z-index: 1;
  pointer-events: none; /* Ensures the image doesn't interfere with button clicks */
}


/* Tooltip styling on button hover */
.button-container form button:hover::after {
  content: attr(data-description);
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffffff;
  color: #384756;
  padding: 8px 12px;
  white-space: nowrap;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  opacity: 0.95;
  z-index: 100;
  font-size: 12px;
  font-weight: 500;
}

.button-container form button:hover::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent #ffffff transparent;
  z-index: 100;
}

.coffee-button {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 100;
}

.btn-coffee {
  display: flex;
  align-items: center;
  background-color: #3a7abe;
  color: white;
  padding: 10px 16px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(58, 122, 190, 0.2);
}

.btn-coffee:hover {
  background-color: #2e5c8a;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(46, 92, 138, 0.25);
}

.btn-coffee img {
  height: 24px;
  margin-right: 8px;
}

.sidebar {
  position: fixed;
  top: 70px;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #384756;
  padding: 20px;
  height: calc(100% - 70px);
  width: 240px;
  min-width: 240px;
  transition: transform 0.3s ease;
  z-index: 4;
}



.footer {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  padding: 10px;
  font-size: 12px;
  color: #6c87a0;
  width: auto;
  max-width: 80%;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  z-index: 3;
}

.disclaimer {
  margin: 0;
}

.sidebar-nav {
  position: fixed;
  top: 70px;
  right: 0;
  width: 250px;
  height: calc(100% - 70px);
  z-index: 9;
}

.menu-btn {
  display: none;
}

.menu-icon {
  cursor: pointer;
  position: fixed;
  top: 25px;
  right: 30px;
  z-index: 21;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.menu-icon:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.navicon {
  background: #384756;
  display: block;
  height: 2px;
  width: 20px;
  position: relative;
  transition: background 0.2s ease-out;
}

.navicon:before,
.navicon:after {
  background: #384756;
  display: block;
  width: 100%;
  height: 100%;
  content: "";
  position: absolute;
  transition: all 0.2s ease-out;
}

.navicon:before {
  top: -6px;
}

.navicon:after {
  top: 6px;
}

.menu {
  position: absolute;
  max-height: 0;
  transition: max-height 0.3s ease-out;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  background-color: #ffffff;
  top: 15px;
  right: 20px;
  width: 200px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  z-index: 20;
}

.menu a {
  padding: 14px 20px;
  color: #384756;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s;
  text-align: left;
}

.menu a:last-child {
  border-bottom: none;
}

.menu a:hover {
  background-color: #f8fafd;
  color: #3a7abe;
}

.menu-btn:checked ~ .menu {
  max-height: 350px;
}

.menu-btn:checked ~ .menu-icon .navicon {
  background: transparent;
}

.menu-btn:checked ~ .menu-icon .navicon:before {
  transform: rotate(-45deg);
}

.menu-btn:checked ~ .menu-icon .navicon:after {
  transform: rotate(45deg);
}

.menu-btn:checked ~ .menu-icon .navicon:before,
.menu-btn:checked ~ .menu-icon .navicon:after {
  top: 0;
}

/* Media queries to ensure responsive design */
@media (max-width: 1200px) {
  .button-container {
    width: calc(95% - 260px);
    margin-left: 260px;
  }
}

@media (max-width: 992px) {
  .button-container {
    width: calc(95% - 260px);
    margin-left: 260px;
  }
}

@media (max-width: 768px) {
  .sidebar {
    width: 240px;
    min-width: 240px;
    padding: 20px;
  }
  
  .button-container {
    width: calc(95% - 260px);
    margin-left: 260px;
  }
  
  .annot-button,
  .compare-button,
  .convert-word-button,
  .convert-pdf-button {
    padding-left: 70px;
    font-size: 14px;
  }
  
  .annotationreport-image,
  .doccompare-image,
  .converttopdf-image,
  .converttoword-image {
    left: 20px;
  }
}

@media (max-width: 600px) {
  body {
    overflow-x: hidden;
  }
  
  .sidebar {
    overflow-y: auto;
  }
  
  .button-container {
    width: calc(95% - 260px);
    margin-left: 260px;
  }
}