* {
  margin: 0;
  padding: 0;
}

body {
  background-color: #f1f2f3;
}

.container {
  width: 100%;
  max-width: 1560px;
  min-width: 1240px;
  box-sizing: border-box;
  margin: 20px auto;
  color: #333;
}

.container * {
  box-sizing: border-box;
}

header {
  text-align: center;
  margin-bottom: 20px;
}

h1 {
  font-size: 2.2rem;
  color: #2c3e50;
  margin-bottom: 5px;
}

.subtitle {
  font-size: 1.1rem;
  color: #7f8c8d;
  max-width: 95%;
  margin: 0 auto;
}

.main-content {
  display: flex;
  gap: 20px;
}

.settings-panel {
  flex: 1;
  background: white;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 20px;
  height: fit-content;
}

.preview-panel {
  flex: 2;
  background: white;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 25px;
  display: flex;
  flex-direction: column;
}

.panel-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f1f2f3;
  display: flex;
  align-items: center;
}

.panel-title span {
  margin-right: 10px;
  font-size: 1.8rem;
}

.form-group {
  margin-bottom: 15px;
}

label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-weight: 500;
  color: #2c3e50;
}

label a{
  font-weight: normal;
  color: #2980b9;
}

input,
select,
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #3498db;
  outline: none;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.color-row {
  display: flex;
  gap: 15px;
}

.color-row>div {
  flex: 1;
}

.color-input {
  position: relative;
}

.color-input input {
  padding-left: 40px;
}

.color-preview {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1px solid #ddd;
}

.actions {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.btn {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-generate {
  background: #3498db;
  color: white;
}

.btn-generate:hover {
  background: #2980b9;
}

.btn-download {
  background: #27ae60;
  color: white;
}

.btn-download:hover {
  background: #219653;
}

.btn-reset {
  background: #e74c3c;
  color: white;
}

.btn-reset:hover {
  background: #c0392b;
}

.preview-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
  border: 1px dashed #ddd;
  border-radius: 8px;
  min-height: 500px;
  margin-bottom: 20px;
  overflow: hidden;
  position: relative;
}

.preview-placeholder {
  text-align: center;
  color: #95a5a6;
}

.preview-placeholder-icon {
  font-size: 4rem;
  margin-bottom: 15px;
}

.preview-image {
  max-width: 100%;
  max-height: 100%;
  display: none;
}

.preview-info {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.info-section {
  background: white;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 20px;
  margin-top: 25px;
}

.info-tabs {
  display: flex;
  border-bottom: 1px solid #f1f2f3;
  margin-bottom: 20px;
}

.info-tab {
  padding: 10px 20px;
  cursor: pointer;
  font-weight: 500;
  color: #7f8c8d;
  position: relative;
}

.info-tab.active {
  color: #3498db;
}

.info-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #3498db;
}

.info-content {
  display: none;
}

.info-content.active {
  display: block;
}

.info-content h3 {
  margin: 15px 0 10px;
  color: #2c3e50;
}

.info-content p {
  margin-bottom: 15px;
  line-height: 1.6;
  color: #555;
}

.info-content ul {
  padding-left: 20px;
  margin-bottom: 15px;
}

.info-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.color-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
  background: #f1f2f3;
  margin: 0 3px;
}

footer {
  text-align: center;
  padding: 20px;
  color: #7f8c8d;
  font-size: 0.9rem;
}
