:root {
    --primary: #6742D6;
    --gray-700: #424b57;
    --primary-light: #E5E5FF;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --radius: 8px;
}

* { box-sizing: border-box; }  
html, body { padding: 0; margin: 0; height: 100%; width: 100%; font-family: sans-serif; }  

body {
  padding: 0;
  margin: 0;
  line-height: 1.5;
  color: var(--gray-700);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

nav {
  width: 100%;
  background-color: var(--primary);
  color: white;
  padding: 12px;
  font-weight: 600;
  font-size: 18px;
}

.nav-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

nav a {
  color: white;
  text-decoration: none;
  transition: all 0.2s ease;
}

nav a:hover {
  opacity: 0.9;
  color: white;
}

nav .presented-by {
  font-size: 12px;
  font-weight: normal;
  opacity: 75%;
}

nav .logo {
  display: flex;
  align-items: center;
  line-height: 1;
  height: 28px;
}

.text-content {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.2;
}

.banner {
  background-color: var(--primary-light);
  transition: all 0.2s ease;
  color: var(--gray-700);
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  text-decoration: none;
  text-align: center;
  font-size: 12px;
}

.banner:hover {
  color: var(--gray-700);
  background-color: var(--primary-light);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  flex: 1;
}

.card {
  background-color: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  margin-bottom: 30px;
}

.card h1 {
  font-size: 24px;
  margin-bottom: 15px;
  font-weight: 600;
  text-align: center;
}

.card p {
  font-size: 11px;
  font-weight: 400;
  text-align: left;
  max-width: 800px;
}  

a {
  text-decoration: none;
  color: var(--primary);
}

.provider-section {
  margin: 20px 0;
  text-align: center;
}

.provider-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
}

.provider-options {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
}

.provider-options.grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  margin: 20px 0;
}
  
.provider-option {
  background-color: white;
  border: 1px solid var(--primary-light);
  border-radius: 4px;
  padding: 12px 25px;
  cursor: pointer;
  font-weight: normal;
  min-width: 120px;
  transition: all 0.2s ease;
}

.provider-option:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 4px var(--shadow);
}

.provider-option.active {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

.provider-option.disabled {
  position: relative;
  opacity: 0.7;
  cursor: not-allowed;
}

.provider-option .tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: 125%; 
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--gray-700);
  color: white;
  text-align: center;
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 10;
  transition: opacity 0.2s ease;
}

.provider-option .tooltip::after {
  content: "";
  position: absolute;
  top: 100%; 
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: var(--gray-700) transparent transparent transparent;
}

.provider-option.disabled:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

.file-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
  background-color: var(--primary-light);
  padding: 30px;
  border-radius: var(--radius);
  border: 2px dashed var(--gray-700);
}

.file-upload.highlight {
  border-color: var(--primary);
  background-color: var(--primary-light);
}  
  
.file-upload-label {
  background-color: var(--primary);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}
  
.file-upload-label:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}
  
.file-name {
  font-size: 14px;
  color: var(--gray-700);
}
  
#fileInput {
  display: none;
}

.convert{
  text-align: center;
}

.convert-btn {
  background-color: var(--primary-light);
  color: var(--gray-700);
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 15px;
}

.convert-btn:hover:not(:disabled) {
  background-color: var(--primary-light);
}

.convert-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* .convert-btn.active {
  background-color: var(--primary);
  color: white;
} */

.convert-btn.active:hover {
  opacity: 0.9;
}

.workflow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.workflow-item {
  text-align: center;
}

.workflow-item img {
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
}

.arrow {
  font-size: 24px;
  color: var(--gray-700);
}

.provider-explanation {
  background-color: var(--primary-light);
  padding: 30px;
  border-radius: var(--radius);
  margin: 30px 0;
  border-left: 4px solid var(--primary);
}

.provider-explanation h3 {
  color: var(--primary);
  margin-top: 0;
  font-size: 18px;
}

.provider-explanation p {
  margin-bottom: 15px;
}

.provider-explanation a {
  color: var(--primary);
  text-decoration: none;
}

.provider-explanation a:hover {
  text-decoration: underline;
}

.provider-explanation table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1em;
}

.provider-explanation th,
.provider-explanation td {
  border: 1px solid var(--gray-700);
  padding: 8px;
}

.provider-explanation th {
  text-align: left;
  font-weight: bold;
}

.suggestions {
  float: right;
}

footer {
  padding: 12px 16px;
  border-top: 1px solid var(--primary-light);
  background-color: white;
  position: fixed;
  bottom: 0;
  width: 100%;
}

footer p {
  margin: 0;
  font-size: 12px;
  text-align: center;
  color: var(--gray-700);
}

footer p a {
  text-decoration: none;
  color: var(--primary);
}

/* Responsive design */
@media (max-width: 768px) {
  .provider-options {
    flex-direction: column;
    align-items: center;
  }

  .provider-options.grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
  
  .provider-option {
    width: 100%;
  }
  
  .workflow {
    flex-direction: column;
  }
  
  .arrow {
    transform: rotate(90deg);
  }
}