/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  background-color: #ffffff;
  color: #212121;
  line-height: 1.6;
  min-height: 100vh;
} */

         .container {
  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; */
	}

.subtitle {
  font-size: 1.1rem;
  color: white;
  font-weight: 400;
}

/* Converter Card */
.converter-card {
  background: #ffffff ;
  border-radius: 12px !important;
  box-shadow: 0 2px 8px rgba(233, 30, 99, 0.1) !important;
  padding: 2rem;
  border: 1px solid #e0e0e0 !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.converter-card:hover {
  box-shadow: 0 4px 16px rgba(233, 30, 99, 0.15);
}

/* Input Section */
.input-section {
  margin-bottom: 2rem;
}

.input-label {
  display: block;
  font-weight: 600;
  color: #212121;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.input-group {
  display: flex;
  align-items: stretch;
}

.hex-input {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e0e0e0 !important;
  border-radius: 12px !important;
  font-size: 1rem;
  font-family: 'Monaco', 'Menlo', monospace;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #fafafa !important;
	color:black !important;
}

.hex-input:focus {
  outline: none !important;
  border-color: #e91e63 !important;
  background: #ffffff !important;
}

.hex-input::placeholder {
  color: #757575;
}

/* Results Section */
.results-section {
	
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.results-section.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.color-preview-container {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.color-preview {
  width: 120px;
  height: 120px;
  border-radius: 50% !important;
  border: 4px solid #e0e0e0 !important;
  box-shadow: 0 2px 8px rgba(233, 30, 99, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.result-item {
  background: #fafafa !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 12px !important;
  padding: 1.25rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.result-item:hover {
  border-color: #f8bbd9;
  background: #ffffff;
}

.result-label {
  display: block;
  font-weight: 600;
  color: #757575 !important;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.result-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: #212121 !important;
  font-family: 'Monaco', 'Menlo', monospace;
}

.result-value-with-copy {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.copy-btn {
  background: #f8bbd9 !important;
  border: none !important;
  border-radius: 8px !important;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #e91e63 !important;
  flex-shrink: 0;
}

.copy-btn:hover {
  background: #e91e63;
  color: white;
  transform: scale(1.1);
}

/* Examples Section */
.examples {
  background: #fafafa;
  border-radius: 12px !important;
  padding: 2rem;
  text-align: center;
  border: 1px solid #e0e0e0;
	margin-top:10px;
}

.examples-title {
  color: #212121;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.example-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.example-color {
  width: 80px;
  height: 40px;
  border: 2px solid #e0e0e0 !important;
  border-radius: 8px !important;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.example-color:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  border-color: #e91e63;
}

/* Notification */
.notification {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #e91e63;
  color: white;
  padding: 1rem 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(233, 30, 99, 0.15);
  font-weight: 500;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

.notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0px !important;
    gap: 1.5rem;
  }
  
  .title {
    font-size: 35px !important;
  }
  
  .subtitle {
    font-size: 1rem;
  }
  
  .converter-card {
    padding: 1.5rem;
  }
  
  .result-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .color-preview {
    width: 100px;
    height: 100px;
  }
  
  .example-colors {
    gap: 0.75rem;
  }
  
  .example-color {
    width: 70px;
    height: 35px;
    font-size: 0.7rem;
  }
  
  .examples {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0.75rem;
  }
  
  .title {
    font-size: 1.75rem;
  }
  
  .converter-card {
    padding: 1rem;
  }
  
  .hex-input {
    padding: 0.875rem;
    font-size: 0.9rem;
  }
  
  .result-item {
    padding: 1rem;
  }
  
  .color-preview {
    width: 80px;
    height: 80px;
  }
  
  .notification {
    left: 1rem;
    right: 1rem;
    transform: translateY(100px);
  }
  
  .notification.show {
    transform: translateY(0);
  }
}

/* Light/Dark text contrast for example colors */
.example-color[style*="#ffff00"],
.example-color[style*="#00ffff"],
.example-color[style*="#00ff00"] {
  color: #000000;
  text-shadow: none;
}

/* Animation for color preview */
@keyframes colorChange {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.color-preview {
  animation: colorChange 0.5s ease-in-out;
}

/* Smooth transitions for all interactive elements */
button, input, .result-item, .example-color, .copy-btn {
  will-change: transform;
}

/* Focus styles for accessibility */
.hex-input:focus,
.copy-btn:focus,
.example-color:focus {
  outline: 2px solid #e91e63;
  outline-offset: 2px;
}
