/* css/converter.css */
.dyw-container {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
}

.dyw-container * {
    box-sizing: border-box;
}

.dyw-title {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.5rem;
}

.dyw-input-group {
    margin-bottom: 1rem;
}

.dyw-color-input {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.dyw-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #666;
}

.dyw-number-input {
    width: 70px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.dyw-range-input {
    flex-grow: 1;
    -webkit-appearance: none;
    height: 8px;
    border-radius: 4px;
    background: #ddd;
}

.dyw-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #4CAF50;
    cursor: pointer;
}

.dyw-color-preview {
    width: 100%;
    height: 100px;
    border-radius: 4px;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
}

.dyw-result-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    background-color: #f8f8f8;
    border-radius: 4px;
    padding: 1rem;
    position: relative;
}

.dyw-result {
    flex-grow: 1;
    font-size: 1.25rem;
    text-align: center;
}

.dyw-copy-button {
    padding: 0.5rem 1rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dyw-copy-button:hover {
    background-color: #45a049;
}

.dyw-copy-button:active {
    background-color: #3d8b40;
}

.dyw-hidden-input {
    position: absolute;
    left: -9999px;
    top: -9999px;
}

.dyw-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 999999;
}

.dyw-toast.show {
    opacity: 1;
}
