/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f0f4f8;
}

/* Header */
.header {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: white;
  text-align: center;
  padding: 3rem 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.header p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Section */
.section {
  margin-bottom: 3rem;
}

.section h2 {
  color: #4facfe;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #4facfe;
}

/* Card */
.card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
}

.card h3 {
  color: #00f2fe;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card p {
  color: #555;
  margin-bottom: 1rem;
}

.card ul {
  margin-left: 1.5rem;
  color: #555;
}

.card ul li {
  margin-bottom: 0.5rem;
}

.card.highlight {
  background: linear-gradient(135deg, #e0f7ff 0%, #d4f1f9 100%);
  border: 2px solid #4facfe;
}

/* Input Group */
.input-group {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
  align-items: center;
}

.input-group input[type="text"],
.input-group input[type="number"],
.input-group textarea {
  flex: 1;
  min-width: 200px;
  padding: 0.75rem;
  font-size: 1rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  transition: border-color 0.3s;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.input-group input:focus,
.input-group textarea:focus {
  outline: none;
  border-color: #4facfe;
}

.input-group textarea {
  min-height: 80px;
  resize: vertical;
}

/* Select Input */
.select-input {
  flex: 1;
  min-width: 150px;
  padding: 0.75rem;
  font-size: 1rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  transition: border-color 0.3s;
}

.select-input:focus {
  outline: none;
  border-color: #4facfe;
}

/* Button */
.btn {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(79, 172, 254, 0.3);
}

.btn:active {
  transform: translateY(0);
}

/* Result */
.result {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Courier New', monospace;
  color: #333;
  min-height: 80px;
  white-space: pre-wrap;
  border: 2px solid #e9ecef;
  overflow-x: auto;
}

/* Code Box */
.code-box {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1rem 0;
  overflow-x: auto;
}

.code-box pre {
  margin: 0;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Footer */
.footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
}

/* Small Input */
.small-input {
  min-width: 80px !important;
  max-width: 120px;
}

/* Responsive */
@media (max-width: 768px) {
  .header h1 {
    font-size: 2rem;
  }
  
  .header p {
    font-size: 1rem;
  }
  
  .section h2 {
    font-size: 1.5rem;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .input-group {
    flex-direction: column;
    align-items: stretch;
  }
  
  .input-group input[type="text"],
  .input-group input[type="number"],
  .input-group textarea {
    min-width: 100%;
  }
  
  .small-input {
    max-width: 100%;
  }
}
