/* CSS Container - Strictly Contained Elements */
.indian-unit-converter {
  --primary-color: #0081cc;
  --secondary-color: #00183d;
  --text-color: #333;
  --light-gray: #f5f5f5;
  --border-color: #ddd;
  --white: #fff;
  --mobile-padding: 12px;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  background-color: var(--white);
  padding: var(--mobile-padding);
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  font-family: 'Segoe UI', Roboto, sans-serif;
}

.converter-container {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.indian-unit-converter h1 {
  text-align: center;
  margin: 0 0 15px 0;
  color: var(--primary-color);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.2;
}

.indian-unit-converter h2 {
  margin: 15px 0 10px 0;
  font-size: 1rem;
  color: var(--primary-color);
  font-weight: 500;
}

.converter-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

.input-group,
.output-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  box-sizing: border-box;
}

.equals-sign {
  font-size: 1.2rem;
  text-align: center;
  padding: 5px 0;
  margin: 0;
  line-height: 1;
}

input,
select,
button {
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 0.9rem;
  margin: 0;
  outline: none;
}

input {
  background-color: var(--white);
}

#outputValue {
  background-color: var(--light-gray);
  cursor: not-allowed;
}

select {
  appearance: none;
  -webkit-appearance: none;
  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 8px center;
  background-size: 12px;
  padding-right: 25px;
}

.quick-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  width: 100%;
}

button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

button:hover {
  background-color: var(--secondary-color);
}

/* Tablet Styles */
@media (min-width: 600px) {
  .indian-unit-converter {
    padding: 20px;
    max-width: 600px;
  }
  
  .converter-section {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }
  
  .equals-sign {
    padding: 0 5px;
  }
  
  .quick-buttons {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop Styles */
@media (min-width: 768px) {
  .indian-unit-converter {
    padding: 25px;
    max-width: 700px;
  }
  
  .indian-unit-converter h1 {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }
  
  .quick-buttons {
    grid-template-columns: repeat(3, 1fr);
  }
}