/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    color: #333;
    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; */
	}

.header p {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* Main Content */
.main-content {
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 40px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #f5f5f5 !important;
}

.converter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* Section Styles */
.input-section,
.picker-section,
.output-section,
.preview-section {
    background: #fafafa !important;
    border-radius: 12px !important;
    padding: 25px !important;
    border: 2px solid #f5f5f5 !important;
    transition: all 0.3s ease;
}

.input-section:hover,
.picker-section:hover,
.output-section:hover,
.preview-section:hover {
    border-color: #f8bbd9;
    box-shadow: 0 5px 20px rgba(233, 30, 99, 0.1);
}

.input-section h2,
.picker-section h2,
.output-section h2,
.preview-section h2 {
    color: #e91e63;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-section h2::before {
/*     content: "🎨"; */
    font-size: 1.2rem;
}

.picker-section h2::before {
/*     content: "🎯"; */
    font-size: 1.2rem;
}

.output-section h2::before {
/*     content: "📋"; */
    font-size: 1.2rem;
}

.preview-section h2::before {
/*     content: "👁️"; */
    font-size: 1.2rem;
}

/* CMYK Inputs */
.cmyk-inputs {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.input-group label {
    font-weight: 500;
    color: #666 !important;
    font-size: 0.9rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input[type="number"] {
    width: 100%;
    padding: 12px 35px 12px 15px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.input-wrapper input[type="number"]:focus {
    outline: none !important;
    border-color: #e91e63 !important;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.unit {
    position: absolute;
    right: 15px;
    color: #999 !important;
    font-weight: 500;
    pointer-events: none;
}

/* Color Picker */
.color-picker-wrapper {
    text-align: center;
}

#colorPicker {
    width: 120px;
    height: 120px;
    border: none !important;
    border-radius: 10% !important;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

#colorPicker:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.2);
}

.picker-note {
    margin-top: 15px;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* HEX Output */
.hex-wrapper {
    position: relative;
    display: flex;
    gap: 10px;
    align-items: center;
}

#hexValue {
    flex: 1;
    padding: 15px 20px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    background: white;
    color: #333 !important;
}

#hexValue:focus {
    outline: none;
    border-color: #e91e63;
}

.copy-btn {
    padding: 15px 20px !important;
    background: linear-gradient(135deg, #e91e63, #ec407a);
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    min-width: 100px;
    justify-content: center;
}

.copy-btn:hover {
    background: linear-gradient(135deg, #d81b60, #e91e63);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.3);
}

.copy-btn:active {
    transform: translateY(0);
}

.copy-message {
    position: absolute;
    top: -40px;
    right: 0;
    background: #4caf50;
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.copy-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4caf50;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: 500;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    max-width: 300px;
    word-wrap: break-word;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-error {
    background: #f44336;
}

.toast-success {
    background: linear-gradient(135deg, #4caf50, #66bb6a);
}

/* Color Preview */
.color-preview {
    width: 100%;
    height: 120px;
    border-radius: 12px;
    border: 3px solid #e0e0e0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
}

.preview-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    text-align: center;
}

.preview-hex {
    font-weight: 600;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
}

/* Info Section */
.info-section {
    background: linear-gradient(135deg, #fce4ec, #f8bbd9);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    border: 1px solid #f8bbd9;
}

.info-section h3 {
    color: #e91e63;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.info-section p {
    color: #666;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 968px) {
    .converter-grid {
        grid-template-columns: 1fr;
    }
    
    .main-content {
        padding: 25px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .header p {
        font-size: 1rem;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0px !important;
    }
    
    .header {
        padding: 30px 20px;
        margin-bottom: 30px;
    }
    
    .header h1 {
        font-size: 35px !important;
    }
    
    .main-content {
        padding: 20px !important;
    }
    
    .input-section,
    .picker-section,
    .output-section,
    .preview-section {
        padding: 20px;
    }
    
    .hex-wrapper {
        flex-direction: column;
    }
    
    .copy-btn {
        width: 100%;
    }
    
    #colorPicker {
        width: 100px;
        height: 100px;
    }
    
    .color-preview {
        height: 100px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.6rem;
    }
    
    .header p {
        font-size: 0.9rem;
    }
    
    .input-section h2,
    .picker-section h2,
    .output-section h2,
    .preview-section h2 {
        font-size: 1.2rem;
    }
    
    .info-section h3 {
        font-size: 1.1rem;
    }
    
    .info-section p {
        font-size: 0.9rem;
    }
    
    .toast {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}