* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: white;
    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.9;
	color:white !important;
}

.converter-card {
    background: white;
    border-radius: 20px !important;
    padding: 40px !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    border: 2px solid #fce4ec !important;
}

.input-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.pantone-input-group {
    position: relative;
}

.pantone-input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #c2185b !important;
    font-size: 1.1rem;
}

.input-container {
    position: relative;
}

#pantone-input {
    width: 100%;
    padding: 15px 20px !important;
    border: 2px solid #f8bbd9 !important;
    border-radius: 12px !important;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

#pantone-input:focus {
    outline: none !important;
    border-color: #e91e63 !important;
    background: white !important;
    box-shadow: 0 5px 20px rgba(233, 30, 99, 0.2);
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #f8bbd9 !important;
    border-top: none !important;
    border-radius: 0 0 12px 12px !important;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.dropdown.show {
    display: block;
}

.dropdown-content {
    padding: 0;
}

.dropdown-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-item:hover {
    background-color: #fce4ec;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.color-swatch {
    width: 20px;
    height: 20px;
    border-radius: 4px !important;
    border: 1px solid #ddd !important;
    flex-shrink: 0;
}

.color-preview {
    text-align: center;
}

.preview-box {
    width: 150px;
    height: 150px;
    border-radius: 20px !important;
    margin: 0 auto 15px;
    border: 3px solid #f8bbd9 !important;
    background: #f5f5f5;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.preview-label {
    color: #c2185b !important;
    font-weight: 600;
    font-size: 1.1rem;
}

.cmyk-section h3 {
    color: #c2185b;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.cmyk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.cmyk-input-group {
    position: relative;
}

.cmyk-input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #c2185b;
    font-size: 0.95rem;
}

.cmyk-input-group input {
    width: 100%;
    padding: 12px 15px !important;
    border: 2px solid #f8bbd9 !important;
    border-radius: 10px !important;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa !important;
}

.cmyk-input-group input:focus {
    outline: none !important;
    border-color: #e91e63;
    background: white;
    box-shadow: 0 3px 15px rgba(233, 30, 99, 0.2);
}

.unit {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-weight: 600;
    pointer-events: none;
    margin-top: 16px;
}

.cmyk-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #fce4ec, #f8bbd9);
    border-radius: 12px;
    flex-wrap: wrap;
}

#cmyk-values {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    font-size: 1.2rem;
    color: #c2185b;
}

.copy-btn {
    background:linear-gradient(219deg, #FB0E76 0%, #910694 100%);
    color: white !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 10px !important;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
}

.action-buttons {
    text-align: center;
}

.reset-btn {
    background: linear-gradient(135deg, #ff4081, #e91e63);
    color: white !important;
    border: none !important;
    padding: 15px 30px !important;
    border-radius: 12px !important;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 64, 129, 0.3);
}

.reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 25px rgba(255, 64, 129, 0.4);
}

.suggestions-section, .popular-colors {
    margin-bottom: 40px;
}

.suggestions-section h3, .popular-colors h3 {
    color: #c2185b;
    margin-bottom: 25px;
    font-size: 1.6rem;
    text-align: center;
}

.color-suggestions, .popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.color-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 2px solid #fce4ec;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.color-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: #f8bbd9;
}

.color-card-preview {
    width: 100%;
    height: 80px;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 2px solid #f0f0f0;
}

.color-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pantone-code {
    font-weight: 700;
    color: #c2185b;
    font-size: 1.1rem;
}

.cmyk-code {
    font-family: 'Courier New', monospace;
    color: #666;
    font-size: 0.9rem;
    background: #f8f9fa;
    padding: 5px 10px;
    border-radius: 6px !important;
	overflow-x:auto;
}

.toast {
    position: fixed;
    top: 25px;
    right: 20px;
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(76, 175, 80, 0.4);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    z-index: 2000;
    font-weight: 600;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .container {
        padding: 0px !important;
    }
    
    header {
        padding: 30px 15px;
    }
    
    header h1 {
        font-size: 35px !important;
    }
    
    .converter-card {
        padding: 25px;
    }
    
    .cmyk-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .cmyk-display {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .color-suggestions, .popular-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .cmyk-grid {
        grid-template-columns: 1fr;
    }
    
    .color-suggestions, .popular-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}