invy/frontend/src/components/DuplicateManager.css

234 lines
3.6 KiB
CSS

.duplicate-manager {
background: white;
border-radius: 12px;
padding: 25px;
margin-top: 30px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.duplicate-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 25px;
padding-bottom: 15px;
border-bottom: 2px solid #e5e7eb;
}
.duplicate-header h2 {
margin: 0;
color: #1f2937;
font-size: 1.5rem;
}
.duplicate-controls {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 20px;
padding: 15px;
background: #f9fafb;
border-radius: 8px;
border: 1px solid #e5e7eb;
}
.duplicate-controls label {
font-weight: 600;
color: #374151;
font-size: 14px;
}
.duplicate-controls select {
padding: 8px 12px;
border: 1px solid #d1d5db;
border-radius: 6px;
font-size: 14px;
background: white;
cursor: pointer;
color: #1f2937;
min-width: 150px;
}
.duplicate-controls select:focus {
outline: none;
border-color: #667eea;
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
.btn-close {
background: #f3f4f6;
border: none;
color: #6b7280;
font-size: 24px;
width: 40px;
height: 40px;
border-radius: 50%;
cursor: pointer;
transition: all 0.2s;
}
.btn-close:hover {
background: #e5e7eb;
color: #1f2937;
}
.loading,
.no-duplicates {
text-align: center;
padding: 60px 20px;
color: #6b7280;
font-size: 16px;
}
.no-duplicates {
color: #10b981;
font-size: 18px;
}
.duplicates-list {
display: flex;
flex-direction: column;
gap: 30px;
}
.duplicate-group {
background: #f9fafb;
border-radius: 12px;
padding: 20px;
border: 2px solid #e5e7eb;
}
.duplicate-info {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
}
.duplicate-info h3 {
margin: 0;
color: #374151;
font-size: 1.2rem;
}
.count-badge {
background: #ef4444;
color: white;
padding: 6px 14px;
border-radius: 20px;
font-size: 14px;
font-weight: 600;
}
.guests-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 15px;
margin-bottom: 20px;
}
.guest-card {
background: white;
border: 2px solid #d1d5db;
border-radius: 8px;
padding: 15px;
cursor: pointer;
transition: all 0.2s;
}
.guest-card:hover {
border-color: #667eea;
box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}
.guest-card.selected {
border-color: #667eea;
background: #f0f4ff;
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
.radio-wrapper {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 12px;
padding-bottom: 12px;
border-bottom: 1px solid #e5e7eb;
}
.radio-wrapper input[type="radio"] {
width: 18px;
height: 18px;
cursor: pointer;
}
.radio-wrapper label {
font-weight: 600;
color: #667eea;
cursor: pointer;
margin: 0;
}
.guest-details {
font-size: 14px;
}
.guest-details h4 {
margin: 0 0 10px 0;
color: #1f2937;
font-size: 16px;
}
.guest-details p {
margin: 6px 0;
color: #6b7280;
}
.guest-details strong {
color: #374151;
}
.owner-tag {
margin-top: 10px;
padding-top: 10px;
border-top: 1px solid #e5e7eb;
font-size: 12px;
color: #9ca3af;
}
.merge-actions {
display: flex;
justify-content: center;
padding-top: 15px;
}
.merge-actions .btn {
min-width: 200px;
}
.merge-actions .btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
/* Responsive */
@media (max-width: 768px) {
.duplicate-manager {
padding: 15px;
}
.guests-grid {
grid-template-columns: 1fr;
}
.duplicate-info {
flex-direction: column;
align-items: flex-start;
gap: 10px;
}
.merge-actions .btn {
width: 100%;
}
}