.color-picker-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.color-picker-content {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dark .color-picker-content {
    background-color: #1f2937;
    color: white;
}

#color-picker-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 1rem;
}

.color-preview {
    width: 100% !important;
    height: 2.5rem !important;
    margin-bottom: 0 !important;
    border: none !important;
}

.color-comparison {
    display: flex;
    border-radius: 0.25rem;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid #e5e7eb;
}

.dark .color-comparison {
    border-color: #4b5563;
}

.color-current, .color-previous {
    width: 50%;
    height: 2.5rem;
    position: relative;
}

.color-label {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 0.625rem;
    background-color: rgba(0,0,0,0.3);
    color: white;
    padding: 0.125rem 0.375rem;
    border-radius: 0 0 0.25rem 0;
}

.pickr {
    width: 100%;
    margin-bottom: 1rem;
}

/* Toast Styles */
#toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 100%;
    width: 24rem;
}

.toast {
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slide-in 0.2s ease-out;
    border-left: 4px solid;
}

.toast.success {
    border-left-color: #10b981;
}

.toast.error {
    border-left-color: #ef4444;
}

.toast.info {
    border-left-color: #3b82f6;
}

.dark .toast {
    background-color: #1f2937;
    color: white;
}

.toast-content {
    flex: 1;
    margin-right: 1rem;
}

.toast-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.toast-message {
    font-size: 0.875rem;
    color: #6b7280;
}

.dark .toast-message {
    color: #d1d5db;
}

.toast-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
}

/* Animations */
@keyframes slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fade-out {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes pulse-update {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

.color-updated {
    animation: pulse-update 0.5s ease;
}
