/* Import Google Fonts for a professional look */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #f8f9fa;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #333;
  line-height: 1.6;
}

/* App Container */
.app-container {
  background: #ffffff;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  width: 90%;
  text-align: center;
  transition: box-shadow 0.3s ease;
}

.app-container:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Title */
h3 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 30px;
  color: #007bff;
}

/* Form Styles */
form {
  margin-bottom: 30px;
}

.container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

label {
  font-weight: 500;
  font-size: 1.1rem;
  color: #495057;
  align-self: flex-start;
  margin-left: 10px;
}

input[type="text"] {
  width: 100%;
  max-width: 400px;
  padding: 15px 20px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  background: #ffffff;
  color: #333;
  outline: none;
  transition: all 0.3s ease;
}

input[type="text"]::placeholder {
  color: #adb5bd;
}

input[type="text"]:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.btn-success {
  background-color: #007bff;
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 123, 255, 0.2);
}

.btn-success:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-success:active {
  transform: translateY(0);
}

/* Error and Result Styles */
#error {
  color: #dc3545;
  font-weight: 500;
  margin-top: 10px;
  padding: 10px;
  background-color: #f8d7da;
  border-radius: 6px;
  border: 1px solid #f5c6cb;
}

#result {
  margin-top: 30px;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #e9ecef;
  text-align: left;
}

#result h4 {
  color: #007bff;
  margin-bottom: 10px;
  font-weight: 600;
}

#result p {
  margin-bottom: 15px;
  color: #495057;
}

/* Responsive Design */
@media (max-width: 768px) {
  .app-container {
    padding: 20px;
  }
  h3 {
    font-size: 2rem;
  }
  input[type="text"] {
    max-width: 100%;
  }
  .btn-success {
    padding: 12px 25px;
    font-size: 1rem;
  }
}
