 *{
  margin: 0;
  padding: 0;
}

body {
  background-color: #f1f2f3;
}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1560px;
  min-width: 1240px;
  margin: 25px auto;
  color: #333;
}

.container *{
  box-sizing: border-box;
}

header {
  text-align: center;
  margin-bottom: 25px;
}

header h1 {
  font-size: 2.2rem;
  margin-bottom: 5px;
}

header  p{
  font-size: 1rem;
  opacity: 0.9;
  max-width: 95%;
  margin: 0 auto;
}

.control,.result-container{
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 20px;
  margin-bottom: 25px;
}

.control{
  display: flex;
  align-items: center;
  gap: 50px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #5c6e70;
  font-size: 16px;
}

.color-preview {
  display: flex;
  align-items: center;
  gap: 15px;
}

.color-box {
  width: 53px;
  height: 53px;
  border-radius: 8px;
  border: 2px solid #eee;
  cursor: pointer;
  transition: transform 0.2s;
}

.color-box:hover {
  transform: scale(1.05);
}

.color-value {
  font-size: 18px;
  font-weight: 500;
  background: #f8f9fa;
  padding: 10px 15px;
  border-radius: 8px;
  min-width: 120px;
}

input[type="color"] {
  opacity: 0;
  position: absolute;
  width: 0;
  height: 0;
}

.number-control {
  display: flex;
  align-items: center;
  gap: 15px;
}

input[type="number"] {
  width: 140px;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s;
}

input[type="number"]:focus {
  border-color: #3498db;
  outline: none;
}

.buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn {
  padding: 14px 32px;
  font-size: 18px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-calculate {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-calculate:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.btn-copy {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  color: white;
  box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.btn-copy:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

.btn-clear {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-clear:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.result-title {
  text-align: center;
  font-size: 20px;
  line-height: 1;
  color: #2c3e50;
  position: relative;
  display: inline-block;
}

.colors-display {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.color-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.color-card:hover {
  transform: translateY(-10px);
}

.color-display {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.color-info {
  padding: 15px;
  background: white;
  text-align: center;
}

.color-hex {
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
}

.color-index {
  font-size: 14px;
  color: #7f8c8d;
  margin-top: 5px;
}

.instructions {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 20px;
  margin-bottom: 25px;
}

.instructions h2 {
  font-size: 20px;
  color: #2c3e50;
  margin-bottom: 20px;
  line-height: 1;
}

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.step {
  flex: 1;
  min-width: 300px;
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  display: flex;
  gap: 15px;
  border: 1px solid #eee;
}

.step-icon {
  font-size: 32px;
  min-width: 50px;
  height: 50px;
  background: #3498db;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-content h3 {
  font-size: 20px;
  color: #2c3e50;
  margin-bottom: 10px;
}

.step-content p {
  color: #7f8c8d;
  line-height: 1.6;
}

.notification {
  position: fixed;
  top: 60px;
  right: 20px;
  padding: 15px 25px;
  background: #2ecc71;
  color: white;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s ease;
}

.notification.show {
  opacity: 1;
  transform: translateY(0);
}
