/* Duplicate Warning Styles */
.duplicate-warning {
    background-color: #fef3c7; /* yellow-100 */
    border: 1px solid #f59e0b; /* yellow-500 */
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.duplicate-warning h4 {
    color: #92400e; /* yellow-800 */
    font-weight: 600;
    font-size: 1rem;
    margin: 0 0 0.25rem 0;
}

.duplicate-warning p {
    color: #451a03; /* yellow-900 */
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
}

.duplicate-warning .btn-view {
    background-color: #3b82f6; /* blue-500 */
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.duplicate-warning .btn-view:hover {
    background-color: #2563eb; /* blue-600 */
    transform: translateY(-1px);
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
}

.duplicate-warning .btn-dismiss {
    background-color: #6b7280; /* gray-500 */
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.duplicate-warning .btn-dismiss:hover {
    background-color: #4b5563; /* gray-600 */
    transform: translateY(-1px);
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
}

/* Email field styling when duplicate is detected */
.email-field-duplicate {
    border-color: #f59e0b !important; /* yellow-500 */
    background-color: #fefbf3 !important; /* yellow-50 */
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1) !important;
}

.email-field-duplicate:focus {
    border-color: #f59e0b !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2) !important;
}

/* Submit button styling when updating */
.submit-btn-update {
    background-color: #f59e0b !important; /* yellow-500 */
    border-color: #f59e0b !important;
}

.submit-btn-update:hover {
    background-color: #d97706 !important; /* yellow-600 */
    border-color: #d97706 !important;
}

/* Responsive design */
@media (max-width: 640px) {
    .duplicate-warning {
        padding: 0.75rem;
        margin-top: 0.5rem;
    }
    
    .duplicate-warning h4 {
        font-size: 0.875rem;
    }
    
    .duplicate-warning p {
        font-size: 0.8125rem;
    }
    
    .duplicate-warning .btn-view,
    .duplicate-warning .btn-dismiss {
        font-size: 0.8125rem;
        padding: 0.375rem 0.75rem;
    }
}

/* Accessibility improvements */
.duplicate-warning:focus-within {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .duplicate-warning {
        border-width: 2px;
    }
    
    .duplicate-warning h4 {
        color: #000;
    }
    
    .duplicate-warning p {
        color: #000;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .duplicate-warning {
        animation: none;
    }
    
    .duplicate-warning .btn-view:hover,
    .duplicate-warning .btn-dismiss:hover {
        transform: none;
    }
}
