/* Reset / Base */
* { box-sizing: border-box; }
body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background-color: #f0f2f5;
  color: #333;
  margin: 0;
  padding: 0;
}
.container {
  max-width: 900px;
  margin: 30px auto;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
header {
  text-align: center;
  margin-bottom: 40px;
}
header h1 {
  font-size: 2.5rem;
  color: #333;
}
header p {
  color: #777;
}

/* Buttons */
button, .btn-primary, .btn-secondary {
  display: inline-block;
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: 0.3s ease;
}
.btn-primary {
  background: #4f46e5;
  color: #fff;
  border: none;
}
.btn-primary:hover {
  background: #4338ca;
}
.btn-secondary {
  background: #e5e7eb;
  color: #333;
  border: none;
}
.btn-secondary:hover {
  background: #d1d5db;
}

/* Upload */
.upload-section {
  text-align: center;
}
.upload-section input[type="file"] {
  margin-bottom: 15px;
}

/* Preview & Result */
#previewImage, #resultImage {
  max-width: 100%;
  margin-top: 20px;
  border-radius: 10px;
  border: 1px solid #ddd;
}

/* Tabs */
.tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.tab-btn {
  padding: 10px 20px;
  margin: 0 5px;
  background: #e5e7eb;
  border: none;
  cursor: pointer;
  border-radius: 8px;
}
.tab-btn.active {
  background: #4f46e5;
  color: #fff;
}
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

/* Forms */
label {
  display: block;
  margin-bottom: 10px;
}
input[type="text"],
input[type="number"],
select {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* Hidden */
.hidden { display: none; }
