* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333333;
  background: #ffffff;
  min-height: 100vh;
} */
/* 
#app {
  min-height: 100vh;
  background: linear-gradient(135deg, #ffeef2, #fff5f8);
} */

                #app {
  max-width: 1240px;
  margin: 0 auto;
  padding: 2rem;
}

header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
  background:linear-gradient(219deg, #FB0E76 0%, #910694 100%);
  color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(233, 30, 99, 0.1);
}

header h1 {
  font-size: 45px !important;
  font-weight: 700 !important;
  margin-bottom: 0.5rem;
	    color: white !important;
/*     font-family: inherit; */
	}

header p {
  font-size: 1.1rem;
  opacity: 0.9;
  font-weight: 300;
}

/* .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
} */

.input-section,
.preview-section,
.output-section {
  background: #ffffff !important;
  padding: 2rem;
  border-radius: 12px !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.input-section:hover,
.preview-section:hover,
.output-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}
.preview-section{
	margin:10px 0px;
}

.color-input-group label,
.slider-group label,
.output-section h2,
.preview-section h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333333 !important;
  margin-bottom: 1.5rem;
  display: block;
}

.color-input-wrapper {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

#color-picker {
  width: 90px;
  height: 60px;
  border: 2px solid #f8bbd9 !important;
  border-radius: 6px !important;
	padding:2px !important;
  cursor: pointer;
  background: none;
  transition: border-color 0.2s ease;
}

#color-picker:hover {
  border-color: #e91e63;
}

#color-input {
  flex: 1;
  min-width: 150px;
  padding: 1rem;
  border: 2px solid #f8bbd9 !important;
  border-radius: 6px !important;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#color-input:focus {
  outline: none !important;
  border-color: #e91e63 !important;
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.random-btn {
  padding: 1rem 1.5rem;
  background:linear-gradient(219deg, #FB0E76 0%, #910694 100%);
  color: #ffffff !important;
  border: none !important;
  border-radius: 6px !important;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.random-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

.random-btn:active {
  transform: translateY(0);
}

.slider-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.slider {
  flex: 1;
	padding:4px !important;
  height: 6px !important;
  border-radius: 3px !important;
  background: linear-gradient(135deg, #fce4ec, #f8bbd9);
  outline: none !important;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #ff6b9d, #e91e63, #c2185b);
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b9d, #e91e63, #c2185b);
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  border: none;
  transition: transform 0.2s ease;
}

.slider::-moz-range-thumb:hover {
  transform: scale(1.1);
}

.slider-value {
  background: #f8bbd9 !important;
  color: #e91e63 !important;
  padding: 0.5rem 1rem;
  border-radius: 6px !important;
  font-weight: 600;
  min-width: 50px;
  text-align: center;
}

.slider-description {
  color: #666666;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.color-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
}

.original-color,
.new-color {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.color-swatch {
  width: 80px;
  height: 80px;
  border-radius: 12px !important;
  border: 3px solid #ffffff !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.color-swatch:hover {
  transform: scale(1.05);
}

.arrow {
  font-size: 1.5rem;
  color: #e91e63;
  font-weight: bold;
}

.original-color span,
.new-color span {
  font-weight: 600;
  color: #666666;
}

.format-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.format-item {
  background: linear-gradient(135deg, #fce4ec, #f8bbd9);
  padding: 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.format-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-color: #e91e63;
}

.format-item label {
  font-weight: 600;
  color: #e91e63;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.5rem;
}

.format-value {
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  color: #333333;
  word-break: break-all;
}

.copy-instruction {
  text-align: center;
  color: #999999;
  font-size: 0.9rem;
  font-style: italic;
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: linear-gradient(135deg, #ff6b9d, #e91e63, #c2185b);
  color: #ffffff;
  padding: 1rem 1.5rem;
  border-radius: 6px;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1000;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  header h1 {
    font-size: 35px !important;
  }
  
  header p {
    font-size: 1rem;
  }
	#app{
		padding:0px;
	}

  .container {
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .input-section,
  .preview-section,
  .output-section {
    padding: 1.5rem;
		margin-bottom:10px !important;
  }

  .color-input-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  #color-picker {
    width: 100%;
    height: 50px;
  }

  .color-preview {
    flex-direction: column;
    gap: 1.5rem;
  }

  .arrow {
    transform: rotate(90deg);
  }
	.slider{
		flex:none !important;
	}
  .format-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 1rem;
  }

  .slider-container {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .color-swatch {
    width: 60px;
    height: 60px;
  }
}
