/* Basic Reset */


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
  color: #333;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 1rem;
}

/* Navbar */
.navbar {
  background-color: #2c3e50;
  color: white;
  /*padding: 1rem 2rem;*/
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #1abc9c;
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
}

.nav-links a {
  color: #ecf0f1;
  text-decoration: none;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: background 0.3s, color 0.3s;
}

.nav-links a:hover {
  background-color: rgb(255, 255, 255); /* light overlay box */
  color: #0c3770;
}


/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
  }
   .nav-links a:hover {
    background-color: rgb(255, 255, 255);
  }
}


/* Hero Section */
.hero {
  text-align: center;
  padding: 4rem 1rem;
  background-color: #fff;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  border-radius: 0.5rem;
  margin: 2rem 0;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.hero p {
  color: #666;
  margin-bottom: 2rem;
}

.upload-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.upload-form input[type="file"],
.upload-form select {
  padding: 0.5rem;
  font-size: 1rem;
}

.upload-form button {
  padding: 0.7rem 2rem;
  background-color: #2ecc71;
  color: #fff;
  border: none;
  border-radius: 0.3rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.upload-form button:hover {
  background-color: #27ae60;
}

/* Tools Section */
.tools {
  background-color: #fff;
  padding: 1rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.tools h3 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.tool-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  padding-top: 20px;
}




.tool-card {
  background-color: #ebfbfd;
  border-radius: 0.5rem;
  padding: 1rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0,0,0,0.1);
  border-left: 4px solid #3498db;
  border-right: 4px solid #3498db;
}

.tool-card h4 {
  margin-bottom: 0.5rem;
}

.tool-card p {
  color: #666;
  margin-bottom: 1rem;
}

.tool-card .btn {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background-color: #1e7d8b;
  color: #fff;
  text-decoration: none;
  border-radius: 0.3rem;
  transition: background-color 0.3s ease;
}

.tool-card .btn:hover {
  background-color: #27ae60;
}

/* Placeholder Section */
.placeholder {
  background-color: #eaf2f8;
  padding: 3rem 1rem;
  text-align: center;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
}

.placeholder h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.placeholder p {
  color: #555;
}

/* Footer */
.footer {
  background-color: #2c3e50;
  color: #fff;
  padding: 1rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-right a {
  color: #fff;
  text-decoration: none;
  margin-left: 1rem;
  transition: color 0.3s ease;
}

.footer-right a:hover {
  color: #2ecc71;
}


/* Make footer stay at bottom */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* Allow main content to grow and push footer down */
main {
  flex: 1;
}


h1 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
}



.tool-description {
  background-color: #f9f9f9;
  margin-top: 2rem;
  border-top: 1px solid #ddd;
  color: #010f1d;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.tool-description .container {
  max-width: 850px;
  margin: 0 auto;
}

.tool-description h1,
.tool-description h2,
.tool-description h3,
.tool-description h4 {
  color: #1abc9c;
  margin-bottom: 1rem;
  margin-top: 2rem;
  font-weight: 600;
  line-height: 1.3;
}

.tool-description h3 {
  font-size: 1.6rem;
}

.tool-description h4 {
  font-size: 1.3rem;
}

.tool-description p {
  font-size: 1rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 1.2rem;
}

.tool-description ul {
  padding-left: 1.5rem;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.tool-description ul li {
  margin-bottom: 0.6rem;
  font-size: 1rem;
  line-height: 1.6;
  position: relative;
  color: #333;
}



@media (max-width: 768px) {
  .tool-description {
    padding: 2rem 1rem;
  }

  .tool-description h3 {
    font-size: 1.3rem;
  }

  .tool-description p,
  .tool-description ul li {
    font-size: 0.95rem;
  }
}


.format-selector {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 0.5rem;
  gap: 0.5rem;
  font-size: 1rem;
  font-family: 'Segoe UI', Roboto, sans-serif; /* Added font stack */
}

.format-selector label {
  font-weight: 600; /* Slightly less bold than 700 */
  color: #333;
  white-space: nowrap; /* Prevent label from wrapping */
}

.format-selector select {
  padding: 0.4rem 0.8rem;
  border: 1px solid #d1d5db; /* Added subtle border */
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  background-color: #e9f5ff;
  transition: all 0.3s ease; /* Transition all properties */
  appearance: none; /* Remove default arrow on some browsers */
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 1rem;
  padding-right: 1.8rem; /* Make room for custom arrow */
}

.format-selector select:hover {
  border-color: #93c5fd; /* Light blue border on hover */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.format-selector select:focus {
  border-color: #3b82f6; /* Brighter blue for focus */
  outline: none;
  box-shadow: 0 0 0 2px #bfdbfe; /* Blue glow effect */
}

/* For dark mode compatibility */
@media (prefers-color-scheme: dark) {
  .format-selector label {
    color: #f3f4f6;
  }
  
  .format-selector select {
    background-color: #1e3a8a;
    color: white;
    border-color: #4b5563;
  }
}



/* about tool description*/

.tool-description-2 {
  background-color: #f9f9f9;
  color: #010f1d;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.tool-description .container {
  max-width: 850px;
  margin: 0 auto;
}

.tool-description-2 h1,
.tool-description-2 h2,
.tool-description-2 h3,
.tool-description-2 h4 {
  color: #1abc9c;
  margin-bottom: 1rem;
  margin-top: 2rem;
  font-weight: 600;
  line-height: 1.3;
}

.tool-description-2 h1 {
  font-size: 1.8rem;
  text-align: left;
  padding-bottom: 15px;
}

.tool-description-2 h2 {
  font-size: 1.5rem;
}

.tool-description-2 h3 {
  font-size: 1rem;
}

.tool-description-2 h4 {
  font-size: 0.8rem;
}

.tool-description-2 p {
  font-size: 1rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 1.2rem;
}

.tool-description-2 ul {
  padding-left: 1.5rem;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.tool-description-2 ul li {
  margin-bottom: 0.6rem;
  font-size: 1rem;
  line-height: 1.6;
  position: relative;
  color: #333;
}



/* Dropdown Container */
.dropdown {
  position: relative;
  display: inline-block;
  z-index: 100;
}

/* Dropdown Button */
.dropbtn {
  color: #2D3748;
  background: transparent;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.dropbtn:hover {
  color: #4C51BF;
}

/*.dropbtn::after {
  content: "⌄";
  font-size: 1rem;
  margin-left: 0.25rem;
  transition: transform 0.2s ease;
}*/

/* Dropdown Content - Centered */
.dropdown-content {
  display: none;
  position:fixed;
  background-color: white;
  min-width: 800px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  z-index: 100;
  padding: 1rem;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid #EDF2F7;
  animation: fadeIn 0.2s ease-out;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.2rem;
}

.dropdown:hover .dropdown-content {
  display: grid;
}

.dropdown:hover .dropbtn::after {
  transform: rotate(180deg);
}

/* Dropdown Columns */
.dropdown-column {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;

}

.dropdown-column span {
  color: #4C51BF;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid #E2E8F0;
}

.dropdown-column a {
  color: #1f1d3d;
  padding: 0.5rem 1rem;
  text-decoration: none;
  font-size: 15px;
  border-radius: 4px;
  transition: all 0.2s ease;
  font-weight: 600;
}

.dropdown-column a:hover {
  background-color: #0c1f33;
  color: #ffffff;
  transform: translateX(4px);
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .dropdown {
    width: 100%;
  }
  
  .dropdown-content {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    width: 100%;
    min-width: auto;
    display: none;
    grid-template-columns: 1fr;
    padding: 0.5rem 0;
    left: auto;
  }
  
  .dropdown.active .dropdown-content {
    display: grid;
  }
  
  .dropdown-column {
    padding: 0.5rem 0;
  }
  
  .dropdown-column span {
    padding-left: 0;
  }
  
  .dropdown-column a {
    padding-left: 1.5rem;
  }
}