* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

   .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    overflow-x: hidden;
	
}
/* Header Styles */
header {
    text-align: center;
     background: linear-gradient(135deg, #9CA1E2 0%, #4b85e6 50%, #9CA1E2 100%);
    color: white !important;
    padding: 31px;
    border-radius: 15px;
    margin-bottom: 10px;
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.2);
}




header h1 {
    font-size: 45px !important;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
	color:white;
}

.subtitle {
  font-size: 1.1rem;
  opacity: 0.95;
	color:white;
}

.converter-card {
  background: #ffffff;
  border: 1px solid #1e40af;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
              0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.input-group {
  margin-bottom: 24px;
}

label {
  display: block;
  font-weight: 600;
  color: #1e40af;
  margin-bottom: 8px;
  font-size: 1rem;
}

.unit-select,
.value-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  background-color: #ffffff;
  color: #1f2937;
  transition: all 0.3s ease;
  font-family: inherit !important;
}

.unit-select:focus,
.value-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.value-input[readonly] {
  background-color: #f9fafb;
  cursor: not-allowed;
  font-weight: 600;
  color: #1e40af;
	font-family:inherit !important;
}

.button-group {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.btn {
  flex: 1;
  min-width: 120px;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.btn-primary {
 background: linear-gradient(135deg, #9CA1E2 0%, #4b85e6 50%, #9CA1E2 100%);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #1e3a8a;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
              0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn-secondary {
  background-color: #3b82f6 !important;
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: #60a5fa;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
              0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn-reset {
  background-color: #f3f4f6 !important;
  color: #1f2937 !important;
  border: 2px solid #e5e7eb !important;
}

.btn-reset:hover {
  background-color: #e5e7eb;
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.formula {
  margin-top: 24px;
  padding: 16px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-left: 4px solid #3b82f6;
  border-radius: 8px;
  font-size: 1rem;
  color: #1f2937;
  font-weight: 500;
  text-align: center;
  min-height: 24px;
	font-family: inherit !important;
}

footer {
  text-align: center;
  margin-top: 32px;
  color: #6b7280;
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  header h1 {
    font-size: 35px !important;
  }

  .subtitle {
    font-size: 1rem;
  }

  .converter-card {
    padding: 24px;
  }

  .button-group {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0px;
  }
	.e-con{
		padding:5px;
	}
  header h1 {
    font-size: 1.75rem;
  }

  .converter-card {
    padding: 20px;
  }

  .unit-select,
  .value-input {
    padding: 12px 14px;
    font-size: 0.95rem;
  }

  .btn {
    padding: 12px 20px;
    font-size: 0.95rem;
  }

  .formula {
    font-size: 0.9rem;
    padding: 12px;
  }
}
