/**
 * Conflict Resolution Modal Styles
 */

.conflict-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-in-out;
}

.conflict-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.conflict-modal-content {
  position: relative;
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 900px;
  width: 90%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  z-index: 10001;
  animation: slideUp 0.3s ease-out;
}

.conflict-modal-header {
  padding: 24px 32px;
  border-bottom: 2px solid #e0e0e0;
}

.conflict-modal-header h2 {
  margin: 0 0 8px 0;
  font-size: 24px;
  color: #d32f2f;
}

.conflict-modal-header p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.conflict-modal-body {
  padding: 24px 32px;
  overflow-y: auto;
  flex: 1;
}

.conflict-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.conflict-panel {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px;
  background: #f9f9f9;
}

.conflict-panel h3 {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.conflict-diff {
  font-size: 13px;
  line-height: 1.6;
}

.diff-item {
  padding: 8px 12px;
  margin-bottom: 8px;
  border-radius: 4px;
  border-left: 3px solid transparent;
}

.diff-item strong {
  display: block;
  margin-bottom: 4px;
  color: #555;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.diff-value {
  color: #333;
  word-break: break-word;
}

.change-added {
  background: #e8f5e9;
  border-left-color: #4caf50;
}

.change-removed {
  background: #ffebee;
  border-left-color: #f44336;
}

.change-modified {
  background: #fff3e0;
  border-left-color: #ff9800;
}

.no-changes {
  color: #999;
  font-style: italic;
  text-align: center;
  padding: 20px;
}

.conflict-details {
  padding: 16px;
  background: #f5f5f5;
  border-radius: 6px;
  border-left: 4px solid #2196f3;
}

.conflict-details p {
  margin: 4px 0;
  font-size: 13px;
  color: #555;
}

.conflict-modal-footer {
  padding: 20px 32px;
  border-top: 2px solid #e0e0e0;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.conflict-modal-footer button {
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: #2196f3;
  color: white;
}

.btn-primary:hover {
  background: #1976d2;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.btn-secondary {
  background: #f5f5f5;
  color: #666;
  border: 1px solid #ddd;
}

.btn-secondary:hover {
  background: #e0e0e0;
  border-color: #ccc;
}

/* Responsive layout */
@media (max-width: 768px) {
  .conflict-modal-content {
    width: 95%;
    max-height: 90vh;
  }

  .conflict-comparison {
    grid-template-columns: 1fr;
  }

  .conflict-modal-header,
  .conflict-modal-body,
  .conflict-modal-footer {
    padding: 16px 20px;
  }

  .conflict-modal-footer {
    flex-direction: column;
  }

  .conflict-modal-footer button {
    width: 100%;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
